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.

The PHP Framework logo

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.

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

More development