https://github.com/gustavonecore/leftaro
PSR-[7, 11, 15] compliant micro framework for restful API
https://github.com/gustavonecore/leftaro
api-rest compliant-micro-framework lightweight php7 poo psr
Last synced: 10 months ago
JSON representation
PSR-[7, 11, 15] compliant micro framework for restful API
- Host: GitHub
- URL: https://github.com/gustavonecore/leftaro
- Owner: gustavonecore
- Created: 2017-10-13T22:35:47.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-19T21:26:12.000Z (about 8 years ago)
- Last Synced: 2025-01-26T17:43:42.402Z (12 months ago)
- Topics: api-rest, compliant-micro-framework, lightweight, php7, poo, psr
- Language: PHP
- Homepage:
- Size: 46.9 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Leftaro, a micro Web Framework
=============================
PSR-7, PSR-11 and PSR-15 compliant micro framework for PHP 7.
Get ready
--------------
- `composer install`
- Copy the folder `config/base` into `config/local`
- Update the settings
- Run the local server for development with `php bin/server.php`
- Try to run the example static routes defined in `config/local/routes.php`
- http://0.0.0.0:8000/html
- http://0.0.0.0:8000/html/10
- http://0.0.0.0:8000/text
- http://0.0.0.0:8000/json
- Try to run the smart-discover endpoints like:
- http://0.0.0.0:8000/smart/10/discover/100/resource/my-resource-id
Current status
--------------
- [x] Add PSR-15 middleware approach
- [x] Add PSR-7 Http library
- [x] Add PSR-11 Container
- [x] Add configuration loader class
- [x] Add built-in server for development mode
- [x] Add FastRoute for fixed routes by file
- [x] Add automatic route resolver by URI/Controller
- [ ] Add utility commands to
- [ ] Migrate database
- [ ] Create an empty project