Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

node-ffi-php-bindings

diosmosis64ISC0.2.1

Generated node-ffi bindings for PHP source code. Embed PHP from node.js w/o creating your own node extension.

php, node-ffi, ffi, embed

readme

node-ffi-php-bindings

JavaScript node-ffi bindings for embedding PHP in node-js apps.

Current status: Loads and can be used to execute PHP code from node. The bindings do not differentiate between 'char*' and 'string' node-ffi types, so when passing strings you have to use ref.allocCString(...) and buffer.readCString().

See proof of concept code here: https://github.com/diosmosis/lighttable-php/blob/master/components/zend/zend.service.js