Yet Another Extensible PHP Library/Framework.
Via Composer
$ composer require rougin/slytherin --no-dev
Warning: If you install Slytherin with dev dependencies, you will get packages that you may not use for your next web application (e.g., Auryn, Diactoros, etc.). These packages are required for testing only. They are not included when you run Composer with --no-dev
.
$components = new Rougin\Slytherin\Components;
$components
->setContainer(new Acme\IoC\Container)
->setDispatcher(new Acme\Dispatching\Dispatcher)
->setDebugger(new Acme\Debug\Debugger)
->setHttp(new Acme\Http\Request, new Acme\Http\Response);
$application = new Rougin\Slytherin\Application($components);
$application->run();
Regarding the example implementation above, you need to select a package of your choice and implement it with a provided interface in order for it to be integrated in Slytherin. More information about this can be found in the Using Interfaces section.
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email rougingutib@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.