Why PHP in 2026? It's Actually Insanely Good Now
Extracto
PHP is actually insanely good now. TypeScript-level types, no build steps, immutability via readonly, enums, and more. Just write code and deploy.
Resumen
Resumen Principal
El contenido presenta una reivindicación contundente del PHP moderno, desafiando percepciones obsoletas y destacando su evolución hacia un ecosistema robusto y altamente eficiente. Se subraya una transformación radical con la integración de la compilación JIT (Just-In-Time) para un rendimiento superior, inmutabilidad
Contenido
It's actually insanely good now.
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.
Route::get('/books', function () {
return Book::query()
->where('status', Status::Published)
->with('author')
->paginate();
});
it('publishes a book', function () {
$book = Book::factory()->create();
$book->publish();
expect($book->status)->toBe(Status::Published);
});
/** @return array<int, string> */
public function titles(): array
{
return Book::all()
->filter(fn (Book $book): bool => $book->isPublished())
->map(fn (Book $book): string => $book->title)
->toArray();
}
Trusted by thousands of companies around the world
Ecosystem
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.
Ready to see modern PHP?
Type-safe. Expressive. Modern. It just works. Watch me explain it.
Start Today
One command. Zero config. Production-ready.
Install PHP
/bin/bash -c "$(curl -fsSL https://php.new/install/mac)"
Create a Laravel app and run it
laravel new my-app
cd my-app
composer run dev # visit http://localhost:8000
Install PHP
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://php.new/install/windows'))
Create a Laravel app and run it
laravel new my-app
cd my-app
composer run dev # visit http://localhost:8000
Install PHP
/bin/bash -c "$(curl -fsSL https://php.new/install/linux)"
Create a Laravel app and run it
laravel new my-app
cd my-app
composer run dev # visit http://localhost:8000
Show Your Support
Add this badge to your README. Let the mass know.
[](https://whyphp.dev)
Fuente: Why PHP