Skip to content

🐘 Runtime in order to execute transpiled PHP code into NodeJS/Javascript

License

Notifications You must be signed in to change notification settings

glayzzle/php-runtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-runtime

Lightweight runtime that using php-parser and php-transpiler in order to execute php code.

npm version Build Status Coverage Status Gitter

Installation

This library is distributed with npm :

npm install php-runtime --save

Usage

var Runtime = require('php-runtime');
var php = new Runtime({
  core: {
    config: {

    }
  }
});
// starts to execute :
php.include(__dirname + '/index.php');

Core functions

I wanted to keep this package light and focus only on runtime functions.

In order to use common php functions / constants you should use php-core package.

npm install php-core --save

And initialize its dependency :

var Runtime = require('php-runtime');
var php = new Runtime({
  core: {
    config: {
      extensions: ['php-core']
    }
  }
});
// starts to execute :
php.include(__dirname + '/index.php');

Misc

This library is released under BSD-3 license clause.

About

🐘 Runtime in order to execute transpiled PHP code into NodeJS/Javascript

Resources

License

Stars

Watchers

Forks

Packages