Local Community

Compile PHP with the `intl` extension

This is needed across all OS’s - MacOS, Windows, and Linux.

The PHP intl extension was added as a recommendation in WordPress 5.9 and now shows as an issue on the Site Health page for WordPress sites built with Local.

We are using a plugin that requires the use of NumberFormatter but it keeps erroring out since this extension isn’t enabled on Local. Works ok when hosted, but not for dev work.

I have been needing this since Day 1 and it has been on the table since at least December 2019 (How do I enable php-intl on Local? - 3.4k views at the time of writing). IMHO, as WordPress is an internationally supported software, it is absolutely necessary to support all developer’s needs, especially one that is so prevalent.

For now, I used DevKinsta, as it provides a similar ease of use, and lets you define PHP extensions per PHP Version (wink, wink @austinwendt ) - however, I would love to see Local implement a similar solution, so I can finally condense my local dev environments into one :kissing_heart:

I agree with you! Absolutely necessary, this is related to our PHP updates that are our focus for this quarter and will be included.

I’m curious - how does that work with DevKinsta? Could you share a screenshot of how you pick/choose those extensions?

1 Like

Certainly! Here is the settings page in DevKinsta:

Here, you can select the PHP Version and set / unset extensions as you see fit.

DevKinsta runs on docker with the following services / containers:

My guess is that the php-fpm container is configured based on the selected extensions.

1 Like

@austinwendt FYI: I found a related feature request, that describes the functionality that DevKinsta offers: PHP extensions management

Maybe we can consolidate this into one FR, although their scopes are different?

1 Like

This is perfect, I appreciate it! Definitely a lot of value in giving the user more control over these values. I’d like Local to be capable of something similar… TBD on what format that takes, but it is definitely on our minds as we fix this management of 3rd party services.

2 Likes