Local Community

PHP extensions management

When trying to use Local with Magento 2 the PHP installation misses two extensions.

PHP Extension xsl.
PHP Extension intl.

Might be a very nice feature to enhance the PHP installation with extensions. Maybe some form of a manager where you can even enable/disable extensions.

+1 - I would second this, would be a very useful and practical feature!

1 Like

+1 too. A must have, not only for Magento :wink:

I too would like support for Magento, which requires:
PHP Extension xsl.
PHP Extension intl.

I bet that someone could create an addon that would work with custom environments to do this.

If anyone wants to take a stab at this, I’d love to see a Github repo!

Hi gang, I’m following the instructions at https://local.getflywheel.com/community/t/how-do-i-compile-additional-php-extensions/2272 but it’s a mess-- I get weird error messages when I type “make”, I google around to find the dependancies I’m missing, there’s something about a version number and then php_smart_str.h is missing but that means my ./configure command is not using the right /opt/ something something ARGH OH FOR CHRIST’S SAKES I JUST WANT TO MAKE GOOD WORDPRESS SITES, NOT LEARN HOW TO BE A SYSADMIN!!! :slight_smile:

May I suggest…

Please add a nice interface to make it easy to add PHP extensions, or, even better… just ship with a ton of them already enabled/installed/whatever.

For example: I’m trying to use http://php.net/manual/en/book.intl.php
This is a SUPER standard library for anyone who is developing sites that are multi-lingual (for many of your European customers, like me, I’ll bet this is quite common… here in Switzerland we do most work in 2-4 languages…)

To have to jump through a zillion hoops and still not actually succeed in getting it installed on Local really sucks :frowning:

There’s my 2c.

Any ideas for how I can get it going on my setup would be great, too. I can post all the error logs and version numbers and blah blah from my attempts and someone there can look at it, but, damn, that’s a lot of yak shaving. (Google that if you don’t know it. You’ll laugh.)

1 Like

Hi @pnoeric,

Haha, I feel your pain and totally agree! I’ve moved this into the #feature-requests so others can vote on this.

If you’re curious, we don’t enable every extension under the sun simply because sites will run slower and it’ll take up more space.

A PHP extension manager is a great idea though and it’s actually something we’ve been thinking about for quite some time. It would make a great add-on as well!

1 Like

Thank you Clay, I appreciate your sympathy and understanding of my situation. :slight_smile:

May I suggest a stopgap measure – see what the top 25% of extensions are that everyone uses, and ship local with those pre-installed. I understand and agree that it makes things get bigger and can slow down the site, but IMHO, we’re talking about minimal slowness and disk space is freaking cheap these days.

In the meantime, hopefully others will see the benefit of an extension manager. I agree that it would make an excellent add on.

And I’m not sure how to continue development on this particular site with Local, in the meantime, since I can’t seem to install this internationalization library that I badly need. :frowning:

Sad face in ZĂĽrich

1 Like

UP !

Still no news regarding this rich idea?

Has my vote!
My story: I have been developing a plugin with php_intl as a requirement and I am currently using another development environment for this - and only for this. Would be happy to can it as soon as Local adds the possibility to use different extensions.

Yes please! i need to install the module PHP XML RPC and don’t know how to do it.


Hello all,

I will bring this discussion to the Local engineering team during our next Feature requests review.

I’ll circle back sometime soon with an update - thank you!


Hello all, :wave:

I wanted to circle back to this thread and provide some clarifications.

Since this thread was created we have added support for intl and xsl. :tada:

We also implemented the request @pnoeric suggested (”see what the top 25% of extensions are that everyone uses, and ship local with those pre-installed”)

Regarding the larger “extension manager”, transparently, that is not on the near-term roadmap but please feel free to keep upvoting and discussing.

I also wanted to ask, are there any common extensions you feel are missing that we can consider adding?

Thank you, we appreciate you all being a part of the Local community!


For myself, the php redis extension is necessary (and seems common/mainstream enough to include at least the option)?
On OSX, adding extensions is apparently not possible…