Add xmlwriter
extension
#309
Replies: 5 comments 8 replies
-
Hey @DanielVera987. The It looks like there's wide support for it across all platforms, so it would just be a case of compiling it in. But I'm not sure if this makes sense for the central binaries we ship though, so I'm moving this to the Ideas board so we can gather feedback on how much need there is for it. |
Beta Was this translation helpful? Give feedback.
-
@DanielVera987 @PeteBishwhip Please add the xmlwriter extension. We are having little success with compiling it in the custom binary builds |
Beta Was this translation helpful? Give feedback.
-
any update on this? or maybe any guide to build the custom with php xmlwriter enabled? |
Beta Was this translation helpful? Give feedback.
-
is there any update on this problem yet? |
Beta Was this translation helpful? Give feedback.
-
@uluumbch @Sethisme99 and everyone who needs a more detailed instruction on the build process, here is what I did: clone repogit clone https://github.com/crazywhalecc/static-php-cli.git --depth=1
cd static-php-cli IMPORTANTALL THESE COMMANDS WERE RUN IN THE Setup runtimeThis will generate a php binary (with the minimun version required for the build) and the composer binary (I recommend using these instead) bin/setup-runtime You need to install the PHP environment first before running Composer and this project. The installation method can be referred to below../runtime/php.exe ./runtime/composer.phar update Prepare dependenciesThe docs of static-php-cli set the order as:
But what worked for me was running them like this: ./runtime/php.exe ./bin/spc doctor --auto-fix
#then
./runtime/php.exe ./bin/spc download php-src \ #note the `php-src` argument
--with-php={desired_php_version} \
--for-extensions={list_of_extensions_comma_separated}
--for-libs={list_of_libs_comma_separated} //or directly --all and you save the extensions and libs options Build commandNow you can build your php binary as desired, with the format in the docs. ./runtime/php.exe ./bin/spc build \
"{list_of_extensions_comma_separated}" \
--build-cli \ # or the target you need
--with-libs="{list_of_libs_comma_separated}"
-I "{php_ini_variable_assignation}" \ # (you can add as much as you need individually)
--debug # just to get the output in case something doesn't work If you did everything correctly, you should see a new php binary in EXTRAIf the build works, you should compress your binary with ./runtime/php.exe ./bin/spc install-pkg upx # install upx first
./runtime/php.exe ./bin/spc build --with-upx-pack # then your extensions, libs and options Also, what I did before compiling, was listing my current extensions and formatting them into a comma separated list: php -m | grep -vE '^\[.*\]|^[A-Z]' | paste -sd, - |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What were you trying to do?
I have a system so that I can read xml file and export them as excel, the problem is that at the time of reading xml files appears me that is missing extension, how can I urge it?
What happened?
After reading the N xml is exported in an excel that I make use of the larave-excel library and can download the file
How to reproduce the bug
Package Versions
0.6.3
PHP Version
8.2.0
Laravel Version
10.10
Node Version
16.10.0
Which operating systems have you seen this occur on?
No response
OS version
macos 14.4.1
Notes
No response
Beta Was this translation helpful? Give feedback.
All reactions