wj/statics

use class function like static function;more like laravel facade
10
Install
composer require wj/statics
Latest Version:2.0
License:MIT
Last Updated:Feb 21, 2017
Links: GitHub  ·  Packagist
Maintainer: wangjia5693

statics

use class function like static function;more like laravel facade eg: include_once ROOT .'/vendor/autoload.php';

$aliases = [ 'Cache' => 'Statics\Cache', 'Config'=> 'Statics\Config' ]; $autoloader = (new Statics\Autoload($aliases))->register();

$locale = Config::get('app.locale', 'en_us');

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

637,827,751 9,703
laravel/framework

The Laravel Framework.

589,172,971 34,950
laravel/tinker

Powerful REPL for the Laravel framework.

498,216,183 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

413,412,504 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

391,429,217 4,660