php.js


php.js is an open source project that brings high-level PHP functions to low-level JavaScript platforms such as web browsers, browser extensions ( Mozilla/Firefox, Chrome ), AIR, and SSJS engines like V8 ( node.js, v8cgi ), Rhino, and SpiderMonkey ( CouchDB )


If you want to perform high-level operations on these platforms, you probably need to write JS that combines its lower-level functions and build it up until you have something useful like: strip_tags(), strtotime(), number_format(), wordwrap().

 

 

Functions overview

Here is a list of functions currently implemented by php.js. Missing functions can be found here .


Arrays

BCMath Arbitrary Precision Mathematics

Character type checking

Class/Object Information

Classkit

Date and Time

Error Handling and Logging

Filesystem

Function Handling

JavaScript Object Notation

Language & Control Structures

Mail

Mathematical Functions


Miscellaneous Functions

Net Gopher

Network

Object Aggregation/Composition

PHP Options and Information

Program execution Functions

Regular Expressions (Perl-Compatible)

Streams

Strings

URLs

Variable handling

XML Parser

[internal] php.js shared libs

i18n

runkit

xdiff