lightphp / lightphp
LightPHP simple request and response framework
dev-master
2017-06-19 19:46 UTC
Requires
- php: >=5.5.0
This package is auto-updated.
Last update: 2025-03-10 02:21:28 UTC
README
About
A lightweight PHP framework built with scalability in mind.
How to use
Framework comes pre loaded with an index route and a core service.
Start
- Composer install to autoload the required files
- Vagrant up from project route
- Navigate to
http://127.0.0.1:8080/
- Enjoy
Create config file (config/config.php:
- routes
- services
return [ 'routes' => [ [ 'method' => ['GET'], 'name' => 'index', 'route' => '/', 'callable' => [ 'controller' => 'LightPHP\MVC\Controller\IndexController', 'namespace' => 'LightPHP\MVC\Controller', 'action' => 'index', 'view' => 'index/index' ] ], ], 'services' => [ 'core_service' => 'LightPHP\Services\CoreService' ], ];
Future Updates
- Unit testing
- Performance improvements
- Check availble methods for a route
- Authorization
- Dynamic routing