Use PHP Functions In JavaScript: PHP.JS

PHP.JS is a JavaScript library that enables anyone to use PHP functions client-side.

It can be very helpful to any developer who wants to get the PHP functions on static pages, get the extra functionality (like being able to use file_get_contents(), mktime(), serialize() ) & take the load off the server.


Currently ~400 functions are ported & there are still ones being experimented or waiting to be included. But it is possible to find the most popular ones (even md5()).

The download packages can be totally customized & it is possible to get only the functions you need besides all of them.

Requirements: No Requirements
Compatibility: All Major Browsers

Leave a Comment.