PHP has come a long way. Modern PHP has JIT compilation, immutability via readonly, enums, attributes, and a type system that rivals TypeScript.
No build steps. No transpilation. No bundling. Just write code and deploy. That's the superpower everyone forgot about.
Value ObjectsAPITestingGenerics
final readonly class Book
{
public function __construct(
public Status $status,
public string $title,
) {}
public function label(): string
{
return match ($this->status) {
Status::Draft => 'Working on it',
Status::Published => 'Ready to read',
};
}
}Trusted by thousands of companies around the world
Modern PHP isn't just better. It's unrecognizable from its past.
~/projects/myapp
$ laravel new myapp
_ _
| | | |
| | __ _ _ __ __ ___ _____| |
| | / | '_/ \ \ / / \ |
| |___| (_| | | | (_| |\ V / __/ |
|______\__,_|_| \__,_| \_/ \___|_|
Creating a laravel/laravel project...
✓ Application ready in [myapp].
✓ Built with love.
LaravelComposerPHPStanPestPintRector
So did we. Then we actually looked at it. Type-safe. Expressive. Modern. It just works.
0
6
0