- PHP 8.2+
- MIT
- MVC
- CLI
- ORM
- AOP
Azera Framework
A fast and lightweight PHP framework for building modern web applications and CLI tools. Azera combines the best ideas from Phalcon, CodeIgniter, Laravel and Symfony into a minimal yet powerful toolkit.
Why Azera
Lightweight by design, powerful in practice
MVC Stack
Fast pattern-matching router with named routes, parameter validation and middleware. Action-based controllers with dependency injection and a flexible dispatcher pipeline.
Database & ORM
Unified fluent query builder for SELECT, INSERT, UPDATE, DELETE plus Active Record models with state tracking. Prepared statements everywhere and built-in read/write splitting.
Clarity Templates
The Clarity template engine ships out of the box: auto-escaping, template inheritance, filter pipeline, and a native PHP engine for maximum performance.
CLI Toolkit
Auto-discover tasks from PSR-4 namespaces, parse options automatically, render styled help pages. A built-in model:sync task keeps models aligned with your schema.
Secure by Default
Prepared statements throughout, CSRF tokens, password hashing, authenticated encryption (libsodium or OpenSSL) and a structured exception hierarchy.
Lightweight Runtime
Minimal mandatory dependencies, modern PHP 8.2+ patterns (typed properties, named arguments, readonly models) and service composition through AppContext.
Quick start
Up and running in minutes
For a working project, start from the Azera App skeleton, install
its dependencies, and run the built-in development server. Add
your routes in the BootstrapProvider; the skeleton
already includes the entry point and a starter controller.
- Runnable project with Composer autoloading
-
Centralized setup
and route registration in
BootstrapProvider - Controller actions with route parameters and dependency injection
-
Local server
started with
composer serve
composer create-project sailantis/azera-app my-app
cd my-app
composer serve
private function registerRoutes(Router $router): void
{
$router->controller(Controllers\IndexController::class, function (Router $r): void {
$r->get('/', '::indexAction');
$r->get('/about', '::aboutAction');
});
}
Measured, not claimed
Benchmark results
The same seven applications, the same seeded database and the same page size. Each route is drawn twice — once on a resident worker that boots the framework once, and once on nginx + PHP-FPM, which builds it again for every request — because those two numbers differ by far more than the frameworks differ from each other. Within each chart every row is relative to Azera.
The landing page, rendered by a template, with no database access.
Volucer Resident worker
The framework boots once, then every request is served from that built state.
nginx + PHP-FPM Per request
The framework builds itself again for every request.
The ORM API request without row hydration: rows fetched as plain data, serialized as JSON.
Volucer Resident worker
The framework boots once, then every request is served from that built state.
nginx + PHP-FPM Per request
The framework builds itself again for every request.
The ORM page without row hydration: rows fetched as plain data, rendered by a template.
Volucer Resident worker
The framework boots once, then every request is served from that built state.
nginx + PHP-FPM Per request
The framework builds itself again for every request.
Median of 1000 iterations per run over 10 runs, end to end over HTTP on loopback. PHP 8.5.11 · JIT: tracing (buffer 64M). Served by Volucer 0.6.0 · nginx 1.24.0 + PHP-FPM 8.5.11.
Dig in
Explore the Framework
Documentation
From Getting Started through Models, Database Queries, Validation, CLI and the Cookbook — every layer of Azera explained.
Read the docsAPI Reference
Auto-generated reference for every public class: AppContext, Router, Dispatcher, Query, Model and more.
Source on GitHub
Browse the framework source, file issues, or read the release notes on the Sailantis organisation.
Open the repositoryInstall
Add it to an existing project
Requires PHP 8.2+ with the pdo and mbstring
extensions. For encrypted cookies, enable sodium
(recommended) or openssl.
After installing, follow the guide to wire up your bootstrap and
entry point.
composer require sailantis/azera-framework
Continue with the Getting Started guide.