# Add support for PHP 8.1 in Local

**URL:** <https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352>\
**Category:** Completed Feature Requests\
**Tags:** php-versions, php\
**Created:** [December 16, 2021, 3:56pm UTC](https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352 "2021-12-16T15:56:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![sc0ttkclark](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/sc0ttkclark/32/4763_2.png) [@sc0ttkclark](https://community.localwp.com/u/sc0ttkclark)\
**Post date:** [December 16, 2021, 3:56pm UTC](https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352/1 "2021-12-16T15:56:28Z")

</div>

I’d like to be able to run PHP 8.1 on my Local sites,

Also just noting that the PHP versions we have available are not up-to-date with latest patches (PHP 8.0.0 should be 8.0.12, 7.4.1 should be 7.4.26, etc)

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [December 16, 2021, 7:35pm UTC](https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352/2 "2021-12-16T19:35:42Z")

</div>

Thanks for the feature request @sc0ttkclark !

We have an issue in our bug tracker to update those minor versions, but I added a note to make PHP 8.1 an option.

---

<div class="post-metadata">

**Author:** ![crodrigb91](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@crodrigb91](https://community.localwp.com/u/crodrigb91)\
**Post date:** [January 3, 2022, 2:01pm UTC](https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352/3 "2022-01-03T14:01:36Z")

</div>

Hello there,

Thanks for your reply 😃

Do you have any ETA when LocalWP will support PHP 8.1?

Thanks  
Carlos R.

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [January 5, 2022, 7:47pm UTC](https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352/4 "2022-01-05T19:47:43Z")

</div>

Thanks for the comment! No specific ETA, but I’ll keep pushing for it to be soon!

---

<div class="post-metadata">

**Author:** ![anon63725421](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@anon63725421](https://community.localwp.com/u/anon63725421)\
**Post date:** [February 2, 2022, 3:18pm UTC](https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352/5 "2022-02-02T15:18:54Z")

</div>

So we’re now at patch version 8.0.15 and I just downloaded and installed an update for Local (macOS), but it’s still only showing PHP 8.0.0. Seems like the last release would have been a good time to do minor housekeeping like bumping the versions but it didn’t happen? 😢

---

<div class="post-metadata">

**Author:** ![Zagna](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/zagna/32/15260_2.png) [@Zagna](https://community.localwp.com/u/Zagna)\
**Post date:** [February 8, 2022, 6:17pm UTC](https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352/6 "2022-02-08T18:17:10Z")

</div>

I like to use Local for WP & Laravel tinkering on Windows.

I wanted to try Laravel 9 that was just released… but it **requires** PHP 8.0.2.

Update PHP already…

---

<div class="post-metadata">

**Author:** ![JPMac](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@JPMac](https://community.localwp.com/u/JPMac)\
**Post date:** [February 9, 2022, 1:25am UTC](https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352/7 "2022-02-09T01:25:07Z")

</div>

I’m starting to run into more and more PHP packages that require PHP 8.0.2 – thanks to using Symfony packages – and this is preventing me from using them in my WP plugins. If nothing else, it would be helpful if we could get the latest version of 8.0 if not 8.1 at this time.

---

<div class="post-metadata">

**Author:** ![anon63725421](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@anon63725421](https://community.localwp.com/u/anon63725421)\
**Post date:** [February 21, 2022, 4:12pm UTC](https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352/8 "2022-02-21T16:12:54Z")

</div>

3 months

😭

---

<div class="post-metadata">

**Author:** ![woda](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/woda/32/14550_2.png) [@woda](https://community.localwp.com/u/woda)\
**Post date:** [February 24, 2022, 11:18am UTC](https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352/9 "2022-02-24T11:18:57Z")

</div>

Looking forward to having 8.1 available as well.

---

<div class="post-metadata">

**Author:** ![n8finch](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/n8finch/32/7799_2.png) [@n8finch](https://community.localwp.com/u/n8finch)\
**Post date:** [March 2, 2022, 8:53pm UTC](https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352/10 "2022-03-02T20:53:47Z")

</div>

Would love to see this soon as well, any updates on an ETA @ben.turner ? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Bartekx300](https://avatars.discourse-cdn.com/v4/letter/b/8e7dd6/32.png) [@Bartekx300](https://community.localwp.com/u/Bartekx300)\
**Post date:** [March 17, 2022, 10:59am UTC](https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352/12 "2022-03-17T10:59:29Z")

</div>

Hello @ben.turner  
I would like to start theme developing with new SAGE 10 on local, but there’s 8.02 neccesarry. Can you please provide us any information, when you will upgrade the php version.

---

<div class="post-metadata">

**Author:** ![Wousto](https://avatars.discourse-cdn.com/v4/letter/w/ed8c4c/32.png) [@Wousto](https://community.localwp.com/u/Wousto)\
**Post date:** [March 24, 2022, 12:28pm UTC](https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352/13 "2022-03-24T12:28:52Z")

</div>

Hello @ben.turner

It’s possible to add php 8.1 or \>= 8.02. It’s very important for install sage 10 🙏🏼

Thank’s,

---

<div class="post-metadata">

**Author:** ![artuso](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@artuso](https://community.localwp.com/u/artuso)\
**Post date:** [March 28, 2022, 9:23am UTC](https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352/14 "2022-03-28T09:23:24Z")

</div>

Hi @ben.turner,

I had to move from Local to MAMP because PHP 8.0.2 isn’t supported, and I’m using Sage10 to develop themes which needs 8.0.2

I miss using Local! Is it possible to update the PHP version to 8.0.2?

---

<div class="post-metadata">

**Author:** ![nerdawson](https://avatars.discourse-cdn.com/v4/letter/n/958977/32.png) [@nerdawson](https://community.localwp.com/u/nerdawson)\
**Post date:** [March 31, 2022, 2:43pm UTC](https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352/15 "2022-03-31T14:43:51Z")

</div>

8.1 or an updated version of 8.0 would be great.

I’ve been using Local for the past couple of years and it’s far simpler than my previous Vagrant based setup. It’s fast and convenient for WordPress development.

The challenge I have now, and that many other people are running into, is that some newer projects require 8.0.2 at a minimum. One of the most popular starter themes, Sage by Roots, has that requirement for example.

This is the first time I’ve found Local to be unable to create a suitable environment for modern WordPress development.

---

<div class="post-metadata">

**Author:** ![n8finch](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/n8finch/32/7799_2.png) [@n8finch](https://community.localwp.com/u/n8finch)\
**Post date:** [April 1, 2022, 3:42pm UTC](https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352/16 "2022-04-01T15:42:59Z")

</div>

Since there isn’t a date on when this can be released, I thought I’d add this here if you haven’t already figured a way to get around this:

1. [preferred] According to the **[Composer docs here,](https://getcomposer.org/doc/06-config.md#platform)** you can emulate your PHP environment like so in your `composer.json`file:

```auto
{
    "config": {
        "platform":{
            "php":"8.0.2"
        }
    }
}

```

This adds a spoof to your platform so that even though you’re not really running PHP 8.0.2, it will install dependencies as such.

1. Remove the `vendor`directory and run:

```auto
composer install --ignore-platform-reqs

```

Obviously, this is a temporary solution to get you going, but hopefully it will help.

---

<div class="post-metadata">

**Author:** ![anon63725421](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@anon63725421](https://community.localwp.com/u/anon63725421)\
**Post date:** [April 5, 2022, 2:28pm UTC](https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352/17 "2022-04-05T14:28:05Z")

</div>

Still at 8.0.0 while PHP is at 8.1.4.

For those using Sage, you should be able to install dependencies by using the site shell. Don’t run composer from your command line, as this will install based on what you have globally on your system (likely ^8.0.2 or 8.1.x). Right click on the site in Local, Open Site Shell, and run composer from there. It should install based on the Local PHP version.

Still. Understanding as a dev that no update is without complication, this can’t possibly be one of the more difficult updates to make. ☹

---

<div class="post-metadata">

**Author:** ![austinwendt](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/austinwendt/32/13912_2.png) [@austinwendt](https://community.localwp.com/u/austinwendt)\
**Post date:** [April 5, 2022, 9:51pm UTC](https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352/18 "2022-04-05T21:51:15Z")

</div>

Hi all,

If you haven’t seen me around the forums, I’m the Product Manager on the Local team. 👋 I wanted to post and acknowledge that we’ve heard you and we’re on it. Unfortunately, it isn’t as easy as we would like to be either.

For some transparency, Local is (and, thus our engineers are) responsible for compiling each version of PHP we include in the Local downloads ourselves; we don’t rely on a 3rd party package manager to handle this building for us. Why not? Good question! “That’s how it has always worked” is the honest answer. We’re asking ourselves that too and exploring ways we can make this a faster process going forward.

This means that any new version of PHP, major, minor, or patch, has to be downloaded and recompiled to be included in a release, as well as the verification that we do to make sure it is still playing nicely with the database, web server, etc. Then multiply that across 3 operating systems (Mac/Linux/Windows).

I write that for transparency, not to make an excuse. We need to fix it, and our primary focus for Q2 of 2022 (April-May-June) is fixing how we handle these 3rd party services. Ideally, we have a solution that:

1. Gets the latest versions of these tools in your hands ASAP
2. Doesn’t require manual intervention from our team every time a new version is released, as it isn’t scalable for us either

Local shouldn’t be a blocker in your development workflows. First on that agenda is bringing us back in line with current versions (8.0.17 and 8.1.4) to unblock development. Then we’ll turn to building something more scalable for the future.

We’re listening; we know it’s frustrating, and our current goal for the team is around fixing it. I’ll post here as soon as I have news to share, and feel free to ping me to keep me honest. 🙂

Thanks,  
Austin

---

<div class="post-metadata">

**Author:** ![emmtre](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/emmtre/32/15116_2.png) [@emmtre](https://community.localwp.com/u/emmtre)\
**Post date:** [April 5, 2022, 10:06pm UTC](https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352/19 "2022-04-05T22:06:11Z")

</div>

> [@austinwendt](#):
>
> We’re listening; we know it’s frustrating, and our current goal for the team is around fixing it. I’ll post here as soon as I have news to share, and feel free to ping me to keep me honest. 🙂

Thanx @austinwendt for the update. Keep up the good work!

---

<div class="post-metadata">

**Author:** ![n8finch](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/n8finch/32/7799_2.png) [@n8finch](https://community.localwp.com/u/n8finch)\
**Post date:** [April 6, 2022, 7:23pm UTC](https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352/20 "2022-04-06T19:23:59Z")

</div>

Thanks for the update and transparency Austin, always appreciated!

---

<div class="post-metadata">

**Author:** ![rickg](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/rickg/32/4959_2.png) [@rickg](https://community.localwp.com/u/rickg)\
**Post date:** [April 8, 2022, 4:33pm UTC](https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352/21 "2022-04-08T16:33:27Z")

</div>

@austinwendt that’s good to know but… it’s ~4 months since this was raised. When can we expect 8.1 support at least? Is that really June?

I like Local a lot and recommend it but it’s starting to feel like it’s not getting resources. I get that compiling and testing across 3 platforms takes time, but… 4 months. At least.

[Next page](https://community.localwp.com/t/add-support-for-php-8-1-in-local/29352.md?page=2)
