locutusjs / locutus

Bringing stdlibs of other programming languages to JavaScript for educational purposes

Home Page:https://locutus.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught ReferenceError: phpjs is not defined

LiXunGuan opened this issue · comments

in webpack use phpjs

var php = require('phpjs');
php.echo(php.sprintf('Hey, %s : )', 'you'));

phpjs.png

Hi,

While I'm not sure what the issue is, please don't include php.js and ship it to webbrowsers, it's way too big and unstable for that. The npm is meant to be used for command-line experiments

OK,3Q