Tag: Composer

Take a look at our Composer tutorial section, here you'll find how to use and install this application-level package manager on several OS.

Reading Time: < 1 minute

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.

Continue reading →

Guzzle & Sucuri: Fixing 403 request errors

Posted on by David Singer | Updated:
Category: Common Fixes | Tags: Composer, Guzzle
Reading Time: 2 minutes

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. Some of your mileage may vary based on the domains Securi settings and configuration, but this tip can usually get you on the right track!

Continue reading →
Reading Time: 3 minutes

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 PHP utilities and their PHP requirements.

Continue reading →

How to Replace PHP GeoIP with MaxMindDB

Posted on by David Singer | Updated:
Reading Time: 3 minutes

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 updated in a number of years.

Continue reading →

Working with Composer & Examples

Posted on by David Singer | Updated:
Category: Series | Tags: Composer, Guzzle, PHP
Reading Time: 3 minutes

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.

Continue reading →

Installing Composer on cPanel servers

Posted on by David Singer | Updated:
Category: Series | Tags: Composer, PHP
Reading Time: 2 minutes
 
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 server and from any directory. This is generally referred to as being 'globally installed' as any user can access the tool from any location. In this guide we will detail how to install Composer globally on a cPanel based server.

Continue reading →

Composer 101

Posted on by David Singer | Updated:
Category: Series | Tags: Composer, PHP
Reading Time: 2 minutes

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 projects; generally these packages are downloaded by Composer and then implemented by a developer in a website’s code.
Examples being: Silex MicroFramework, the infamous PHPMailer class, Laravel Framework, and many more - all of which can be found on Composer’s main repository Packagist.

Continue reading →
Have Some Questions?

Our Sales and Support teams are available 24 hours by phone or e-mail to assist.

1.800.580.4985
1.517.322.0434