PHP Framework
A complete PHP framework for database-backed websites, member areas, admin systems and APIs, assembled from small modules that all share one shape.

About
A site built with the framework is a single, server-rendered PHP application. It is assembled from around one hundred and thirty small, single-concern modules, and an application is simply the list of modules it includes.
The framework is opinionated on purpose. Every module has the same directory layout, declares its database tables the same way, reads its configuration the same way and talks to other modules the same way, so once you have read one module you can find your way around any of them.
Features
Modular by design
Each module owns its data objects, database access, services and user interface, and declares every module it depends on.
One consistent shape
Learn the conventions once and they hold across every module.
Public pages
Server-rendered web pages with their own URLs and routes.
Members
A member area with registration, login and data for each member.
Admin system
An admin system for managing the site's data.
JSON API
An API for other clients to call, built from the same modules.
Background work
Queues and scheduled cron tasks for work that happens outside a request.
In progress
The guide and the module reference are being written now. Worked examples and a download will follow.
Screenshots
phpframework.org has a guide to how the framework fits together and a reference page for each module.
Guide
What the framework is, what you build with it, and the ideas behind its modular, loosely coupled design. Read the guide ↗
Modules
Around 130 small modules, grouped into families, each with the same layout of files and folders. Browse the modules ↗
Module reference
Each module has a reference page for its classes and functions. The Colour module handles RGBA colours, named presets, blending and conversion. See the Colour module ↗
Contents
The sections of phpframework.org, and the pages in each.
Examples ↗
Worked examples, from your first site to forms, logins, background jobs and storing files, coming soon.
Download ↗
Releases with their checksums, signatures, changelog and upgrade guide, coming soon.
Technologies
Credits
- Piotr Nierobisz - Framework improvements, DevOps
More development
- Frontend Development - A studio for fast, accessible, standards-based frontends
- Stylesheet.css - A CSS framework for semantic HTML, with no JavaScript
- Localhoster - Build a website as a local folder named after its domain
- Datahoster - Drop a folder, get an API
- Sitehoster - Static hosting that serves every site over HTTPS automatically