WebAppers

/ best free open source web resources /

Shopify

PHP.JS – Port PHP Functions to Javascript

Posted · Category: Code, GPL License, MIT License

PHP JS

Developer Kevin van Zonneveld was once working on a project with a lot of client(JS) / server(PHP) interaction, and he found himself coding PHP functions (like base64_decode & urldecode) in JavaScript to smoothen communication between the two languages.

He stored the stored the functions in a file called PHP.JS which was included in the project. But even when the project was done, it remained fun trying to port PHP functions to JavaScript, and so the library grew.

Kevin decided to share the little library on his blog, triggering the enthusiasm of a lot of PHP developers longing for PHP functionality in JavaScript. PHP.JS is an open source project in which they try to port PHP functions to JavaScript. By including the PHP.JS library in your own projects, you can use your favorite PHP functions client-side.

Requirements: Javascript Enabled
Demo: http://phpjs.org/
License: MIT and GPL Licenses

2 Comments
  • http://www.bitstorm.org/edwin/en/ Edwin Martin

    Argh, PHP has such an ugly (and more important: inconsequent) syntax, that’s too bad he didn’t do it the other way around: making JavaScript functions available in PHP.

    It’s fun though.

  • zrek

    Edwin +1: I also longing for a javascript “interpreter” in PHP; however this phpjs is also can be useful.

Supported By

Deals

Web Browsers Icon Set
Food Icon Set
Flat Icon Set

Flat Icon Set

100 icons