Use PHP functions in JavaScript
Notice (8): Undefined index:  id [APP/views/packages/view.ctp, line 22]
Notice (8): Undefined index:  name [APP/views/packages/view.ctp, line 22]
Notice (8): Undefined index:  name [APP/views/packages/view.ctp, line 23]

php.namespaced.js

Specs

82d32114826d3a13eacd737beb387c8e
yes
no
none
1054659
414
2009-08-31 12:18:49
0
2.9

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 php.namespaced.js

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: 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 83.7%

php.js on

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



Powered by php.js
Stats