{"id":48185,"date":"2019-10-01T15:35:17","date_gmt":"2019-10-01T20:35:17","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=48185"},"modified":"2023-07-07T09:36:14","modified_gmt":"2023-07-07T13:36:14","slug":"using-php-composer-on-shared-hosting","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/","title":{"rendered":"Using PHP Composer on Shared Hosting"},"content":{"rendered":"\n<p>\nManaging dependencies for a large <a href=\"https:\/\/www.inmotionhosting.com\/php-hosting\">PHP hosting<\/a> project can become a nightmare. PHP powers some of the web\u2019s most widely-used systems\u2014from 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&#8217;s a powerful dependency manager you can run on any Linux command line. In this article, you will learn the following:\n<\/p>\n\n<div id=\"text-table-of-contents\">\n<ul>\n<li><a href=\"#ssh\">How to SSH into a shared server?<\/a><\/li>\n<li><a href=\"#org5b8ca1f\">How do I get started using composer in my PHP project?<\/a><\/li>\n<\/ul>\n<\/div>\n\n<p>\nPHP Composer comes pre-installed in every InMotion Hosting Shared Hosting plan. That is great news! If you&#8217;re thinking about hosting your PHP app with us, we&#8217;ve got everything you need to get started.\n<\/p>\n\n<div id=\"outline-container-org297a493\" class=\"outline-2\">\n<h2 id=\"ssh\"><a id=\"org297a493\"><\/a>SSH Into Shared Hosting<\/h2>\n<div class=\"outline-text-2\" id=\"text-ssh\">\n<p>\nIn 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:\n<\/p>\n\n<ul class=\"org-ul\">\n<li><a href=\"\/support\/server\/ssh\/shared-reseller-ssh\/\">How to log into SSH for shared\/reseller hosting<\/a><\/li>\n<li><a href=\"\/support\/edu\/cpanel\/how-to-launch-the-cpanel-terminal\/\">How to use the terminal in cPanel<\/a><\/li>\n<\/ul>\n\n<p>\nFollow whichever procedure is best for your needs.\n<\/p>\n<\/div>\n<\/div>\n\n<div id=\"outline-container-org5b8ca1f\" class=\"outline-2\">\n<h2 id=\"org5b8ca1f\">Running PHP Composer Commands in Shared Hosting<\/h2>\n<div class=\"outline-text-2\" id=\"text-org5b8ca1f\">\n<p>\nPHP Composer comes pre-installed in your shared hosting account. Once you log into your server&#8217;s command line, you can start running commands right. An easy command to start with checks your PHP Composer version number:\n<\/p>\n\n<pre class=\"example\">$ composer -V\n<\/pre>\n\n<p>\nMake sure to use a capital V. To see more commands, ask for help:\n<\/p>\n\n<pre class=\"example\">$ composer -h\n<\/pre>\n\n<p>\nWell done! You&#8217;re now running composer commands in shared hosting. Be sure to leave a comment or question below if you have any difficulties.\n<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Managing dependencies for a large PHP hosting project can become a nightmare. PHP powers some of the web\u2019s most widely-used systems\u2014from 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<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/\"> Read More ><\/a><\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4337,4288],"tags":[],"class_list":["post-48185","post","type-post","status-publish","format-standard","hentry","category-business-shared-hosting","category-website"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Use PHP Composer | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Working with PHP Composer can help you manage dependencies for any large PHP project that you encounter. Composer is pre-installed on shared hosting plans.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use PHP Composer | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Working with PHP Composer can help you manage dependencies for any large PHP project that you encounter. Composer is pre-installed on shared hosting plans.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-01T20:35:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-07T13:36:14+00:00\" \/>\n<meta name=\"author\" content=\"Christopher Maiorana\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Christopher Maiorana\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/\"},\"author\":{\"name\":\"Christopher Maiorana\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f\"},\"headline\":\"Using PHP Composer on Shared Hosting\",\"datePublished\":\"2019-10-01T20:35:17+00:00\",\"dateModified\":\"2023-07-07T13:36:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/\"},\"wordCount\":282,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Shared Web Hosting Guides &amp; Tutorials\",\"Website\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/\",\"name\":\"How to Use PHP Composer | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2019-10-01T20:35:17+00:00\",\"dateModified\":\"2023-07-07T13:36:14+00:00\",\"description\":\"Working with PHP Composer can help you manage dependencies for any large PHP project that you encounter. Composer is pre-installed on shared hosting plans.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using PHP Composer on Shared Hosting\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f\",\"name\":\"Christopher Maiorana\",\"description\":\"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.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/chris-m-4623144b\/\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/christopherm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Use PHP Composer | InMotion Hosting","description":"Working with PHP Composer can help you manage dependencies for any large PHP project that you encounter. Composer is pre-installed on shared hosting plans.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/","og_locale":"en_US","og_type":"article","og_title":"How to Use PHP Composer | InMotion Hosting","og_description":"Working with PHP Composer can help you manage dependencies for any large PHP project that you encounter. Composer is pre-installed on shared hosting plans.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2019-10-01T20:35:17+00:00","article_modified_time":"2023-07-07T13:36:14+00:00","author":"Christopher Maiorana","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Christopher Maiorana","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/"},"author":{"name":"Christopher Maiorana","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f"},"headline":"Using PHP Composer on Shared Hosting","datePublished":"2019-10-01T20:35:17+00:00","dateModified":"2023-07-07T13:36:14+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/"},"wordCount":282,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Shared Web Hosting Guides &amp; Tutorials","Website"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/","name":"How to Use PHP Composer | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2019-10-01T20:35:17+00:00","dateModified":"2023-07-07T13:36:14+00:00","description":"Working with PHP Composer can help you manage dependencies for any large PHP project that you encounter. Composer is pre-installed on shared hosting plans.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/using-php-composer-on-shared-hosting\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Using PHP Composer on Shared Hosting"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f","name":"Christopher Maiorana","description":"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.","sameAs":["https:\/\/www.linkedin.com\/in\/chris-m-4623144b\/"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/christopherm\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/48185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=48185"}],"version-history":[{"count":5,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/48185\/revisions"}],"predecessor-version":[{"id":105472,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/48185\/revisions\/105472"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=48185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=48185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=48185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}