How to install V8J for PHP on XAMPP for Windows?

For several days, we tried to find an easy way to install V8J on XAMPP for Windows, but without success.

I downloaded the latest version of XAMPP from 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 do not see mention for V8Js in phpinfo, and when I try to use it, I get ERROR

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

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

Can anyone help?

+7
source share
1 answer

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

Then move php_v8js.dll from php\ext to the same directory on your local computer.

But with 5 additional files from the php root directory, you need to go to your apache\bin instead

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

Make sure it is in your php.ini by adding the following line:

 extension=php_v8js.dll 

Then try restarting apache or checking with the php -m command, have fun.

+5
source

Source: https://habr.com/ru/post/1274628/


All Articles