phpv8 / php-v8

PHP extension for V8 JavaScript engine
https://php-v8.readthedocs.io
MIT License
217 stars 14 forks source link

Hello, can you tell me how to compile v8js? #112

Closed 54huige closed 6 years ago

54huige commented 6 years ago

Hello, can you tell me how to compile v8js?

pinepain commented 6 years ago

Hi, sorry php-v8 and v8js are different extensions, so I'm not quite good with v8js building process, however it Dockerfile.travis demonstrates how to build extension.

54huige commented 6 years ago

Excuse me? php-v8. How to compile on Windows? his demand is very strong.

pinepain commented 6 years ago

php-v8 doesn't officially support Windows and I've never had it working there. In short, you need to compile libv8 there first and then php-v8 itself. Honestly, I'm not a Windows user so I can't provide any further guidance how to compile extension there. It should be like other php extensions, I guess, however, as said before, php-v8 was written without windows support in mind, so even if you find out how to build it, be aware that it may fail because of some incompatibility, if any. Good luck with that! Feels free to write back with your outcome.

Also, if it's feasible, you may try to run php-v8 in docker even on windows, sure, if your use case match this flow.

Cheers!