{"id":2758,"date":"2020-05-23T06:44:35","date_gmt":"2020-05-23T12:14:35","guid":{"rendered":"https:\/\/www.emizentech.com\/blog\/?p=2758"},"modified":"2022-01-21T11:43:55","modified_gmt":"2022-01-21T11:43:55","slug":"how-to-install-composer","status":"publish","type":"post","link":"https:\/\/multisitelocal.ezxdemo.com\/blog\/how-to-install-composer.html","title":{"rendered":"What Is Composer &amp; How To Install It"},"content":{"rendered":"<p>The Composer is a dependency manager for PHP. It will manage the dependencies that you require in your project. This means that Composer will pull in all the required libraries, dependencies and manage them all in one place. It will help you install and update the libraries. It installs the libraries in the specific project you want to work on.<\/p>\n<h2>Installing Composer<\/h2>\n<p>It&#8217;s really easy to install composer, It doesn&#8217;t matter system root user to install composer. but Yes you need command-line access ( SSH access ) to your system or server to install composer.<\/p>\n<p>To set up the composer, login into your server &amp; run following commands :<\/p>\n<p><code class=\"d-block\">curl -s https:\/\/getcomposer.org\/installer | php<\/code><\/p>\n<p>This will create a file &#8220;composer.phar&#8221; file<\/p>\n<p>Now move this to system&#8217;s bin folder so that every user can access it<\/p>\n<p><code class=\"d-block\">sudo mv composer.phar \/usr\/local\/bin\/composer<\/code><\/p>\n<p>Note: if you do not have permission than move to local user&#8217;s bin directory by<\/p>\n<p><code class=\"d-block\">mkdir -p ~\/bin ; mv composer.phar ~\/bin\/composer<\/code><\/p>\n<p>now you are ready to use composer<\/p>\n<p><code class=\"d-block\">emizentech@devserver:~$ composer<br \/>\n______<br \/>\n\/ ____\/___  ____ ___  ____  ____  ________  _____<br \/>\n\/ \/   \/ __ \\\/ __ `__ \\\/ __ \\\/ __ \\\/ ___\/ _ \\\/ ___\/<br \/>\n\/ \/___\/ \/_\/ \/ \/ \/ \/ \/ \/ \/_\/ \/ \/_\/ (__  )  __\/ \/<br \/>\n\\____\/\\____\/_\/ \/_\/ \/_\/ .___\/\\____\/____\/\\___\/_\/<br \/>\n\/_\/<\/code><\/p>\n<p>&nbsp;<\/p>\n<p>Composer version 1.6.3 2018-01-31 16:28:17<\/p>\n<p>Usage:<br \/>\ncommand [options] [arguments]<\/p>\n<h4>Also Read: <a href=\"https:\/\/multisitelocal.ezxdemo.com\/blog\/install-new-theme-magento-2.html\">How To Install New Theme In Magento 2<\/a>\u00a0 and <a href=\"https:\/\/multisitelocal.ezxdemo.com\/blog\/magento-2-speed-optimization-guide.html\">How To Optimize Magento 2 Speed<\/a><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>The Composer is a dependency manager for PHP. It will manage the dependencies that you require in your project. This means that Composer will pull in all the required libraries, dependencies and manage them all in one place. It will help you install and update the libraries. It installs the libraries in the specific project<\/p>\n","protected":false},"author":35,"featured_media":2742,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"MSN_Categories":"Uncategorized","MSN_Publish_Option":false,"MSN_Is_Local_News":false,"MSN_Is_AIAC_Included":"Empty","MSN_Location":"[]","MSN_Add_Feature_Img_On_Top_Of_Post":false,"MSN_Has_Custom_Author":false,"MSN_Custom_Author":"","MSN_Has_Custom_Canonical_Url":false,"MSN_Custom_Canonical_Url":"","_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[78],"tags":[],"class_list":{"0":"post-2758","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-magento"},"modified_by":"Marketing EmizenTech","featured_image_src":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-content\/uploads\/sites\/2\/2020\/05\/What-is-Composer-and-How-to-install-it-1.png","featured_image_src_square":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-content\/uploads\/sites\/2\/2020\/05\/What-is-Composer-and-How-to-install-it-1.png","author_info":{"display_name":"Amit Samsukha","author_link":"https:\/\/multisitelocal.ezxdemo.com\/blog\/author\/amit"},"_links":{"self":[{"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/posts\/2758","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/comments?post=2758"}],"version-history":[{"count":0,"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/posts\/2758\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/media\/2742"}],"wp:attachment":[{"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/media?parent=2758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/categories?post=2758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/tags?post=2758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}