Skip to content
master
Switch branches/tags
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
bin
 
 
 
 
 
 
 
 
 
 
 
 
src
 
 
 
 
tmp
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 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)
  • Autoloader (PSR-4)
  • Logger (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
  • Build and deployment scripts
  • Docker container with Xdebug support
  • Swagger OpenAPI documentation

Screenshot

screely-1652693665038

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.