Jump to content

jsPHP

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Jj5 (talk | contribs) at 05:01, 6 April 2012 (Kevin van Zonneveld was the original author.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

jsPHP
Original author(s)Kevin van Zonneveld
Developer(s)International community
Initial releaseDecember 21, 2011 (2011-12-21)
Written inJavaScript
Sizevaries
TypeJavaScript library
LicenseDual license:
GNU GPL or MIT
Websitejsphp.co

jsPHP is a cross-browser JavaScript library designed to make the PHP API available in JavaScript environments. It was started by Kevin van Zonneveld as php.js and released as an open-source project in 2008. In late 2011 John Elliot forked the php.js project to jsPHP and released a web-based collaborative IDE at jsphp.co in an effort to rejuvenate and breathe new life into the project, and as an excuse to develop a CMS with features for software developers, such as unit testing and benchmarking. [1][2]

jsPHP is free, open source software, dual-licensed under the MIT License or the GNU General Public License, Version 2.[3] jsPHP is designed to provide a familiar and powerful programming interface for JavaScript programmers with a background in, or integrating with, PHP. jsPHP is a useful supplement to other JavaScript libraries and can be used in Ajax applications and dynamic web pages and web applications.

Etymology

The 'js' in jsPHP is short for JavaScript and the 'PHP' stands for PHP: Hypertext Preprocessor. As with many software projects [4] the name jsPHP was taken because a domain name, jsphp.co, was available; and the name is otherwise concise and descriptive.

Features

jsPHP has support for the vast majority of the PHP API, including functions for array, math, class/object manipulation, date and time, error handling and logging, filesystem, function handling, JSON, regular expressions, streams, strings, tokenization, URLs and XML.

Including the library

The jsPHP library is presently only available in custom packages. This means a software developer selects the functions they need and a jsPHP library file is compiled with the selected functions and their dependencies. Functions are also available for individual download. Downloads can be in one of two classes, either "production code" (which has been specifically flagged as fit for release) and "development code" (which is the latest available code in the repository).

Developing at jsphp.co

The jsPHP library is developed at jsphp.co which provides a CMS and IDE for development and testing of the software. Of particular note are the built-in code editing, unit testing and benchmarking facilities. The unit testing facility is built on the QUnit library, part of the jQuery project.

See also

References

  1. ^ "The History of php.js". Retrieved 2012-04-06.
  2. ^ "jsPHP Welcome". Retrieved 2012-04-06.
  3. ^ "License – jsPHP". Retrieved 2012-04-06.
  4. ^ "BarCampNYC Wrap-up". John Resig. Retrieved 27 May 2011.(click on the "Show Comments" link at the bottom of the cited page)