Skip to content

rougin/slytherin

Repository files navigation

Slytherin

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Yet Another Extensible PHP Library/Framework.

Install

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.

Usage

$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.

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email rougingutib@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.