Install Composer for a Individual Host
You can setup a host to use Composer in a few steps. Information on downloading Composer can be found here. Scroll down and click on “download this file” for OS X. This should download an “Installer” file to your downloads folder.
Next create a host. In a new terminal navigate to the document root of your new host. Move the Install file which you downloaded from the Composer website to your document root. Run the following commands in your terminal found in the Composer documentation as explained here.
You can find packages here.
To install the psr/log, a common interface for logging libraries, type the following in your terminal and press return.
Your document root should now look like the this.