Home About Contact

PHP functions in Javascript using PHP.JS

Posted by phorner On May 28, 2009

phpjsFor those of you, like me, who use PHP and Javascript regularly, PHP.JS is a great enhancement. PHP.JS is an open source project where PHP functions are ported to Javascript. This means that the PHP functionality is executed client-side which reduces the load on the server.

Some of the functions that have already been ported are:

  • md5()
  • date()
  • base64_decode()

As the library has become too big to include at once, and having users copy-paste functions to their projects can end up causing maintenance hell, the developers have created a compiler tool that allows programmers to select ONLY the functions they need, and wrap them up in a single php.js file.

Another benefit from this library is that it enhances the functionality of Javascript by adding functions that don’t exist natively in Javascript.

Definitely a great tool for developers.

For more information: PHP.JS

  • Share/Bookmark

23 Responses to “PHP functions in Javascript using PHP.JS”

  1. Balaji says:

    Have you given any thoughts to client-server applications using php.js? I’ve been hard pressed to find good resources, and judging from this article I’m guessing you may have something valuable to say. Thanks in advance!

  2. Kristoffer says:

    Thanks for sharing this!
    I agree with Balaji, this could be cool if you have server-side js and using it like php…awesome.

  3. hydrolyze says:

    Thanks! Still a typical brilliant thread, which is why My spouse and I come back to your blog page time and again!!

    MARCELINE

  4. I take this also to disclose the site of a friend in Brazil if they need web hosting, is http://www.planetaservidor.com.br

  5. Normally I really do not post on blogs, however , I would like to state that this post actually forced me to do so! nice post.

  6. If they do it to you once they will most likely do it again! I had the same thing happen to me but by texting, to a girl less than 10 miles away, think hard about it you do have 16 years with him.

  7. Superb work! I also have got my own , personal blog I simply understand that its very hard to create excellent information like this.

  8. Such a well written post.. Thnkx for sharing this post!

  9. Baird says:

    Needs less black.

  10. Avery says:

    Would have been more exciting to hear a teaser clip of the engine than this picture.

  11. Corey says:

    I’ll put up a teaser evaluation then: It is either the best looking update to the world’s best blog, or the ugliest…good work.

  12. Reid says:

    Needs less black.

  13. Long says:

    I’ll put up a teaser evaluation then: It is either the best looking update to the world’s best blog, or the ugliest…good work.

  14. An indicator that you may possibly have poor blood flow in your legs is tinting of the skin. If you discover a blue, purple or pale region on your leg, then this may be an indication that the blood is not going as well as it really should to the spot.

  15. Thank you for providing valuable post regarding the topic. I am a fan of your website. Keep up the good job.

  16. Thanks for the information provided! I was finding for this information for quite some time, but I wasn’t able to find a dependable source.

  17. I love tennis. been in many teams for about seven years now and still continue!!!

  18. I appreciate the valuable information you offer in your entries. I’ll bookmark your page and have my readers check up here frequently. I’m very sure they’ll find a lot of fresh information in your site than anywhere else!

  19. Thank you for taking the time to discuss this topic. I really appreciate it. I’ll stick a link of this post in my website.

  20. Excellent post. I want to thank you for this informative read, I really appreciate sharing this great post. Keep up your work. . . .

  21. I thought it was going to be some boring old post, but it really compensated for my time. I will post a link to this page on my blog. I am sure my visitors will find that very useful. . . .

  22. Hey – nice blog, just looking around some blogs, seems a pretty nice platform you are using. I’m currently using Wordpress for a few of my sites but looking to change one of them over to a platform similar to yours as a trial run. Anything in particular you would recommend about it?

  23. Seo Services says:

    Really great informative blog post here and I just wanted to comment & thank you for posting this. I’ve bookmarked youi blog and I’ll be back to read more in the future my friend! Also nice colors on the layout, it’s really easy on the eyes.

Leave a Reply