Support for V8 Javascript Engine for PHP
The information in this post is accurate as of the published date . Please make sure to check any linked documentation within the post for changes/updates.
Will be in the future a support of the V8 Javascript Engine for PHP (https://github.com/phpv8/v8js)? It can be used for server side rendering of javascript code.
This problem can not be solved by simple adding an php extension (e.g. v8js.so) because there have to be some system extensions (libv8_libbase.so, etc.) installed on the system.
-
it might be a little more work, but you should be able to install just about anything using the hooks, see: https://docs.platform.sh/configuration/app/build.html#hooks
Check out the install instructions for v8
Alternatively, you could compile the binaries, upload them somewhere, and use the hooks to download and copy them in place. Might want to use LD_LIBRARY_PATH, to add a directory where you can place those files.
LD_LIBRARY_PATH=. ./your_custom_so_files
0
Please sign in to leave a comment.
Comments
1 comment