Home » Categories » Business » Web Development

Use PHP Functions In JavaScript with PHP.JS Library

PHP Functions in JavaScriptPHP.JS is a JavaScript library that enables anyone to use PHP functions on client-side. It can be very helpful to any developer who wants to get the PHP functions on static pages with JavaScript to get the extra functionality (like being able to use file_get_contents(), mktime(), serialize() ) & take the load off the server. Currently about 400 PHP functions are ported to JavaScript & 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.

No server component required to use PHP functions in JavaScript. To use php.js you can either:
  • Goto one of the Functions and just Copy-Paste it :)
  • Customize & download a package (only select what you need)
  • Download the default package (big size use for study only)
If you know how to use functions in PHP, you should know how to do it in JavaScript with php.js

Requirements: No Requirements
Compatibility: All Major Browsers

PHP.JS Website
Download PHP.JS
Attachments Attachments
There are no attachments for this article.
Comments Comments
There are no comments for this article. Be the first to post a comment.
Related Articles RSS Feed
Protovis - Visualization for JavaScript via Canvas
Viewed 941 times since Sun, Jan 3, 2010
tESTR
Viewed 883 times since Wed, Aug 10, 2011
Free 3D Flash Image Slider - Piecemaker
Viewed 3329 times since Sun, Apr 4, 2010
45 jQuery Navigation Plugins and Tutorials
Viewed 5478 times since Thu, Jan 28, 2010
10 Tips for Writing Better CSS Code
Viewed 1093 times since Fri, Nov 27, 2009
Search Engine Optimization: Tags of Importance for SEO
Viewed 390 times since Tue, Oct 12, 2010
Replace Fear With Knowledge of Martial Arts Styles
Viewed 590 times since Mon, Jul 4, 2011