{"id":4076,"date":"2017-11-08T16:57:31","date_gmt":"2017-11-08T16:57:31","guid":{"rendered":"http:\/\/www.plumrocket.com\/blog\/?p=4076"},"modified":"2021-10-01T14:55:22","modified_gmt":"2021-10-01T14:55:22","slug":"magento-plugin-install-composer","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/blog\/magento-plugin-install-composer","title":{"rendered":"Easily Install Plumrocket Magento 2 Extensions with Composer!"},"content":{"rendered":"<p>Here at Plumrocket, we have recently added an ability to install our Magento 2 extensions using the\u00a0\u00a0Composer package manager.\u00a0Composer is a package manager for PHP libraries, Magento components, and their dependencies.<\/p>\n<p>With this tool, it\u2019s lot easier to install and update the extensions without FTP by using simple SSH commands. Just connect to Plumrocket repository, request the extension\u2019s files, and our module will be installed on your store automatically.<\/p>\n<p><em><strong>Please be aware: Installation via the Composer is only available for Magento 2 extensions. Installation of Magento 1 extensions is not currently supported.<\/strong> <\/em><\/p>\n<h2>How do I Install the Plumrocket Magento 2 Extensions via the Composer?<\/h2>\n<p>The following step-by-step instructions will illustrate how to install our Magento 2 extensions from Plumrocket repository via the Composer.<\/p>\n<p><em><b>Note: As an example, we used <a title=\"AMP Extension for Magento 2\" href=\"https:\/\/plumrocket.com\/magento-amp\" target=\"_blank\" rel=\"nofollow noopener\">Plumrocket AMP Extension for Magento 2<\/a>. Please check our <a href=\"\/docs\/magento-extensions\" target=\"_blank\" rel=\"nofollow noopener\">online documentation guide<\/a>\u00a0to find the instructions on how to install other Plumrocket\u00a0Magento 2 modules.<\/b><\/em><\/p>\n<p><b>Step 1. Log into your server via SSH:<\/b><\/p>\n<div class=\"clear cf\"><img class=\"alignleft wp-image-4081\" style=\"border: 0;\" src=\"https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/ssh-1.jpg\" alt=\"ssh-1\" width=\"783\" srcset=\"https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/ssh-1.jpg 783w, https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/ssh-1-300x38.jpg 300w, https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/ssh-1-624x79.jpg 624w\" sizes=\"(max-width: 783px) 100vw, 783px\" \/><\/div>\n<p><b>Step 2. Switch to your Magento 2 root directory using the following command:<\/b><\/p>\n<pre style=\"color: black; font-size: 14px; padding: 10px;\">cd \/FULL_PATH_TO_YOUR_MAGENTO2\n\n<\/pre>\n<p><span style=\"font-size: 14px;\">where &#8220;FULL_PATH_TO_YOUR_MAGENTO2&#8221; is the path to your Magento 2 folder on your server.<\/span><\/p>\n<p><b>Step 3. Add the Plumrocket repository to your Composer configuration:<\/b><\/p>\n<pre style=\"color: black; font-size: 14px; padding: 10px;\">composer config repositories.plumrocket composer https:\/\/plumrocket.com\/repo\/\n\n<\/pre>\n<p><b>Step 4. Request the Plumrocket Extension to be added to your Magento 2 store:<\/b><\/p>\n<pre style=\"color: black; font-size: 14px; padding: 10px;\">composer require plumrocket\/module-pramp\n\n<\/pre>\n<p><span style=\"font-size: 14px;\">where \u201cmodule-pramp\u201d is the name of your Plumrocket Magento 2 extension (see our <a href=\"\/docs\/magento-extensions\" target=\"_blank\" rel=\"nofollow noopener\">online documentation guide<\/a>).<\/span><\/p>\n<p>After running this command, you will be required to enter your username and password.<\/p>\n<div class=\"clear cf\"><img loading=\"lazy\" class=\"alignleft wp-image-4078\" style=\"border: 0;\" src=\"https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/composer-2.jpg\" alt=\"composer-2\" width=\"783\" height=\"130\" srcset=\"https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/composer-2.jpg 783w, https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/composer-2-300x49.jpg 300w, https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/composer-2-624x103.jpg 624w\" sizes=\"(max-width: 783px) 100vw, 783px\" \/><\/div>\n<p>Your personal Username and Password can be found in <a title=\"Login to Plumrocket Account\" href=\"https:\/\/plumrocket.com\/downloadable\/customer\/products\/\" target=\"_blank\" rel=\"nofollow noopener\">your Account at the Plumrocket Store<\/a> (see screenshot below). Click on the &#8220;Install via Composer&#8221; link, and copy the Username and Password keys from the popup window.<\/p>\n<div class=\"clear cf\"><img class=\"alignleft wp-image-4080\" style=\"border: 0;\" src=\"https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/composer-5.jpg\" alt=\"composer-5\" width=\"783\" srcset=\"https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/composer-5.jpg 972w, https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/composer-5-300x194.jpg 300w, https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/composer-5-624x403.jpg 624w\" sizes=\"(max-width: 972px) 100vw, 972px\" \/><\/div>\n<p><b>Step 5. Run the next three Magento 2 commands:<\/b><\/p>\n<pre style=\"color: black; font-size: 14px; padding: 10px;\">php bin\/magento setup:upgrade\nphp bin\/magento setup:di:compile\nphp bin\/magento setup:static-content:deploy\n\n<\/pre>\n<p>Once these commands are executed, the extension should be installed successfully. A similar message should be displayed in your console as shown below.<\/p>\n<div class=\"clear cf\"><img loading=\"lazy\" class=\"alignleft wp-image-4079\" style=\"border: 0;\" src=\"https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/composer-3.jpg\" alt=\"composer-3\" width=\"783\" height=\"144\" srcset=\"https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/composer-3.jpg 783w, https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/composer-3-300x55.jpg 300w, https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/composer-3-624x114.jpg 624w\" sizes=\"(max-width: 783px) 100vw, 783px\" \/><\/div>\n<h2><\/h2>\n<h2><\/h2>\n<h2>How do I Update the Plumrocket Magento 2 Extensions via the Composer?<\/h2>\n<p>The update process is much the same as installation, however in step 4 the following command should be executed:<\/p>\n<pre style=\"color: black; font-size: 14px; padding: 10px;\">composer update plumrocket\/module-pramp\n\n<\/pre>\n<p><span style=\"font-size: 14px;\">where \u201cmodule-pramp\u201d is the name of your Plumrocket Magento 2 extension.<\/span><\/p>\n<h2><\/h2>\n<h2><\/h2>\n<h2>How do I Delete the Plumrocket Magento 2 Extensions via the Composer?<\/h2>\n<p>In order to remove the Plumrocket Magento 2 extension, follow these easy steps below:<\/p>\n<p><b>Step 1. Connect to the terminal using SSH:<\/b><\/p>\n<div class=\"clear cf\"><img class=\"alignleft wp-image-4081\" style=\"border: 0;\" src=\"https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/ssh-1.jpg\" alt=\"ssh-1\" width=\"783\" srcset=\"https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/ssh-1.jpg 783w, https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/ssh-1-300x38.jpg 300w, https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/ssh-1-624x79.jpg 624w\" sizes=\"(max-width: 783px) 100vw, 783px\" \/><\/div>\n<p><b>Step 2. Remove the extension using the following command:<\/b><\/p>\n<pre style=\"color: black; font-size: 14px; padding: 10px;\">composer remove plumrocket\/module-pramp\n\n<\/pre>\n<p><span style=\"font-size: 14px;\">where \u201cmodule-pramp\u201d is the name of your Plumrocket Magento 2 extension.<\/span><\/p>\n<p><b>Step 3. Run the next three Magento 2 commands:<\/b><\/p>\n<pre style=\"color: black; font-size: 14px; padding: 10px;\">php bin\/magento setup:upgrade\nphp bin\/magento setup:di:compile\nphp bin\/magento setup:static-content:deploy\n\n<\/pre>\n<p>Once these commands are executed, the extension should be uninstalled successfully. The following message should be displayed in your console:<\/p>\n<div class=\"clear cf\"><img loading=\"lazy\" class=\"alignleft wp-image-4079\" style=\"border: 0;\" src=\"https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/composer-3.jpg\" alt=\"composer-3\" width=\"783\" height=\"144\" srcset=\"https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/composer-3.jpg 783w, https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/composer-3-300x55.jpg 300w, https:\/\/plumrocket.com\/blog\/wp-content\/uploads\/2017\/11\/composer-3-624x114.jpg 624w\" sizes=\"(max-width: 783px) 100vw, 783px\" \/><\/div>\n<p>We always try to innovate and support all the latest technologies. We hope that you will find this information useful for your business.<\/p>\n<p>If you still have any questions, please, leave your comments below or contact our <a title=\"Contact Plumrocket Inc.\" href=\"https:\/\/plumrocket.com\/contacts\" target=\"_blank\" rel=\"nofollow noopener\">customer support service!<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here at Plumrocket, we have recently added an ability to install our Magento 2 extensions using the\u00a0\u00a0Composer package manager.\u00a0Composer is a package manager for PHP libraries, Magento components, and their dependencies. With this tool, it\u2019s lot easier to install and update the extensions without FTP by using simple SSH commands. Just connect to Plumrocket repository,&#133; <a class=\"read-more\" href=\"https:\/\/plumrocket.com\/blog\/magento-plugin-install-composer\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":4089,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[443,425,15],"table_tags":[],"_links":{"self":[{"href":"https:\/\/plumrocket.com\/blog\/wp-json\/wp\/v2\/posts\/4076"}],"collection":[{"href":"https:\/\/plumrocket.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/plumrocket.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/blog\/wp-json\/wp\/v2\/comments?post=4076"}],"version-history":[{"count":29,"href":"https:\/\/plumrocket.com\/blog\/wp-json\/wp\/v2\/posts\/4076\/revisions"}],"predecessor-version":[{"id":7606,"href":"https:\/\/plumrocket.com\/blog\/wp-json\/wp\/v2\/posts\/4076\/revisions\/7606"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/blog\/wp-json\/wp\/v2\/media\/4089"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/blog\/wp-json\/wp\/v2\/media?parent=4076"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/blog\/wp-json\/wp\/v2\/categories?post=4076"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/blog\/wp-json\/wp\/v2\/tags?post=4076"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/plumrocket.com\/blog\/wp-json\/wp\/v2\/table_tags?post=4076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}