odan/psr7-skeleton

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.
This package is abandoned and no longer maintained. No replacement package was suggested.

A skeleton project for PSR-7 and PSR-15

2.2.0 2019-05-05 11:19 UTC

This package is auto-updated.

Last update: 2020-03-11 16:39:06 UTC


README

A very basic PSR-7 / PSR-15 application for PHP.

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

Please have a look at my new skeleton project for Slim 4: odan/slim4-skeleton

Requirements

  • PHP 7.2+
  • Composer
  • MySQL 5.7+
  • Apache with mod_rewrite
  • Apache Ant

Recommended

  • NPM

Features

This project comes configured with:

  • Modern coding style (PSR-1, PSR-2, PSR-12)
  • PHPDoc Standard (PSR-5, PSR-19)
  • Class Autoloader (PSR-4)
  • HTTP request and response (PSR-7)
  • HTTP Server Request Handlers, Middleware (PSR-15)
  • HTTP Factories (PSR-17)
  • Dependency injection container (PSR-11)
  • Routing
  • Single action controllers (ADR)
  • Logging (PSR-3)
  • Translations
  • Sessions and Cookies
  • Authentication and Authorization
  • Database Query Builder
  • Database Migrations (Phinx)
  • Database Migrations Generator
  • Date and time (Chronos)
  • Console Commands (Symfony)
  • Unit testing (PHPUnit)

Middleware:

  • CSRF protection
  • CORS
  • Session
  • Language
  • Authentication

Rendering:

  • Twig
  • Assets (js, css) minification and caching
  • Twig translations

Continuous integration:

  • Tested on Travis CI and Scrutinizer CI
  • Unit tests
  • Integration tests (http and database)
  • PHPStan (level=max)
  • Code style checker and fixer (PSR-1, PSR-2, PSR-12)
  • Ant scripts
  • Deployment scripts

Installation

Manual

  • Download ZIP
  • Create a new database
  • Run composer update
  • Run php bin/cli.php install
  • Open the application in your browser

Using Composer

Read more: Installing the application with Composer.

Documentation

The documentation of this demo application can be found here: Documentation

License

The BSD 2-Clause License. Please see License File for more information.