PHP code example of emados / php-statical
1. Go to this page and download the library: Download emados/php-statical library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
emados / php-statical example snippets
final class Lang {
use Statical;
protected function targetClassInstance() {
return new \App\Core\Language();
}
}
/**
* @method static string current() Returns current language code.
* @method static void force(string $lang) Forces using a specific language code.
* ...
*/
final class Lang {
use Statical;
protected function targetClassInstance() {
return new \App\Core\Language();
}
}
bash
composer