Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 533
MennyMez Avatar asked Jan 11 '18 09:01

MennyMez


1 Answers

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.

like image 108
nakorndev Avatar answered Nov 04 '22 10:11

nakorndev