Manticore is an LLVM-based AOT compiler for PHP. It allows you to compile PHP code into a standalone binary without a regular PHP interpreter.
I'm pleased to announce that the compiler can now compile more complex applications. Two examples: a small Laravel app with Eloquent and the official Symfony demo app.
What works:
- Laravel 13 (examples/laravel-app): routing, Eloquent over SQLite, sessions, Blade, Carbon, Monolog.
- symfony/demo (Symfony 8.1, Doctrine ORM 3.6, Twig, security, 30 locales): every page we compared is byte-identical to what PHP 8.5 renders from the same code.
Everything is compiled into one binary with a built-in HTTP server.
Caveat: it is not production-ready yet. It's a working compiler with real frameworks, not a drop-in replacement for PHP-FPM or any other SAPI.
Links:
- Repo: https://github.com/manticorephp/compiler
- Release notes: https://github.com/manticorephp/compiler/releases/tag/v0.18.0