Download the PHP package mintware-de/v8world without Composer
On this page you can find all versions of the php package mintware-de/v8world. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mintware-de/v8world
More information about mintware-de/v8world
Files in mintware-de/v8world
Download mintware-de/v8world
More information about mintware-de/v8world
Files in mintware-de/v8world
Vendor mintware-de
Package v8world
Short Description A wrapper for the ext-v8js php extension.
License MIT
Package v8world
Short Description A wrapper for the ext-v8js php extension.
License MIT
Please rate this library. Is it a good library?
Informations about the package v8world
V8 World
A wrapper for the v8js
extension.
Why
Without V8 World
With V8 World
*: The real instance of objects is still an V8Object but the type hints will help you to reduce possible bugs.
How?
- The wrapper takes an instance of
\V8Js
+ an$initialState
[^1] class. - The phpdoc tells your IDE that the wrapper is an instance of
\V8Js&InitialState
. - Your IDE provides autocomplete features and your static analyzer should detect common typing problems. [^1]: Usually this should be a stub interface
Example
See _docs/example.md.
Important notes
This package is just a "band-aid for a bullet hole".
- Since
V8World::modify()
will not create a new instance of theV8Js
object, the oldV8World
is also affected- The IDE will not provide autocompletion for the old
V8World
object but for the new one.
- The IDE will not provide autocompletion for the old
- Keep in mind that changing the stubs will not affect the underlying JS code - not even vice versa.
- Don't trust the stubs if you're working with objects and functions.
- If a method returns an object or a property holds an instance of an object, V8Js always return an
\V8Object
- If a method returns an function or a property holds an instance of an function, V8Js always return an
\V8Function
- If a method returns an object or a property holds an instance of an object, V8Js always return an
All versions of v8world with dependencies
PHP Build Version
Package Version
Requires
ext-v8js Version
^2.1.2
php Version ^8.1
php Version ^8.1
The package mintware-de/v8world contains the following files
Loading the files please wait ....