Echo

v0.5.3

A fast PHP framework built for the modern web

Fast

Optimized for performance with minimal overhead. Route caching, lazy loading, and efficient database queries out of the box.

Modern PHP 8.4+

Built with PHP 8 attributes for routing, constructor promotion, named arguments, and all the latest language features.

Simple & Clean

No magic, no complexity. Intuitive APIs that do what you expect. Easy to learn, easy to master.

Dependency Injection

PHP-DI container for clean, testable code. Automatic resolution of dependencies in controllers and services.

Twig Templates

Beautiful, secure templating with Twig. Inheritance, includes, macros, and automatic escaping.

HTMX Ready

First-class support for HTMX. Build dynamic, modern UIs without writing JavaScript.

// Define routes with PHP 8 attributes
class UserController extends Controller
{
    #[Get("/users/{id}", "user.show")]
    public function show(int $id): string
    {
        $user = User::find($id);
        return $this->render('user/show.html.twig', ['user' => $user]);
    }
}
PHP 8.4+ MySQL / MariaDB Redis 7 Docker Twig HTMX