<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Laravel Archives - The Code Developer</title>
	<atom:link href="https://www.thecodedeveloper.com/category/laravel/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.thecodedeveloper.com/category/laravel/</link>
	<description>The Code Developer is a Programming Blog.</description>
	<lastBuildDate>Mon, 04 Feb 2019 11:01:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>How to install Laravel with XAMPP on Windows Using Composer</title>
		<link>https://www.thecodedeveloper.com/install-laravel-with-xampp-using-composer/</link>
					<comments>https://www.thecodedeveloper.com/install-laravel-with-xampp-using-composer/#comments</comments>
		
		<dc:creator><![CDATA[Vikas Kumar]]></dc:creator>
		<pubDate>Tue, 29 Jan 2019 22:04:10 +0000</pubDate>
				<category><![CDATA[Composer]]></category>
		<category><![CDATA[Laravel]]></category>
		<guid isPermaLink="false">https://www.thecodedeveloper.com/?p=3966</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="1201" height="401" src="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/install-laravel-with-xampp-using-composer.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Install Laravel With Xampp on Window Using Composer" decoding="async" fetchpriority="high" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/install-laravel-with-xampp-using-composer.png 1201w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/install-laravel-with-xampp-using-composer-442x148.png 442w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/install-laravel-with-xampp-using-composer-768x256.png 768w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/install-laravel-with-xampp-using-composer-1024x342.png 1024w" sizes="(max-width: 1201px) 100vw, 1201px" /></div>
<p>In this article we will give you a step-by-step guide on how to install Laravel with XAMPP on Windows Using Composer. Through Composer it’s simple and easy to install Laravel with XAMPP. # Server Requirements Since we want to work with the latest version of Laravel 5.6, make sure your server meets the following requirements: PHP &#62;= 7.1.3 [&#8230;]</p>
<p>The post <a href="https://www.thecodedeveloper.com/install-laravel-with-xampp-using-composer/">How to install Laravel with XAMPP on Windows Using Composer</a> appeared first on <a href="https://www.thecodedeveloper.com">The Code Developer</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="1201" height="401" src="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/install-laravel-with-xampp-using-composer.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Install Laravel With Xampp on Window Using Composer" decoding="async" loading="lazy" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/install-laravel-with-xampp-using-composer.png 1201w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/install-laravel-with-xampp-using-composer-442x148.png 442w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/install-laravel-with-xampp-using-composer-768x256.png 768w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/install-laravel-with-xampp-using-composer-1024x342.png 1024w" sizes="auto, (max-width: 1201px) 100vw, 1201px" /></div><p>In this article we will give you a step-by-step guide on how to <strong>install Laravel with XAMPP on Windows</strong> Using Composer. Through Composer it’s simple and easy to <strong>install Laravel with XAMPP</strong>.</p>
<h2># Server Requirements</h2>
<p>Since we want to work with the latest version of Laravel 5.6, make sure your server meets the following requirements:</p>
<ul>
<li>PHP &gt;= 7.1.3</li>
<li>OpenSSL PHP Extension</li>
<li>PDO PHP Extension</li>
<li>Mbstring PHP Extension</li>
<li>Tokenizer PHP Extension</li>
<li>XML PHP Extension</li>
<li>Ctype PHP Extension</li>
<li>JSON PHP Extension</li>
</ul>
<p>For more information, you can check the Server Requirements from <a href="https://laravel.com/docs/5.6#installation" target="_blank" rel="noopener">Laravel official site</a>.</p>
<h2># Install XAMPP</h2>
<p>First thing you need to do is <a href="https://www.apachefriends.org/index.html" target="_blank" rel="noopener">download the latest version of XAMPP</a> that supports PHP 7.3.1 and Install it on Windows. For more details, see our step by step guide on <a href="https://www.thecodedeveloper.com/how-to-install-xampp-on-windows/" target="_blank" rel="noopener">How To Download And Install XAMPP On Windows</a>.</p>
<p><a href="https://www.thecodedeveloper.com/install-laravel-with-xampp-using-composer/download-xampp/" rel="attachment wp-att-4021"><img decoding="async" class="aligncenter size-full wp-image-4021" src="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/download-xampp.png" alt="" width="1013" height="537" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/download-xampp.png 1013w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/download-xampp-442x234.png 442w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/download-xampp-768x407.png 768w" sizes="(max-width: 1013px) 100vw, 1013px" /></a></p>
<h2 id="composer"># Composer</h2>
<p>Once you have downloaded and installed XAMPP on Windows, then you need to do is Download Composer for Windows and Install it. For more details, see our step by step guide on <a href="https://www.thecodedeveloper.com/install-composer-windows-xampp/" target="_blank" rel="noopener">How to Install Composer On Windows With XAMPP</a>.</p>
<p>Laravel utilizes Composer to manage its dependencies. It must installed before setting up Laravel.</p>
<p>Once you successfully installed the Composer, open the command prompt. To open it, press <strong>Win + R</strong> keys <span class="-id-__lh--2rKGN">on</span> the <span class="-id-__lh--2rKGN">keyboard</span>, type in <strong><span class="-id-__lh--2rKGN">cmd</span></strong> and press the <strong><span class="-id-__lh--2rKGN">OK</span></strong><span class="-id-__lh--2rKGN -id-__lhp--2mibf"> </span>button</p>
<p><a href="https://www.thecodedeveloper.com/install-composer-windows-xampp/open-command/" rel="attachment wp-att-817"><img decoding="async" class="aligncenter size-full wp-image-817" src="https://www.thecodedeveloper.com/wp-content/uploads/2016/12/open-command.jpg" alt="open command" width="650" height="288" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2016/12/open-command.jpg 650w, https://www.thecodedeveloper.com/wp-content/uploads/2016/12/open-command-442x196.jpg 442w" sizes="(max-width: 650px) 100vw, 650px" /></a></p>
<p>Then type <strong>composer</strong> and press enter in the command prompt and you will get following response like in the below image.</p>
<p><a href="https://www.thecodedeveloper.com/install-laravel-with-xampp-using-composer/write-composer-for-execute-the-command/" rel="attachment wp-att-4038"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4038" src="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/write-composer-for-execute-the-command.png" alt="" width="996" height="524" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/write-composer-for-execute-the-command.png 996w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/write-composer-for-execute-the-command-442x233.png 442w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/write-composer-for-execute-the-command-768x404.png 768w" sizes="auto, (max-width: 996px) 100vw, 996px" /></a></p>
<h2 id="install-laravel-framework"># Install Laravel Framework</h2>
<p>To install Laravel, First of all, you have to go <strong>C:/xampp/htdocs </strong>directory<strong>, </strong>to navigate it type following command in your command prompt:</p>
<pre class="brush: plain; title: ; notranslate">

cd c:/xampp/htdocs

</pre>
<p><a href="https://www.thecodedeveloper.com/install-laravel-with-xampp-using-composer/navigate-to-htdocs-folder/" rel="attachment wp-att-4046"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4046" src="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/navigate-to-htdocs-folder.png" alt="" width="995" height="199" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/navigate-to-htdocs-folder.png 995w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/navigate-to-htdocs-folder-442x88.png 442w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/navigate-to-htdocs-folder-768x154.png 768w" sizes="auto, (max-width: 995px) 100vw, 995px" /></a></p>
<p>Now we are ready to install Laravel, run the following command to install latest Laravel version:</p>
<pre class="brush: plain; title: ; notranslate">

composer create-project --prefer-dist laravel/laravel laravelproject

</pre>
<p><a href="https://www.thecodedeveloper.com/install-laravel-with-xampp-using-composer/command-to-install-laravel-using-composer/" rel="attachment wp-att-4050"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4050" src="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/command-to-install-laravel-using-composer.png" alt="" width="998" height="199" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/command-to-install-laravel-using-composer.png 998w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/command-to-install-laravel-using-composer-442x88.png 442w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/command-to-install-laravel-using-composer-768x153.png 768w" sizes="auto, (max-width: 998px) 100vw, 998px" /></a><span style="text-transform: initial;">After running this command it should start downloading dependencies that are required to create the Laravel project.</span></p>
<p><a href="https://www.thecodedeveloper.com/install-laravel-with-xampp-using-composer/start-downloading-dependencies/" rel="attachment wp-att-4127"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4127" src="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/start-downloading-dependencies.png" alt="start downloading dependencies for laravel" width="1000" height="493" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/start-downloading-dependencies.png 1000w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/start-downloading-dependencies-442x218.png 442w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/start-downloading-dependencies-768x379.png 768w" sizes="auto, (max-width: 1000px) 100vw, 1000px" /></a></p>
<p>This installation may take a few minutes after executing the above command, so wait until you get success message like in the below image.</p>
<p><a href="https://www.thecodedeveloper.com/install-laravel-with-xampp-using-composer/completed-downloading-dependencies/" rel="attachment wp-att-4139"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4139" src="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/completed-downloading-dependencies.png" alt="completed downloading dependencies for Laravel" width="1000" height="390" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/completed-downloading-dependencies.png 1000w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/completed-downloading-dependencies-442x172.png 442w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/completed-downloading-dependencies-768x300.png 768w" sizes="auto, (max-width: 1000px) 100vw, 1000px" /></a></p>
<p>After executing this command, it create a folder <strong>‘laravelproject</strong><strong>‘ </strong>under <strong>C:/xampp/htdocs </strong>directory with all it&#8217;s dependency.</p>
<p>When it completed, it will create following directory schema:</p>
<p><a href="https://www.thecodedeveloper.com/install-laravel-with-xampp-using-composer/laravel-directory-schema/" rel="attachment wp-att-4055"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4055" src="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/laravel-directory-schema.png" alt="" width="1021" height="434" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/laravel-directory-schema.png 1021w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/laravel-directory-schema-442x188.png 442w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/laravel-directory-schema-768x326.png 768w" sizes="auto, (max-width: 1021px) 100vw, 1021px" /></a></p>
<h2 id="xampp-virtual-host"># XAMPP Virtual Host</h2>
<p>We need to configure a Virtual Host in XAMPP for a Laravel project and in this example we want to configure the domain <strong>localhost.laravelproject.com</strong> for our project. To do so, edit <strong>httpd-vhosts.conf</strong> file which is located within <strong>C:\xampp\apache\conf\extra\httpd-vhosts.conf</strong></p>
<p>Add following code snippet at the end of your file:</p>
<pre class="brush: php; title: ; notranslate">

# VirtualHost for localhost.laravelproject.com

&lt;VirtualHost *:80&gt;
    DocumentRoot &quot;C:/xampp/htdocs/laravelproject/public&quot;
    ServerName localhost.laravelproject.com  
    &lt;Directory &quot;C:/xampp/htdocs/laravelproject/&quot;&gt;
      Options Indexes MultiViews FollowSymLinks
      AllowOverride All
      Require all granted
    &lt;/Directory&gt;
&lt;/VirtualHost&gt;
</pre>
<p>After this, apache server is listening to <strong>localhost.laravelproject.com</strong> connections, but we have to configure our hosts file that allows to redirect <strong>localhost.laravelproject.com</strong> to the localhost , to do so, edit the <strong>hosts</strong> file which is located within <strong>C:\Windows\System32\drivers\etc</strong></p>
<p>Add following code snippet at the end of your file:</p>
<pre class="brush: plain; title: ; notranslate">

127.0.0.1 localhost
127.0.0.1 127.0.0.1
127.0.0.1 localhost.laravelproject.com

</pre>
<p>Now everything is ready, restart the Apache server using the XAMPP control panel and type this URL <strong>http://localhost.laravelproject.com</strong> in your browser and press enter.</p>
<p><a href="https://www.thecodedeveloper.com/install-laravel-with-xampp-using-composer/run-laravel-project/" rel="attachment wp-att-4130"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4130" src="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/run-laravel-project.png" alt="run laravel project" width="1294" height="562" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/run-laravel-project.png 1294w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/run-laravel-project-442x192.png 442w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/run-laravel-project-768x334.png 768w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/run-laravel-project-1024x445.png 1024w" sizes="auto, (max-width: 1294px) 100vw, 1294px" /></a></p>
<h2>Final Words</h2>
<p>That’s it! I hope this article helped you learn to how to install Laravel with XAMPP Using Composer.</p>
<p><strong><em>Please feel free to comment below, your suggestion and problems if you face – we are here to solve your problems.</em></strong></p>
<p>The post <a href="https://www.thecodedeveloper.com/install-laravel-with-xampp-using-composer/">How to install Laravel with XAMPP on Windows Using Composer</a> appeared first on <a href="https://www.thecodedeveloper.com">The Code Developer</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.thecodedeveloper.com/install-laravel-with-xampp-using-composer/feed/</wfw:commentRss>
			<slash:comments>21</slash:comments>
		
		
			</item>
	</channel>
</rss>
