Using PHP Composer on Shared Hosting Updated on July 7, 2023 by Christopher Maiorana 1 Minutes, 22 Seconds to Read Managing dependencies for a large PHP hosting project can become a nightmare. PHP powers some of the web’s most widely-used systems—from Facebook to WordPress and much between. There is now a wide library of PHP code you can merge into your project. But tracking so many libraries can get tedious. This is where PHP Composer comes to the rescue. It’s a powerful dependency manager you can run on any Linux command line. In this article, you will learn the following: How to SSH into a shared server? How do I get started using composer in my PHP project? PHP Composer comes pre-installed in every InMotion Hosting Shared Hosting plan. That is great news! If you’re thinking about hosting your PHP app with us, we’ve got everything you need to get started. SSH Into Shared Hosting In order to run Composer commands, you must have command line access. In order to log into your server, be sure to follow the steps in the InMotion Hosting guides: How to log into SSH for shared/reseller hosting How to use the terminal in cPanel Follow whichever procedure is best for your needs. Running PHP Composer Commands in Shared Hosting PHP Composer comes pre-installed in your shared hosting account. Once you log into your server’s command line, you can start running commands right. An easy command to start with checks your PHP Composer version number: $ composer -V Make sure to use a capital V. To see more commands, ask for help: $ composer -h Well done! You’re now running composer commands in shared hosting. Be sure to leave a comment or question below if you have any difficulties. Share this Article CM Christopher Maiorana Content Writer II Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog. More Articles by Christopher Related Articles Is Your Host Holding Out on Features You Need? Getting Started with Shared Hosting Resolving an Accidental Block by Fail2ban What Unlimited Hosting Plans Mean at InMotion Hosting Shared Hosting Page Load Metrics You Need To Watch Do I Have Business Hosting or Shared Hosting? Using PHP Composer on Shared Hosting How to View Your Disk Space and Bandwidth Usage on Shared Servers Why Should You Start With Shared Hosting Creating Logins on my Shared Hosting Plan