Skip to main content

MaplePHP

MaplePHP is a high-performance PHP 8.2+ framework built on PSR standards and modern best practices. It provides the core infrastructure needed for real applications — MVC architecture, dependency injection, routing, middleware, caching, logging, error handling, and full support for both web and CLI environments — while keeping every component swappable.

The goal is not to lock you into a fixed ecosystem. Each maplephp/* library is independently installable and PSR-compliant. You shape the framework around your own stack and workflow, while still benefiting from updates to the core.

Beta

This framework is currently in beta. Use --stability=beta when installing.

What MaplePHP provides

AreaWhat you get
HTTPPSR-7 request/response, PSR-15 middleware pipeline, FastRoute routing
CLICommand system, interactive prompts, scaffolding via ./maple make
DIPSR-11 container with reflection-based constructor autowiring
DatabaseDoctrine DBAL query builder, schema migration runner
ViewsTwig template engine with layout inheritance and caching
CachingPSR-6 and PSR-16 with FileSystem and Memcached handlers
LoggingPSR-3 with StreamHandler (rotation), ErrorLogHandler, DBHandler
Validation50+ validators with fluent chaining
Testingmaplephp/unitary — 100k+ tests/sec, built-in mocking

PSR compliance

MaplePHP is built around PSR standards throughout:

  • PSR-3 — logging
  • PSR-6 / PSR-16 — caching
  • PSR-7 — HTTP messages
  • PSR-11 — dependency injection container
  • PSR-15 — middleware pipeline

Every maplephp/* package can be used standalone or replaced with any PSR-compatible alternative.

Where to start