JsPHP

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
JsPHP
Original authorKevin van Zonneveld
DeveloperInternational community
Initial releaseDecember 21, 2011 (2011-12-21)
Repository
  • {{URL|example.com|optional display text}}Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
Written inJavaScript
Engine
    Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
    Sizevaries
    TypeJavaScript library
    LicenseDual license:
    GNU GPL or MIT
    Websitewww.jsphp.com

    JsPHP is a cross-browser JavaScript library designed to make the PHP application programming interface (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 integrated development environment (IDE) at www.jsphp.com in an effort to rejuvenate and breathe new life into the project, and as an excuse to develop a content management system (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

    [edit | edit source]

    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, www.jsphp.com, was available; and the name is otherwise concise and descriptive.

    Features

    [edit | edit source]

    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

    [edit | edit source]

    The JsPHP library is 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 www.jsphp.com

    [edit | edit source]

    The JsPHP library is developed at www.jsphp.com, 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

    [edit | edit source]

    Lua error in mw.title.lua at line 392: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').

    References

    [edit | edit source]
    1. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    2. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    3. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    4. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).(click on the "Show Comments" link at the bottom of the cited page)
    [edit | edit source]