Page 2 of 3

Homebrew FTW

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.

Continue reading → Homebrew FTW

Creating development WordPress site with XAMPP on Windows

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.

Continue reading → Creating development WordPress site with XAMPP on Windows

SVN best practices for WordPress developers

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).

Continue reading → SVN best practices for WordPress developers

Installing and using WordPress Coding Standards with auto fixer from command line on Windows

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.

Continue reading → Installing and using WordPress Coding Standards with auto fixer from command line on Windows