Add intl
extension
#292
Replies: 14 comments 5 replies
-
Fixed it requiring |
Beta Was this translation helpful? Give feedback.
-
Hi @MarceauKa, could you please elaborate required step to solve this issue? Thank you |
Beta Was this translation helpful? Give feedback.
-
Hi I did a lot of research and this is the closest I got to an solution for this exact problem. Im trying to pack a filamenphp laravel webapp into a desktop programm with the help of nativePHP and I just cant find a way to remove the error „php extension intl not found“ @MarceauKa could you please just quickly tell us in which file (and maybe how) you fixed this? Kind regards |
Beta Was this translation helpful? Give feedback.
-
This is because the I also noticed that it's apparently not available for Windows yet. I will test and see what needs doing to get this in place on the binary side so we don't need to mess around with polyfills. |
Beta Was this translation helpful? Give feedback.
-
Thanks for this quick response! In the meantime I tried to build the php binaries manually with this approach:
I then (Im on MacOS) right clicked the php bin and compressed it to a .zip file and renamed and replaced the supposingly old php bins at But I stillt get the same error. (with Did I miss something when replacing the php binary or is it just not that simple? Kind regards. |
Beta Was this translation helpful? Give feedback.
-
In theory, what you've done is correct... What version of PHP are you running locally? |
Beta Was this translation helpful? Give feedback.
-
maybe I should zip it using a cli tool? |
Beta Was this translation helpful? Give feedback.
-
So the thing to check is if the PHP you've built actually includes So you can check the PHP8.3 binary you generated:
|
Beta Was this translation helpful? Give feedback.
-
I get following (I cant interpret if this is sufficient)
Output:
|
Beta Was this translation helpful? Give feedback.
-
That means intl extension is enabled and working |
Beta Was this translation helpful? Give feedback.
-
It's possible that even after copying it into the vendor folder it gets wiped away Can you also check the version that gets built into the app? |
Beta Was this translation helpful? Give feedback.
-
Im having trouble finding a way to check that - in the developer tools I cant find the php version. Im also unable to build php-8.1. |
Beta Was this translation helpful? Give feedback.
-
There are some instructions in the docs |
Beta Was this translation helpful? Give feedback.
-
I was able to solve this issue 🚀with following steps thanks to the very helpful and kind person @simonhamp - many thanks!! (I will list all above discussed steps again so people stumbeling over it with the same issue have a better overview: DISCLAIMER:
Setup:
Problem:
Cause:the static php binaries currently used by nativePHP dont include this extension (yet) Solution:
How I did this:1. building php binary
2. move php binary to nativePHP
copy the newly built php binary from 3. build with nativePHP
i: Interestingly, it seems like the php binary gets copied from the dev to the prod build at dist so it seems to work. verifying the build worked:checking newly build php bin:
checking after 'php artisan native:build` run
Helpful link to debug nativePHP related stuff: https://nativephp.com/docs/1/getting-started/debugging#check-your-app-and-php |
Beta Was this translation helpful? Give feedback.
-
This code won't run as expected.
Beta Was this translation helpful? Give feedback.
All reactions