For those of you, like me, who use PHP and Javascript regularly, PHP.JS is a great enhancement. PHP.JS is an open source project where PHP functions are ported to Javascript. This means that the PHP functionality is executed client-side which reduces the load on the server.
Some of the functions that have already been ported are:
- md5()
- date()
- base64_decode()
As the library has become too big to include at once, and having users copy-paste functions to their projects can end up causing maintenance hell, the developers have created a compiler tool that allows programmers to select ONLY the functions they need, and wrap them up in a single php.js file.
Another benefit from this library is that it enhances the functionality of Javascript by adding functions that don’t exist natively in Javascript.
Definitely a great tool for developers.
For more information: PHP.JS


RSS