Use PHP functions in JavaScript

Packages

To include many PHP functions at once, use these packages. The normal packages are just a collection of standalone functions, making it easy to address them. With the namespaced packages, the functions are contained in one object, making it easier to avoid naming conficts and to extend, overrule, or modify php.js to your own wishes.

CommonJS (advanced)

Namespaced (advanced)


Community Packages

Sorted by popularity:

Create your own Package

php.js packages can become very large, and complete packages should only be used for study purposes.

If you intend to use some php.js functions in production, you might be better of creating a customized version of the php.js package,
with only the functions you need.

You can easily do that with the Compile Tool.

Once you've created a package, you can even upgrade it regularly.

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