Skip to content

photogabble/tuppence-boilerplate

Repository files navigation

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:

Middleware for initiating and managing Sessions.

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

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