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