Tinkerwell: Tinker with your local/remote PHP & Magento 2 Code

Tinkerwell: Tinker with your local/remote PHP & Magento 2 Code

I was always looking for a quick playground for testing/debugging any PHP application esp. for Magento 2. Luckily, I got to know about Tinkerwell App in some twitter feed and thought of giving a try. [email protected] + Magento 2 is a great combo. It allows me to SSH into the server and execute code on …

Read moreTinkerwell: Tinker with your local/remote PHP & Magento 2 Code

How to Install Multiple Versions of PHP on Ubuntu?

Install-Multiple-Versions-of-PHP-on-Ubuntu

There are many tools like Docker, Vagrant, VirtualBox, etc. that gives you the power to achieve the multiple versions of PHP in your system. But I want to stay away as much as possible from third-party tools and try to leverage the native as much as I can. So want to learn how to install …

Read moreHow to Install Multiple Versions of PHP on Ubuntu?

Sending JSON data to the remote server

Sending JSON data to the remote server

JSON: JavaScript Object Notation. JSON is syntax for storing and exchanging text information. Much like XML. JSON is smaller than XML, and faster and easier to parse. You may need to post JSON data to the server for different purposes. If you are wondering about ‘How to send JSON data to the remote server?’ then …

Read moreSending JSON data to the remote server

Using get_defined_vars() for debugging local scope variables

Suppose say, you want to debug variables in some observer method. You can either log each variable or simply dump it. But when you have many variables, debugging each variable can be an overhead task. For this purpose we can use PHP’s inbuilt function: get_defined_vars() How to use it? //put this line at the top …

Read moreUsing get_defined_vars() for debugging local scope variables