eghojansu/stick

Stick PHP Framework

v3.0.0-alpha1 2020-06-21 22:48 UTC

This package is auto-updated.

Last update: 2024-12-17 18:57:25 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