Skip to content

My take on an app boilerplate: PHP + Slim 4 + pretty much everything I find useful

License

Notifications You must be signed in to change notification settings

tomkyle/webapp-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tomkyle/webapp-boilerplate

This is how I would start a new PHP web application on PHP 8.3+, based on Slim 4 , Docker, Gulp, Webpack, PhpUnit, and pretty much everything I find useful.

Software License


Features

  • Slim Framework
  • Docker setup with SSL support
  • PhpUnit with basic unit and integration tests
  • Composer scripts with PHP-CS and phpstan
  • Gulp + Webpack for frontend workflow
  • Serviceworker and Webmanifest
  • Modern favicons setup
  • Content-Security-Policy configuration file
  • Customizable .htaccess configuration and build tool
  • Custom error pages
  • Dark mode support with JS theme switcher
  • Postman collection

Installation

$ gh repo clone tomkyle/webapp-boilerplate

Documentation


Command Line Interface

General information

$ bin/console list
$ bin/console help

Update website from repo

Pull the latest stuff from repo; install dependencies without the development stuff.

$ git pull
$ bin/console install --no-dev
$ bin/console install --no-dev -v

License

The MIT License (MIT). Please see License File for more information.