A secure, lightweight PHP framework for building high-performance APIs and elegant web applications — minimal by design, powerful by nature.
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);
Built for developers who value performance, clarity and control.
No unnecessary layers, no hidden overhead — just raw PHP performance optimized for real-world workloads.
Built on pure PHP with no external packages. Deploy with full confidence — no bloated vendor trees.
Fluent, readable route definitions with support for parameters, groups and middleware chaining.
CSRF protection, JWT authentication and secure sessions — security is a first-class feature, not an add-on.
Interact with your database using a fluent query builder. Migrations and relationships included.
A clean template engine inspired by Blade — layouts, components and conditionals without the complexity.
Scaffold a new project with Composer and start building in seconds — no extra configuration needed.
composer create-project slenix/slenix myapp
See what the community says about building with Slenix.
"Switched from Laravel to Slenix for a client project and never looked back. Zero bloat, instant boot time, everything just clicks."
"Finally a PHP micro-framework that doesn't try to be Laravel. Slenix does one thing and does it really well."
"The routing system is the cleanest I've seen in any PHP framework. Middleware chaining feels natural, not forced."
"We power three production APIs with Slenix. The performance-to-simplicity ratio is unmatched in the PHP ecosystem."
"The Luna template engine is a breath of fresh air. Simple syntax, no magic, and it composes perfectly with the rest of the framework."
"Slenix is what PHP always should've been — fast, minimal, no magic. Our team ships features twice as fast now."