js PHP Programming


If you are a PHP programmer struggling with javascript, then php.js is your answer.

I have been using javascript professionally for almost 2 years now, and it gets easier over time, especially having learned the jQuery library. But there are times where you know exactly how to implement a logic in PHP but you can’t think of a simple way to do it in javascript. Sometimes I’d create my own PHP-like functions to ease the pain, but that was before I found phpjs.

phpjs is exactly how it sounds: PHP functions made to use in javascript. Today, I was determined to find a way to dump javascript variables like how PHP does with var_dump() since I was getting frustrated with the limitations of alert(). I stumbled upon php.js, and found that you can compile your choice of PHP functions and it has compression options. var_dump() in js has made my day.

I’m a happy camper.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s