-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Description
Feature description
PHP V8Js allows to execute JS server side. It is some sort of alternative to node.js.
Currently it is not possible to execute Vue.js this way. It complains that "setTimeout" & "document" are not defined.
As Vue.js is running fine server side with node.js it should be possible to run it with PHP V8Js.
Code sample
`<?php
$vueSource = file_get_contents('https://cdnjs.cloudflare.com/ajax/libs/vue/2.0.3/vue.js');
$v8 = new V8Js();
$result = $v8->executeString($vueSource);
?>`
Result
V8Js::executeString():5628: ReferenceError: document is not defined"
ediamin, alashow, Oleg-Arkhipov, andreiglingeanu, badalsurana and 5 more
Metadata
Metadata
Assignees
Labels
No labels