apioo / fusio

Open source API management platform
https://www.fusio-project.org
Apache License 2.0
1.87k stars 223 forks source link

V8 Engine usage #181

Open chriskapp opened 6 years ago

chriskapp commented 6 years ago

Currently Fusio supports also writing the action code in Javascript through the V8 Engine. Currently this is based on the php-v8 extension. Unfortunately the author has abandoned the extension. Because of this we have also removed it from our docker image (but it is still possible to use it if you manually install the extension). This issue should in general gather some feedback from the community how important the v8 implementation is and also which alternatives are available. Currently we follow these implementations:

I have just noticed that the developer of php-v8 has removed the abandoned remark on the project so there is maybe a chance that he continues to work on the project.

I think the general question is: Is there a need to update the V8 action since we have now also the PHP-Sandbox action where you can write the action code in plain PHP which has basically no overhead. Also using such an PHP extension makes the installation always more complicated since the user has to install a native PHP extension. So if the V8 action is important for you please let me know.

chriskapp commented 5 years ago

As note we have removed the v8 action in the latest 1.5.1 release. It is still possible to install it manually but to actively promote this feature we need a stable v8 engine which is also easy to install for endusers, currently this is not really possible.