Lumen was great. It taught us micro-frameworks work. StrataPHP continues that philosophy with active development. At the time of writing this Lumen is end-of-life. StrataPHP is the maintained, PSR-native replacement.
$router->get('/api/users', function () {
return response()->json(User::all());
});
$router->get('/api/users', function () {
return new JsonResponse(User::all());
});
Change: `response()->json()` → `new JsonResponse()`. That's it.
Lumen uses `illuminate/container`. StrataPHP uses PSR-11. Keep using Illuminate if you want:
composer require illuminate/container
$container = new Illuminate\Container\Container();
$app = new App($container);
Works exactly the same. Lumen + StrataPHP both use `illuminate/database`.
composer require illuminate/database
// bootstrap/database.php — same as Lumen
$capsule = new Capsule;
$capsule->addConnection([...]);
$capsule->bootEloquent();
| Maintenance | Active | EOL, security fixes only |
| PSR-7 | Native | Facade wrapper |
| Core Size | ~450kb | ~15MB |
| Boot | ~3ms | ~20ms |
| Modules | Admin, CMS, Auth | None |
composer create-project strataphp/skeleton my-apiTime estimate: 1-2 hours. Lumen and StrataPHP are conceptually identical.
Lumen migrations are the easiest. If something breaks, post in Discord with your `routes/web.php` and we'll port it.