An opinionated starter template for a simple PHP application built on Slim Framework 4 (and Bootstrap 5).
Features β’ Requirements β’ Installation
-
π₯ Autoloader (PSR-4)
-
π― HTTP server request handlers and HTTP server middleware (PSR-15)
-
π HTTP factories (PSR-17)
-
βοΈ Environment variables support with phpdotenv
-
πΎ Template engine with Twig-View
-
π i18n support with Symfony's Translation Component
-
π§ͺ Unit testing with PHPUnit
-
π Coding standards checking with PHP_CodeSniffer (PSR-12)
-
π οΈ CI workflows with GitHub Actions
1. Clone this repository into your local machine:
git clone git@github.com:nbayramberdiyev/slim-4-starter.git
2. Go to the project folder:
cd slim-4-starter
3. Install the project dependencies:
composer install
4. Create a copy of .env.example
:
cp .env.example .env
5. Start the PHP development server:
php -S localhost:8888 -t public
That's it! Now go build something cool.