Setup your PHP-powered modern static website in minutes.
- Clean URLs
- Separate templating
- Easy to setup
- Uses modern PHP libraries
- 100% PHPUnit Code Coverage
- Go to application's root dir
- Edit
deploy.sh
and update paths to yourphp
,composer.phar
andphpunit
as needed - Run
sh deploy.sh
for dev andsh deploy.sh prod
for prod - Update
.env
(as needed) - Manage the html templates in
/views
, including updating common layout inviews/partials/layout.twig
- To add a new page:
- Go to
/src/Home/HomeController.php
and add desiredroute
underPAGE_LIST
- Then go to
/views
and add a template with the same name as theroute
(i.e if you want to add a page for/pricing
, you will addpricing
in/src/Home/HomeController.php
>PAGE_LIST
and create a newpricing.twig
under/views
)
- Go to