Laravel 12 and 13 requirements: PHP version, extensions, hosting
· The AYT team · 8 min read

Laravel 13, released on 17 March 2026, needs at least PHP 8.3 and supports PHP 8.3, 8.4 and 8.5. Laravel 12 needs at least PHP 8.2 and runs on PHP 8.2 through 8.5. Both need the same 13 PHP extensions, Composer, a supported database (MariaDB 10.3+ or MySQL 5.7+, for example) and hosting that serves the site from the public folder.
PHP versions for each Laravel version
The table from Laravel's official documentation, with support dates:
| Laravel | Supported PHP | Released | Bug fixes until | Security fixes until |
|---|---|---|---|---|
| 10 | 8.1 – 8.3 | 14 February 2023 | 6 August 2024 | 4 February 2025 |
| 11 | 8.2 – 8.4 | 12 March 2024 | 3 September 2025 | 12 March 2026 |
| 12 | 8.2 – 8.5 | 24 February 2025 | 13 August 2026 | 24 February 2027 |
| 13 | 8.3 – 8.5 | 17 March 2026 | Q3 2027 | 17 March 2028 |
Each major version gets bug fixes for 18 months and security fixes for 2 years. As of this article (December 2026), Laravel 10 and 11 get no updates at all, and Laravel 12 gets security fixes only, until 24 February 2027.
How long your PHP version is supported
The Laravel version is only half the story. PHP has an expiry date too, published on php.net:
| PHP | Active support until | Security until |
|---|---|---|
| 8.2 | 31 December 2024 | 31 December 2026 |
| 8.3 | 31 December 2025 | 31 December 2027 |
| 8.4 | 31 December 2026 | 31 December 2028 |
| 8.5 | 31 December 2027 | 31 December 2029 |
A Laravel 12 app on PHP 8.2 loses PHP security updates at the end of 2026, before Laravel 12 itself leaves support. If you have an app like that, move PHP to 8.3 or 8.4 first (Laravel 12 runs on both), then plan the move to Laravel 13.
For a new project: Laravel 13 on PHP 8.4 or 8.5, for as many years of security updates as possible on both.
Required PHP extensions
Laravel's documentation lists the same extensions for 12 and 13:
- Ctype
- cURL
- DOM
- Fileinfo
- Filter
- Hash
- Mbstring
- OpenSSL
- PCRE
- PDO
- Session
- Tokenizer
- XML
Any hosting that runs PHP apps has most of them on from the start. Beyond those, almost every real project needs a few more:
pdo_mysqlfor MySQL and MariaDB (PDO alone isn't enough, you also need the database's driver);redis(phpredis) if you use Redis: Laravel's.env.exampleships withREDIS_CLIENT=phpredis;gdorimagickfor packages that resize images;zipfor packages that build Excel exports or archives;intlandbcmath, required by many packages for formatting and money calculations.
Don't guess: composer check-platform-reqs compares what the packages in composer.lock need with the installed PHP and extensions and shows what's missing. php -m lists the extensions that are on. Note that the command-line PHP and the PHP serving the site can be different versions on the same server.
Supported databases
Laravel 12 and 13 officially support:
- MariaDB 10.3+
- MySQL 5.7+
- PostgreSQL 10.0+
- SQLite 3.26.0+
- SQL Server 2017+
On typical hosting you'll have MariaDB or MySQL. Some features need newer versions: JSON column queries work on MariaDB 10.3+ but on MySQL only from 8.0. And Laravel 13's vector queries (semantic search) work, according to the docs, on PostgreSQL with the pgvector extension and on MariaDB 11.7 or newer.
Composer and Node.js
Composer installs the PHP dependencies (composer install --no-dev in production). If your host has no Composer or SSH, you can run it elsewhere, with the same PHP version, and upload the vendor folder. It's awkward, but it works.
Node.js is only needed to build assets (npm run build, with Vite), not to run the app. The output in public/build is static. If the server has no Node, build locally or in a pipeline and upload only the result. There's a pipeline example in our article on automatic deploys with GitHub Actions.
The PHP settings that matter
Besides the version and extensions, a few php.ini values decide whether the app runs without surprises:
memory_limit: 128 MB is usually enough for web requests; Composer and large imports need more, but they run on the command line, which has its own settings;upload_max_filesizeandpost_max_size: they cap the files users can upload.post_max_sizemust be at least as large asupload_max_filesize;max_execution_time: how long a web request may take. An export that takes a minute belongs in a queued job; raising the limit doesn't fix it;- OPcache on: it keeps compiled PHP code in memory and gives a large speed gain without changing your code.
What your host must allow
The PHP version and extensions are the easy part to check. What makes the difference is how the host lets the app run:
| Requirement | Why | If it's missing |
|---|---|---|
Document root in public |
otherwise .env and your code are reachable from a browser |
the Laravel public folder |
Write access to storage and bootstrap/cache |
logs, sessions, compiled views, cache | a 500 error, often with nothing in the log |
| Cron every minute | the scheduler (schedule:run) |
the scheduler and cron |
| Long-running processes | queue workers, Horizon | queues run from cron |
| Symbolic links | public/storage, created by storage:link |
storage:link without SSH |
| A way to deploy: Git, SSH or FTPS | getting the code onto the server | Laravel without SSH |
| PHP version chosen per site | two apps on different versions | one version for the whole account |
Hosting built only for WordPress can tick the PHP and extension boxes and still fall short on cron, processes or the document root. Ask about them before you buy.
What Laravel 13 adds over 12
The release notes describe Laravel 13 as a small upgrade in terms of effort. Besides the PHP 8.3 minimum, it adds:
- the Laravel AI SDK, one API for text generation, tool-calling agents, embeddings, images and audio;
- JSON:API resources built into the framework;
- request forgery protection (
PreventRequestForgery), which also checks the request's origin on top of the CSRF token; Queue::route(...), to set in one place which queue and connection each job uses;- more PHP attributes, such as
#[Middleware]and#[Authorize]on controllers or#[Tries]and#[Timeout]on jobs; Cache::touch(...), which extends a cache key's lifetime without reading it.
None of these changes what your host needs to offer, except vector search, which needs PostgreSQL with pgvector or MariaDB 11.7+.
Laravel 12 or 13 for a new project?
Laravel 13. It gets bug fixes until Q3 2027 and security fixes until 17 March 2028, while Laravel 12 leaves support completely in February 2027. The difference in requirements is small: PHP 8.3 instead of 8.2.
For an existing Laravel 12 app, Laravel's documentation describes the move to 13 as an upgrade with few breaking changes; most apps upgrade without changing much code. The upgrade guide on laravel.com lists what to check. Do the upgrade on a test copy before February 2027.
Frequently asked questions
Does Laravel 13 run on PHP 8.2?
No. Composer refuses to install it, and if you upload a vendor built on another PHP, the app stops at boot with "Composer detected issues in your platform".
Which PHP version does Laravel 11 need?
PHP 8.2 to 8.4. But Laravel 11 has had no security fixes since 12 March 2026, so it's worth upgrading.
How do I find out which Laravel version my app runs?
php artisan --version prints the exact version, such as Laravel Framework 12.x. Without a command line, open composer.json: the line "laravel/framework": "^12.0" gives you the major version, and composer.lock the one actually installed.
Do I need SSH for Laravel?
Not necessarily. You need a way to run Composer, migrations and artisan commands. The options are in our guide to Laravel on hosting without SSH.
Laravel on AYT hosting
On AYT, each account runs its own isolated PHP, and you choose the version separately for each site, so a Laravel 13 app and an older one can share an account.

You switch on extra PHP extensions from the panel. The Laravel Toolkit prepares the site (database, deploy key, document root in current/public), runs Composer and the asset build with Node 22 or 24 on every deploy, runs queue workers as supervised processes and the scheduler from a switch (a cron job every minute), and on paid plans Redis is switched on from the panel. There's no SSH: Git, Composer, npm and artisan run through deploys, processes and the Commands page. Details under apps, plans under hosting.
