Skip to content

zenhaust/slim4-skeleton

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Packages

No packages published

Languages

  • PHP 97.8%
  • Dockerfile 2.2%