0.4.0 • Published 7 years ago

php-transpiler v0.4.0

Weekly downloads
9
License
BSD-3-Clause
Repository
github
Last release
7 years ago

php-transpiler

Transpiler API to convert php-parser AST to Javascript

npm version Build Status Coverage Status Gitter

Installation

This library is distributed with npm :

npm install php-transpiler --save

Usage

// initialize the php parser factory class
var engine = require('php-parser');
var transpiler = require('php-transpiler');

var jsCode = transpiler.generate(
  engine.parseCode('<?php echo "Hello World";')
);
console.log(jsCode);

Will output :

module.exports = function($php) {
  $php.stdout.print ('hello world');
};

Misc

This library is released under BSD-3 license clause.

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago