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.

Normal (novice)

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.

Help us

Spread the word
by submitting.

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.1%