I am trying to use the NumberFormatter class in PHP but it seems that Local by Flywheel does not have php-intl enabled. I am running the latest version of PHP in local and have added extension=php_intl.dll to the sites php.ini file and restarted but I am still getting the following:
If you’re on Local 5 on Windows, you can add extension=php_intl.dll to php.ini.hbs for the site you wish to enable that extension on.
Note: These instructions will only work if you’re running Windows and Local 5 or newer. If running Local Classic (Local 3 and older), see How do I compile additional PHP extensions? for details on how to add additional PHP extensions.
After adding it, you should see something similar to:
+1 for better cross-platform documentation on custom PHP extensions. @clay Trying specifically to get intl easily added to any site. Thanks for any quick help you can provide.
Any progress on putting together documention for this? I’ve been trying to resolve it by following various stackoverflow posts about enabling Intl for PHP but I haven’t been able to make it work yet. Thanks!
I wanted to use Local me too, but I have the same problem. I need to add Intl extensions and likely other extensions if I need them on a Mac. I look forward for a doc for Mac @clay
@clay@keegan
Another +1 for some documentation on how to do this on macOS. It looks like many folks are struggling with this issue, and this is the page that Google brings up when researching the issue.
@clay (or anyone from the team): it would be reallyreally appreciated if there was at least a sign, that you read the messages and ideally an indication when something could be expected. I love local and it would be shame if i had to look for an alternative if intl couldnt be installed on a mac.
Same problem here. I thought I’d give local a try for my local development.
The first site created, the first site needs intl extension, the first site failed to set up on local. A bit sad especially other than that it works well. I hope someone can at least give us some directions of how to do it manually on Mac