Awesome
<h1 align="center">Slim 4 Starter Template</h1> <p align="center">An opinionated starter template for a simple PHP application built on <a href="https://www.slimframework.com" target="_blank">Slim Framework 4</a> (and Tailwind CSS & Alpine.js).</p> <p align="center"> <a href="https://github.com/nbayramberdiyev/slim-4-starter/actions/workflows/continuous-integration.yml/badge.svg" target="_blank"> <img src="https://github.com/nbayramberdiyev/slim-4-starter/actions/workflows/continuous-integration.yml/badge.svg" alt="CI" /> </a> </p> <p align="center"> <a href="#features">Features</a> • <a href="#requirements">Requirements</a> • <a href="#installation">Installation</a> </p>Features
-
:inbox_tray: Autoloader (PSR-4)
-
:incoming_envelope: HTTP message interfaces with Slim-Psr7 (PSR-7)
-
:dart: HTTP server request handlers and HTTP server middleware (PSR-15)
-
:electric_plug: HTTP factories (PSR-17)
-
:gear: Environment variables support with phpdotenv
-
:ear_of_rice: Template engine with Twig-View
-
:earth_asia: i18n support with Symfony's Translation Component
-
:package: Dependency injection container with PHP-DI (PSR-11)
-
:test_tube: Unit testing with PHPUnit
-
:telescope: Coding standards checking with PHP-CS-Fixer (PSR-12)
-
:hammer_and_wrench: CI workflows with GitHub Actions
Requirements
Installation
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.