odan/slim4-skeleton

A Slim 4 skeleton

Fund package maintenance!
Ko Fi

Installs: 3 439

Dependents: 0

Suggesters: 0

Security: 0

Stars: 297

Watchers: 21

Forks: 57

Open Issues: 1

Type:project


README

Slim 4 Skeleton

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

This is a skeleton to quickly set up a new Slim 4 application.

Requirements

  • PHP 7.4+ or 8.0+
  • MySQL 5.7+ or MariaDB

Recommended

  • Apache with mod_rewrite
  • Apache Ant to build deployment artifacts

Installation

composer create-project odan/slim4-skeleton my-app

Read more: Documentation

Features

This project is based on best practices and industry standards:

  • Standard PHP package skeleton
  • HTTP message interfaces (PSR-7)
  • HTTP Server Request Handlers, Middleware (PSR-15)
  • HTTP factories (PSR-17)
  • HTTP router and dispatcher (Slim)
  • Dependency injection container (PSR-11)
  • Autoloading (PSR-4)
  • Logging (PSR-3)
  • Code styles (PSR-12)
  • PHPDoc standard (PSR-5, PSR-19)
  • Single action controllers
  • Input validation
  • SQL Query Builder
  • Database migrations
  • Immutable date time (Chronos)
  • Unit- and integration tests
  • Console Commands
  • Tested with Github Actions and Scrutinizer CI
  • PHPStan (Level: max)
  • Build and deployment scripts
  • Docker container with Xdebug support
  • Swagger OpenAPI documentation

Screenshot

screely-1611483778132

Usage

You can clone this project to modify it as you wish to create awesome API's and web applications.

Read more: Documentation

Support

Contributing

Please create an issue first, so we can discuss it in advance.

License

The MIT License (MIT). Please see License File for more information.