1. Go to this page and download the library: Download nimblephp/framework library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nimblephp / framework example snippets
e = new \NimblePHP\Framework\Routes\Route(new \NimblePHP\Framework\Request());
$kernel = new \NimblePHP\Framework\Kernel($route);
$kernel->handle();
use App\Event\AfterTaskAdd;
use NimblePHP\Framework\Kernel;
Kernel::getEventDispatcher()->addListener(AfterTaskAdd::class, function (AfterTaskAdd $event): void {
// np. webhook, mail, aktualizacja statystyk
});