Tag Archives - Composer

How to Install PHP Composer on Cpanel

(: November 14, 2018) In this guide, we will cover the installation of PHP Composer on Cpanel. Composer is a PHP dependency management tool. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. Composer doesn’t come pre-installed with PHP or Cpanel and you’ll have to install it…

EasyApache 4 & CLI based PHP utilities

With the release of EasyApache 4 in WHM 58 there are various changes to how PHP is managed. The most obvious being that EasyApache 4 brings support for installing multiple PHP versions alongside each other. However with multiple versions of PHP being installed on the server it’s easy to lose track of your command-line based…

How to Replace PHP GeoIP with MaxMindDB

Depending on the site or application, looking up geographic information related to an IP address can be a pretty common action. When doing IP geolocation in PHP usually the PHP GeoIP extension would be used to facilitate the retrieval of this information. Unfortunately, this particular plugin is no longer actively supported and has not been…

Composer 101

How to use Composer Composer 101 Installing Composer on cPanel servers Working with Composer & Examples Composer is a dependency manager for PHP, written in PHP. Specifically, it’s used to simplify the process of using PHP libraries in your projects. The use can range from getting a framework, including a library class, or open source…

Installing Composer on cPanel servers

How to use Composer Composer 101 Installing Composer on cPanel servers Working with Composer & Examples Note: Please note that this article is considered legacy documentation because cPanel 58 has reached its end-of-life support. With a tool like Composer it is generally best to have the ability to run it as any user on the…

Guzzle & Sucuri: Fixing 403 request errors

When using GuzzleHTTP client if the domain you’re interacting with uses Sucuri you may find some unexpected results. Generally the issues come in the way of 4XX or 5XX error response codes. Oddly enough the issue presents itself when the Url works normally in the browser (or curl), but presents an inexplicable 403 with Guzzle….

Install Drush on Ubuntu 16.04

Installing Drush provides a way of managing your Drupal installs using a familiar method, the command line.  Drush can simplify your life by allowing you to perform admin duties. In this tutorial, we will be using Composer as our package manager, as it is necessary to install Drush’s dependencies.  It does take at least 1…

Working with Composer & Examples

How to use Composer Composer 101 Installing Composer on cPanel servers Working with Composer & Examples In the previous articles we worked through what composer is, who uses it, and how to install it. Here we will cover some basic use case examples of how to acquire packages using the composer tool we previously setup….