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.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.