This is sample project of babel-preset-php.
Install yarn
if you don't have.
$ npm install -g yarn
Download or clone this repo, then install packages.
$ yarn install
Transpiles PHP source code (src) to readable JavaScript source code (dist).
$ yarn build