v2.3 — Stable Release

Slenix
Framework.

A secure, lightweight PHP framework for building high-performance APIs and elegant web applications — minimal by design, powerful by nature.

slenix / routes / web.php
use Slenix\Http\Routing\Router;

Router::get('/', function($req, $res) {
    return 'Hello, World!';
});

Router::get('/users/{id}', function($req, $res) {
    $id = $req->param('id');
    return $res->json(['user' => $id]);
});

// $ php celestial serve
$auth = function($req, $res, $next) {
    if (!isset($_SESSION['user'])) {
        return $res->redirect('/login');
    }
    return $next($req, $res);
};

Router::get('/dashboard', function($req, $res) {
    return $res->view('dashboard');
})->middleware($auth);

Why Slenix?

Built for developers who value performance, clarity and control.

Blazing Performance

No unnecessary layers, no hidden overhead — just raw PHP performance optimized for real-world workloads.

Zero Dependencies

Built on pure PHP with no external packages. Deploy with full confidence — no bloated vendor trees.

Expressive Routing

Fluent, readable route definitions with support for parameters, groups and middleware chaining.

Built-in Security

CSRF protection, JWT authentication and secure sessions — security is a first-class feature, not an add-on.

Elegant ORM

Interact with your database using a fluent query builder. Migrations and relationships included.

Luna Templates

A clean template engine inspired by Blade — layouts, components and conditionals without the complexity.


Install in one command

Scaffold a new project with Composer and start building in seconds — no extra configuration needed.

composer create-project slenix/slenix myapp
View full installation guide →

Trusted by thousands of developers

See what the community says about building with Slenix.

"Finally a PHP micro-framework that doesn't try to be Laravel. Slenix does one thing and does it really well."

AM
Ana Moreira API Developer · Angola

"The routing system is the cleanest I've seen in any PHP framework. Middleware chaining feels natural, not forced."

KL
Kevin Lopes Backend Engineer · Brazil

"We power three production APIs with Slenix. The performance-to-simplicity ratio is unmatched in the PHP ecosystem."

TS
Tomás Silva CTO · StartupCore

"The Luna template engine is a breath of fresh air. Simple syntax, no magic, and it composes perfectly with the rest of the framework."

PC
Pedro Costa Frontend Dev · Mozambique