<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Praveen Reddy Govind</title>
    <description>The latest articles on Forem by Praveen Reddy Govind (@praveengovind).</description>
    <link>https://forem.com/praveengovind</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F373259%2F35abea59-6f6a-4dae-aeab-37d193ab40bf.jpg</url>
      <title>Forem: Praveen Reddy Govind</title>
      <link>https://forem.com/praveengovind</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/praveengovind"/>
    <language>en</language>
    <item>
      <title>Installing Composer(PHP Package Manager)</title>
      <dc:creator>Praveen Reddy Govind</dc:creator>
      <pubDate>Sat, 04 Jul 2020 16:31:23 +0000</pubDate>
      <link>https://forem.com/praveengovind/installing-composer-58nh</link>
      <guid>https://forem.com/praveengovind/installing-composer-58nh</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--c40VkLhw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/uhh8mmhfhdmc5udiy2vb.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--c40VkLhw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/uhh8mmhfhdmc5udiy2vb.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
Follow the steps to install composer on windows or mac environment.&lt;/p&gt;

&lt;p&gt;Before following these steps you must install PHP already as composer is dependent on PHP.&lt;/p&gt;

&lt;p&gt;Step1: Download the installer to the current directory&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Step 2: Verify the installer SHA-384&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php -r "if (hash_file('sha384', 'composer-setup.php') === 'e5325b19b381bfd88ce90a5ddb7823406b2a38cff6bb704b0acc289a09c8128d4a8ce2bbafcd1fcbdc38666422fe2806') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Step 3: Run the installer&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php composer-setup.php
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Step 4: Remove the installer&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php -r "unlink('composer-setup.php');"
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Step 5: Make composer globally available on your machine&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mv composer.phar /usr/local/bin/composer
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
      <category>php</category>
    </item>
  </channel>
</rss>
