I have a Macbook Air and use it for development my WordPress products. On that Macbook, I usually install a bundle of software like Google Chrome, Firefox, FileZilla, Flux, … and a lot of development tools like Valet, PHP7.1, Composer, MariaDB, NodeJS, … It has been working fine until I want to remove them. Sadly there’s no official way to remove them completely. I tried some utility to help but it can’t work for some development tools (removing NodeJS is a nightmare!). So I searched for a better way to manage my software on Mac and I found Homebrew! It is a great tool and you should try it right now.
I’m using XAMPP on Windows. While it’s great, it doesn’t help me to create a development WordPress site quickly (like
domain.dev). I had to do many things manually like adding the virtual host configuration, download WordPress and install. When the number of development sites increases, it takes a lot of time. So, I write a batch script to do the job automatically.
Although GIT is everywhere, SVN still is the version control for all the themes and plugins hosted on WordPress.org. I’ve been playing with both SVN and GIT together recently when I need to repeat the same tasks again and again. This article is a small log of useful SVN commands when working with WordPress themes or plugins (only plugins actually, because WordPress.org doesn’t allow us to work with the theme repository directly).
While coding for WordPress (themes or plugins), one of the most important things is the consistent coding standards. The WordPress core team published the WordPress Coding Standards quite a long time ago and if you are using PHPStorm, you can turn on its support for WordPress (not only coding standards but also hooks and many useful things). However, if you’re using another editor/IDE (Sublime Text for example), it’s hard to auto format the code to match WordPress rules. Is there a way to automatically fix all the PHP files and make them styled beautifully? This article shows you how to install and use a command line tool to check and fix coding standards for all PHP files. As I’m using Windows with XAMPP, the guide focuses on this environment.
I’ve been a fan of PHPStorm for several years. Before PHPStorm, I tried many IDEs and editors, including some very popular names like NetBeans, Eclipse or Sublime Text 3 but I chose with PHPStorm for the number of features and support for WordPress. It gets better and better over time. If you’re a Sublime Text user, you might argue that Sublime Text is more lightweight and more productive because of its keyboard shortcuts. I can agree with the “lightweight” term, but not the other. PHPStorm has a very nice list of productive keyboard shortcuts as you can see below.