简体   繁体   中英

How to install V8Js for PHP on XAMPP for Windows?

Been working for days now trying to find an easy way to install V8Js on XAMPP for windows, yet with no success.

I have downloaded the latest XAMPP version with PHP version 7.2.0 VC15, and followed the instructions in this blog post - https://blog.xenokore.com/how-to-install-v8js-for-php-on-windows/ - but to no avail. I don't see a mention to V8Js in the phpinfo, and when I try to use it I get an ERROR

Error: Class 'V8Js' not found in...

I have downloaded the dll files from here - https://blog.xenokore.com/how-to-install-v8js-for-php-on-windows/ - and used the latest 7.2.1 VC15 x86 ts version with no success.

Can anyone offer some help?

You need to download lasted php version from here instead https://www.apachelounge.com/viewtopic.php?t=6359

Then move a php_v8js.dll from php\\ext into same directory on your local.

But with 5 files additional from root directory of php have to move into your apache\\bin instead

  • icui18n.dll
  • icuuc.dll
  • v8.dll
  • v8_libbase.dll
  • v8_libplatform.dll

Be sure to have it in your php.ini , by adding the following line:

extension=php_v8js.dll

Then try to restart apache or check by command php -m , have fun.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM