photogabble/tuppence-boilerplate

2.0.0 2023-02-17 13:15 UTC

README

Tuppence Boilerplate

An Incredibly small PSR-7 "framework"

Latest Stable Version License

About this boilerplate

This boilerplate wraps Tuppence with some project structure and includes a service provider for the Plates PHP template system and Docrtine ORM.

Install

Install this project with composer composer create-project photogabble/tuppence-boilerplate.

For development, you can use php -S 127.0.0.1:3000 -t public to serve your project locally on http://127.0.0.1:3000.

PSR-7 Support

Tuppence supports PSR-7 and therefore you will find a lot of PSR-7 middleware libraries work out of the box, for example the below are known to work:

bryanjhv/slim-session

Middleware for initiating and managing Sessions.

akrabat/rka-ip-address-middleware

Middleware that determines the clients IP address and stores it as a ServerRequest attribute.

php-middleware/php-debug-bar

Framework-agnostic middleware for attaching PHP Debug Bar to your response.