Download the PHP package bootphp/project without Composer
On this page you can find all versions of the php package bootphp/project. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package project
BootPHP
Simple and Light weight MVC framework in PHP, it serves all stable functionalties like routing (native), caching (phpFastCache), database (Redbeans & PDO), templating (Smarty), authentication (Basic,SSO & Custom), Session/Roles etc.
Pre-requisite
- XAMPP instructions
- PHP/Copmoser instructions
Setup
Build
- Whenever there are changes in Any Controller-Annotations you need to hit this url
Working?
- Hit these urls in your browser and see the outputs you get
Documentation
Folder Structure
If you have used create-project command then this directory structure will be automatically created for you. Otherwise create it manually. and make sure build folder has correct permisson 0777
Sample Controller [app/controller/MyController.php]
Controller Annotation Options
All are method level annotations
- @RequestMapping - URL info
- url - url pattern to match
- method - request method [GET|POST|PUT|DELETE] - used only if mentioned
- type - response type [template|json|data] - data
- auth - if url acccess requires basic auth [TRUE|FALSE] - FALSE
- cache - if response is cacheable by server [TRUE|FALSE] - FALSE
- guestcache - cacheable only if guest user (user not valid) [TRUE|FALSE] - FALSE
- @RequestParams - if query params to be fetched and used in controller. [TRUE|FALSE] - FALSE
- @Role - [user defined values] - used only if mentioned, users with matching $user->{role} will have access to api.
Model Annotation Options
Class Level Annotations
- @Model - [sessionUser] -
- sessionUser - if used then that model will be used as default Session user, Class must extend app\model\AbstractUser
Tweakings
To build project/clear cache/rebuild annotations - Hit this URL from Browser