<?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>DEV Community: Farhan Helmy</title>
    <description>The latest articles on DEV Community by Farhan Helmy (@farhanhelmy).</description>
    <link>https://dev.to/farhanhelmy</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%2F581722%2F2fd17867-2ff9-465e-935d-7131d8441f05.jpeg</url>
      <title>DEV Community: Farhan Helmy</title>
      <link>https://dev.to/farhanhelmy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/farhanhelmy"/>
    <language>en</language>
    <item>
      <title>How to install latest PHP on Windows 11</title>
      <dc:creator>Farhan Helmy</dc:creator>
      <pubDate>Fri, 07 Jul 2023 04:19:03 +0000</pubDate>
      <link>https://dev.to/farhanhelmy/how-to-install-latest-php-on-windows-11-1eb6</link>
      <guid>https://dev.to/farhanhelmy/how-to-install-latest-php-on-windows-11-1eb6</guid>
      <description>&lt;h3&gt;
  
  
  Setting up PHP on Windows manually has always been pain in the ass. So this tutorial is the most simple and basic PHP setup on Windows! Follow along
&lt;/h3&gt;

&lt;p&gt;First you need is PHP binary which can be downloaded &lt;a href="https://windows.php.net/download#php-8.2" rel="noopener noreferrer"&gt;here&lt;/a&gt; . The link that I gave you is latest version of PHP which is 8.2 . It doesn't matter you can download whichever version you want.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxakker9mzn6dk1befrut.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxakker9mzn6dk1befrut.png" alt="Download the highlighted one"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once it has finished download you can extract it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftq7o83ltrag4d0vlrvcy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftq7o83ltrag4d0vlrvcy.png" alt="Extract"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This part is important because beginners would usually think that is it a &lt;strong&gt;MUST&lt;/strong&gt; to extract the PHP binary into &lt;code&gt;C drive&lt;/code&gt; or default drive. Actually, this is not correct you can extract it anywhere you like. For my case I have special drive for development so I put it there.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjw0ue6usdh0wce7on322.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjw0ue6usdh0wce7on322.png" alt="Drive"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For this part, you need to create your own empty folder and name it &lt;strong&gt;php&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgyi2fmz55ucauq2pwuze.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgyi2fmz55ucauq2pwuze.png" alt="Loading"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The only thing necessary that you need to setup and make your PHP works on terminal is setting up the path. For this you need to go to Windows search and search for &lt;code&gt;Environment&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxd8q2fe1j0lb81xu5tpz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxd8q2fe1j0lb81xu5tpz.png" alt="Environment"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click on the &lt;code&gt;Environment Variables...&lt;/code&gt; button:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkibf6nc7sd4kk3ee8rn1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkibf6nc7sd4kk3ee8rn1.png" alt="Click on the Environment Variables"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Double click on path:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsx5zy9yx7p5vun9ldje8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsx5zy9yx7p5vun9ldje8.png" alt="click on path"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click on browse:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fidzx0j9oevgbvfxvqdly.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fidzx0j9oevgbvfxvqdly.png" alt="Click on browse"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Browse for the folder that you have extracted PHP in the before steps, note this is important just click on the folder and make sure it is highlighted and then click &lt;code&gt;Ok&lt;/code&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feg30srluxaervllo8c5e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feg30srluxaervllo8c5e.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you have your terminal open, close it and open it back to ensure that the changes take effect. Now type on &lt;code&gt;php -v&lt;/code&gt; VOiLLAA! php has been installed in your machine.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs5s6e4gwoe8l76kp953u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs5s6e4gwoe8l76kp953u.png" alt="terminal"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Guys, you might be thinking why don't just install XAMPP, Laragon or WAMPP? I've tried all of these tools before, personally I think knowing how things work in the background is very important. &lt;/p&gt;

&lt;p&gt;And knowing your tools in any environment is crucial, it doesn't matter if you are on Windows, Linux or MAC try your best to setup anything yourself and not rely on 3rd party services.&lt;/p&gt;

&lt;p&gt;And also those tools are very bloated and they also install unnecessary things on your machine.&lt;/p&gt;

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