Splitting a Subfolder out into Its Own Repository with Git Subtree

I have secretly been working on a project for a number of months now. It got a point where I decided it will be best to split some folders in the project out into their own Git repositories. Previously, the project was a large monolithic application.

I didn’t want to just split them out on a blank slate but have their Git histories maintained.…

Migrating WordPress to HTTPS / SSL the Easy Way

I recently migrated or moved this blog to HTTPS/SSL in light of Google announcement of using https as a ranking signal.

Chrome (the most popular web browser) currently indicates HTTP connections with a neutral indicator. This doesn’t reflect the true lack of security for HTTP connections. Starting January 2017, Chrome 56 will label HTTP pages with password or credit card form fields as “not secure,” given their particularly sensitive nature.…

Staying Compliant with Google Adsense Program Policies

I got a mail from the Google Adsense team stating one or more pages of this blog aren’t compliant with their policies.

The email was titled Google AdSense: Action required to comply with AdSense program policies. An excerpt of the content below.

This is a warning message to alert you that there is action required to bring your AdSense account into compliance with our AdSense program policies.…

How to Setup PHPunit Code Coverage in GitLab

In a previous post, i showed us how to set up automated testing for your PHP application. If you are using the .gitlab-ci.yml configuration i posted, chances are you will get the below notice in your build log.

No code coverage driver is available

The notice is as a result of missing Xdebug PHP extension.

To install and enable Xdebug, add the commands below to the before_script: section of your project .gitlab-ci.yml

Having done the above, go to your project settings and open the CI/CD pipelines screen.…

Setting up Automated PHP Testing on GitLab CI

I recently moved to GitLab from GitHub for private project hosting to save money. Another major deciding factor was GitLab CI, a free hosted continuous integration server which further save me more money which otherwise would have be spent on a Travis CI subscription.

In this tutorial, i will quickly go over the steps in setting up automated unit/integration testing with PHPUnit on GitLab CI.…

How to Get Users Email Address via Twitter REST API

Twitter REST API hitherto did not include users email address by default when the /verify_credentials endpoint is requested, unless your application had been explicitly whitelisted after filling the special permissions part of this form.

Now you can get user’s email addresses included in the API response by ensuring you have links to your privacy policy and terms of service saved in your application settings.…