Use PHP Functions In JavaScript: PHP.JS
28
May
// php the_time('Y') ?>
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
Website: http://phpjs.org/
Download: http://phpjs.org/packages/index
Compatibility: All Major Browsers
Website: http://phpjs.org/
Download: http://phpjs.org/packages/index
- Tags:
Javascript Php
- Filed under: Extras, Other License, Tools
- 5 Comments
















5 Responses for "Use PHP Functions In JavaScript: PHP.JS"
Thanks this is a real time saver. Wished I had this a month ago when i needed it
Very nice. I’ll bet there are a lot of developers out there who have been waiting for quite a while for something like this.
Great idea. Could come in really useful. Thanks.
Interesting.
really great idea!
That’s what I needed