StrataPHP is a modular MVC framework for PHP 8.2+

Build APIs, dashboards, and CMS-driven sites without Laravel's magic. PSR-native routing, explicit DI, migrations, and optional modules for auth, admin, and content. Take what you need. Delete what you don't.

$ git clone git@github.com:lazysod/strataphp-public.git
Build APIs, dashboards PSR-7/11/15 native Explicit architecture MIT licensed

Database Tools

Migrations, seeding, backups. Run php bin/migrate.php, php bin/seed.php, php bin/backup.php. ORM is your choice.

Unified CLI

Roadmap: php strata migrate, php strata make:controller. Wraps all bin scripts into one tool.

Test-Ready

Strata\TestCase boots your full app for integration tests.

See it in 15 seconds

No bootstrap/cache, no php artisan, no 200-line config. Just PHP.


use Strata\App;
use App\Repository\UserRepository;

$app = new App();

$app->get('/users/{id}', function(int $id, UserRepository $users) {
    return $users->find($id); // DI just works. No config files.
});

$app->post('/users', fn(Request $r) => User::create($r->json()));

$app->run(); // That's it. PSR-7 in, PSR-7 out.

Strata vs The Rest

  StrataPHP Slim 4 Lumen Laravel
Philosophy Explicit layers Micro, DIY Laravel-lite Batteries included
DI Container Bring your own PSR-11 Manual Built-in Built-in + facades
Best For Client sites, MVPs, modular apps, CMS projects Tiny APIs Laravel devs going micro Full-stack MVPs

Radix Router

Fast radix router. Named params. Groups.

Container Agnostic

Works with PHP-DI, League\Container, Symfony. Or no container at all.

Middleware First

Every request flows through PSR-15. Add CORS, auth, logging as layers.

Database Tools

Migrations, query builder, connection pooling. ORM is your choice.

Developer CLI

php bin/migrate.php migrate. php bin/seed.php. php bin/backup.php db

Test-Ready

Strata\TestCase boots your full app for integration tests.

Ready to try PHP without the ceremony?