Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nbayramberdiyev/slim-4-starter
🐘 An opinionated Slim 4 starter template for the small-to-medium PHP applications.
https://github.com/nbayramberdiyev/slim-4-starter
php php-micro-framework slim slim-4 slim-framework slim-skeleton template template-project
Last synced: 19 days ago
JSON representation
🐘 An opinionated Slim 4 starter template for the small-to-medium PHP applications.
- Host: GitHub
- URL: https://github.com/nbayramberdiyev/slim-4-starter
- Owner: nbayramberdiyev
- License: mit
- Created: 2019-09-08T11:41:26.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-10-03T06:51:16.000Z (2 months ago)
- Last Synced: 2024-11-18T21:48:11.882Z (25 days ago)
- Topics: php, php-micro-framework, slim, slim-4, slim-framework, slim-skeleton, template, template-project
- Language: PHP
- Homepage:
- Size: 388 KB
- Stars: 64
- Watchers: 4
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-slim - Slim 4 Starter - An opinionated Slim 4 starter template for the small-to-medium PHP applications. (Boilerplate)
README
Slim 4 Starter Template
An opinionated starter template for a simple PHP application built on Slim Framework 4 (and Tailwind CSS & Alpine.js).
Features •
Requirements •
Installation## Features
- :inbox_tray: Autoloader ([PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md))
- :incoming_envelope: HTTP message interfaces with [Slim-Psr7](https://github.com/slimphp/Slim-Psr7) ([PSR-7](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-7-http-message.md))
- :dart: HTTP server request handlers and HTTP server middleware ([PSR-15](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-15-request-handlers.md))
- :electric_plug: HTTP factories ([PSR-17](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-17-http-factory.md))
- :gear: Environment variables support with [phpdotenv](https://github.com/vlucas/phpdotenv)
- :ear_of_rice: Template engine with [Twig-View](https://github.com/slimphp/Twig-View)
- :earth_asia: i18n support with Symfony's [Translation Component](https://github.com/symfony/translation)
- :package: Dependency injection container with [PHP-DI](https://github.com/php-di/php-di) ([PSR-11](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-11-container.md))
- :test_tube: Unit testing with [PHPUnit](https://github.com/sebastianbergmann/phpunit)
- :mag: Static code analysis with [PHPStan](https://github.com/phpstan/phpstan) and [Psalm](https://github.com/vimeo/psalm)
- :telescope: Coding standards checking with [PHP-CS-Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) ([PSR-12](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-12-extended-coding-style-guide.md))
- :hammer_and_wrench: CI workflows with [GitHub Actions](https://docs.github.com/en/actions)
## Requirements
- [PHP](https://www.php.net) 8.2 or newer
- [Composer](https://getcomposer.org)## Installation
**1. Clone this repository into your local machine:**
```shell
git clone [email protected]:nbayramberdiyev/slim-4-starter.git
```**2. Go to the project folder:**
```shell
cd slim-4-starter
```**3. Install the project dependencies:**
```shell
composer install
```**4. Create a copy of `.env.example`:**
```shell
cp .env.example .env
```**5. Start the PHP development server:**
```shell
php -S localhost:8888 -t public
```That's it! Now go build something cool.