/** Lightweight PHP Framework.
From developers to developers. */

App\Override


Folders Structure

Base: app/Override/
Builtin: app/Override/Builtin/
Builtin Libraries: app/Override/Builtin/Libs/
Builtin Helpers: app/Override/Builtin/Helpers/

Core classes

Core: app/Override/Core.php
Autoloader: app/Override/Builtin/Autoloader.php

*For overrides the Start.php file, just set the path on public/index.php file to desired new one.

Sample of overriding builtin library "Strings"

For this sample, we created new method called Foo.

Folder base: app/Override/Builtin/Libs/Strings/
File: Foo.php

Code

<?php
namespace Tipui\Builtin\Libs\Strings;

class 
Foo
{

    
/**
    * For sample purposes only.
    */
    
public function Exec()
    {
        return 
'This is for sample purposes only. See: /Docs/App/Override';
    }

}

Calling

<?php
use \Tipui\Builtin\Libs\Strings as Strings;

echo 
Strings::Foo();

Returns

Warning: require_once(/var/www/vhosts/share/Tipui/Languages/Builtin/Libs/Strings): failed to open stream: No such file or directory in /var/www/vhosts/share/Tipui/Builtin/Helpers/Languages/Label.php on line 96 Fatal error: require_once(): Failed opening required '/var/www/vhosts/share/Tipui/Languages/Builtin/Libs/Strings' (include_path='/var/www/vhosts/tipui.com/php.tipui.com/App/Template/Model/') in /var/www/vhosts/share/Tipui/Builtin/Helpers/Languages/Label.php on line 96