Article Diary - General Knowledge Digest

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
5 (1)
Article Rating (1 Votes)
Rate this article
Attached Files
There are no attachments for this article.
There are no comments for this article. Be the first to post a comment.
Security Code Security Code
Related Articles RSS Feed
Speech Bubbles With Pure CSS3
Viewed 1219 times since Fri, Mar 12, 2010
imgAreaSelect - jQuery Plugin To Select Areas On Images
Viewed 1658 times since Thu, Dec 31, 2009
jQuery MultiSelect Plugin with ThemeRoller Support
Viewed 2652 times since Thu, Feb 4, 2010
Create Interactive JavaScript Charts With Highcharts
Viewed 1489 times since Fri, Dec 4, 2009
Web Form Elements in PSD Format
Viewed 1263 times since Sun, Dec 27, 2009
ValidForm Builder - Creating Forms With Validation
Viewed 1185 times since Wed, Apr 21, 2010
PHP Quiz Questions and Answers
Viewed 4593 times since Mon, Jan 11, 2010
Before and After Picture - jQuery Plugin
Viewed 1646 times since Tue, Dec 29, 2009
Create Dynamic Tabs with jQuery
Viewed 1223 times since Sat, Feb 6, 2010