PHP Parser

Parse PHP code with JavaScript

Installation

This library is distributed with npm :
npm install php-parser –save

Demo

<?php
/**
* Some namespace & file description
*/
namespace foo {
function bar($a, $b) {
return $a + $b;
}
// will print : 5
echo bar(2, 3);
}





Glayzzle
Glayzzle is a transpiler engine which converts PHP code into Javascript code in order to be run or used in NodeJS or browser environments.
Newsletter