Laravel is an open-source PHP web framework created by Taylor Otwell and maintained by Laravel LLC alongside a large open-source community. It's the #15 most-used web framework overall, reported in roughly 8.9% of developer surveys, and by far the most popular modern framework in the PHP ecosystem. Developers reach for it because it bundles an expressive ORM (Eloquent), routing, authentication, queues, and a clean templating engine (Blade) into one cohesive, well-documented package โ making PHP development feel modern and productive again.
A Laravel route can point straight to a controller method, which uses the Eloquent ORM to query the database and return either a view or JSON.
// routes/web.php
Route::get('/posts/{id}', [PostController::class, 'show']);
// app/Http/Controllers/PostController.php
class PostController extends Controller
{
public function show(int $id)
{
$post = Post::where('published', true)
->findOrFail($id);
return view('posts.show', ['post' => $post]);
}
}
Scaffold a new project with the official Composer-based installer, then boot the built-in dev server.
# create a new Laravel project
composer create-project laravel/laravel my-app
# run the local dev server
cd my-app && php artisan serve