I built this for very simple php projects. It uses AltoRouter and Blade templating engine (extracted from Laravel). It also has Controllers.
It lacks a Models system but I'll probably add if it's needed in some future point.
- Clone this repository
- Go to the root folder of your cloned version of this repo
- Run
composer install
to install the project dependencies - Go the the
/www
folder - Run
php -S localhost:8888
- Open your favorite browser and navigate to
http://localhost:8888/
- You should see a sample homepage 🏄
- Additionally, you can have a look at the boilerplate contact form located and
http://localhost:8888/contact
. Its logic is located in theContactController
class.