Series: How to use Composer
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.
Installing Composer on cPanel servers
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.
Composer 101
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.
Our Sales and Support teams are available 24 hours by phone or e-mail to assist.