eghojansu / stick
Stick PHP Framework
v3.0.0-alpha1
2020-06-21 22:48 UTC
Requires
- php: ~7.2
Requires (Dev)
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-10-17 18:33:54 UTC
README
Stick to PHP with Fw
class as its Kernel.
The kernel contains:
- Dependency Injection
- Event Dispatcher
- Logger
- Router
Installation
composer require eghojansu/stick
Usage
Example usage.
require __DIR__.'vendor/autoload.php'; Ekok\Stick\Fw::createFromGlobals() ->route('GET /', function() { // Outputs "Hello world!" return 'Hello world!'; }) ->run() ;
TODOs
- Handle CLI Request (handle arguments and options)
- Cache
- SQL Database Helper