An opinionated starter template for a simple PHP application built on Slim Framework 4 (and Tailwind CSS & Alpine.js).
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-CS-Fixer (PSR-12)
-
๐ ๏ธ CI workflows with GitHub Actions
1. Clone this repository into your local machine:
git clone git@github.com:nbayramberdiyev/slim-4-starter.git2. Go to the project folder:
cd slim-4-starter3. Install the project dependencies:
composer install4. Create a copy of .env.example:
cp .env.example .env5. Start the PHP development server:
php -S localhost:8888 -t publicThat's it! Now go build something cool.