Managing dependencies for a large PHP 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.

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.

    Similar Posts