alonity / alonity
Alonity framework
Installs: 26
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.2
- alonity/database: dev-main
- alonity/eventhandler: dev-main
- alonity/logger: dev-main
- alonity/request: dev-main
- alonity/router: dev-main
- twig/twig: ^3.0
This package is auto-updated.
Last update: 2024-05-29 05:09:45 UTC
README
Lite and fast framework
Install
composer require alonity/alonity
Examples
use alonity\alonity\Alonity; use alonity\alonity\AlonityException; $alonity = new Alonity(); $alonity->getRouter()->get('', ['app\\controllers\\IndexController', 'mymethod']); // $alonity->setRootDir('set/root/directory'); // If you use custom root directory, change it // $alonity->setTemplateDir('set/template/directory'); // If you use custom template directory, change it // $alonity->setPublicDir('set/public/directory'); // If you use custom public directory, change it try { $alonity->execute(); }catch (AlonityException $e){ $error = $e->getMessage(); } if(isset($error)){ exit($error); }