Use PHP functions in JavaScript

test.namespaced.pack.js

Specs

85c6cb373b8a9947dffddfc13e04645e
yes
no
packed
93283
238
2010-07-01 15:50:19
95
3.17

Warning! as of version 2.61 you are supposed to instantiate namespaced packages yourself like so:

$P = new PHP_JS();

This to prevent $P conflicting with your existing code (the whole point of a namespaced package ; ).


Please don't use this package directly from our servers
Instead: download, and upload it to your own server because we cannot guarantee your package will always be here. Also, we just dont have the bandwidth to serve so many files across the web.

Warning! If we can make functions behave more like (the current) PHP we won't blink an eye for it. So be prepared for backwards compatibility issues should you choose to update:

Download test.namespaced.pack.js

Also available in these formats:

Functions in this package

Download

Download

There is a wide variety of packages if the default doesn't suit you.
You can also compile your own package to avoid any overhead.

Support us

spread the word:


Use any PHP function in JavaScript


These kind folks have already donated: @HalfWinter, Paulo Freitas, Andros Peña Romo, Nitin Gupta, @nikosdion, Anonymous, Anonymous and Shawn Houser.
<your name here>

Click here to lend your support to: phpjs and make a donation at www.pledgie.com !

RSS

Tweets

Comments

Who uses php.js

If you use php.js, let us know and get linked.

Progress

php.js is complete for 82.2%

php.js on

Discuss php.js' future at Google Groups
Help improve php.js on github



Powered by php.js
Stats