I love to use fatfree framework, simple and good enough to build small or large projects.
Forked and create this resp , because it is quite hard to start from 0.
I make some change in the repo;
- Add Basic Folder Structure.
- Add Laravel illuminate ORM ( if your database is simple , no join table , plz use orginal ORM)
- Add Php-Resque ( PHP port of resque (Workers and Queueing) )
- Add Docker ( CI : Developing in your computer and deploy to server.)
- Add some basic test controller and model , so you can follow
** For Detail please check https://github.com/bcosca/fatfree
- app -- configs -- controllers -- dict -- models -- views -- jobs ( worker jobs)
- conf/nginx (docker's things)
- docker (plz check richarvey/nginx-php-fpm:latest , redis , mysql)
- lib (fatfree framework core)
- logs ( log folder)
- public (public folder /var/www)
- scripts (docker's things)
- vendor (composer library)
- 1 php nginx
- 1 mysql
- 1 redis
- "illuminate/database": "*", // https://github.com/illuminate/database
- "illuminate/events": "*",
- "chrisboulton/php-resque": "1.2.x" // https://github.com/chrisboulton/php-resque
- "phpmailer/phpmailer" : "*" // Add Phpmailer as default email tools
[web]
- http://localhost:8000/ default site now
- http://localhost:8000/home/userref [api]
- http://localhost:8000/api/common/1 ( api part use restful)
To use Php-Resque , i create a sample
- http://localhost:8000/phpq/createTable ( First create table , Run once only)
- http://localhost:8000/phpq/add ( add one fake job)
- http://localhost:8000/phpq ( show all jobs now)
- Run "php index.php /worker" inside the docker , you can start the work