<?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>slim framework Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/slim-framework/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 23 Dec 2019 22:23:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to install Slim Framework in Windows 10.</title>
		<link>https://www.osradar.com/how-to-install-slim-framework-in-windows-10/</link>
					<comments>https://www.osradar.com/how-to-install-slim-framework-in-windows-10/#respond</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Tue, 24 Dec 2019 22:21:36 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[slim framework]]></category>
		<category><![CDATA[slim framework windows]]></category>
		<category><![CDATA[Windows 10]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17004</guid>

					<description><![CDATA[<p>Hi, how are you? Today we&#8217;re going to talk a little bit about Slim Framework. This is a micro-framework for PHP that helps us develop web applications and APIs faster. At its core, Slim is a dispatcher that receives an HTTP request. It then invokes a callback routine and returns an HTTP response. Additionally, it [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-slim-framework-in-windows-10/">How to install Slim Framework in Windows 10.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hi, how are you? Today we&#8217;re going to talk a little bit about Slim Framework. This is a micro-framework for PHP that helps us develop web applications and <a href="https://www.howtogeek.com/343877/what-is-an-api/" target="_blank" rel="noreferrer noopener" aria-label="APIs  (opens in a new tab)">APIs </a>faster. At its core, Slim is a dispatcher that receives an HTTP request. It then invokes a callback routine and returns an HTTP response. Additionally, it is recommended when an application needs to be prototyped in a short time. In other words, it works very well when we only need php to launch the rest operations against the database requested by a client application. An additional advantage is that its learning curve is very fast. Consequently, it can be learned in a few sessions. Well, in this post we will see how to install Slim Framework in Windows 10.</p>



<h2>Prerequisites.</h2>



<p>In order to install Slim Framework on Windows 10, a number of dependencies must be satisfied. Fortunately, in osradar.com we explain in detail how to install each one.</p>



<ul><li>PHP installed in version 7.1 or higher. See this post for how to <a rel="noreferrer noopener" aria-label="install it. (opens in a new tab)" href="https://www.osradar.com/how-to-install-php-in-windows-10/" target="_blank">install it.</a></li><li><a rel="noreferrer noopener" aria-label="Apache serve (opens in a new tab)" href="https://www.osradar.com/how-to-install-apache-on-windows-10/" target="_blank">Apache serve</a>r installed. You can also use <a rel="noreferrer noopener" aria-label="Nginx  (opens in a new tab)" href="https://www.osradar.com/how-to-install-nginx-server-on-windows-10/" target="_blank">Nginx </a>or any other web server. </li><li>Finally, it is necessary to have installed PHP composer. Please check this post to see how to <a rel="noreferrer noopener" aria-label="install it. (opens in a new tab)" href="https://www.osradar.com/how-to-install-composer-on-windows-10/" target="_blank">install it.</a></li></ul>



<h2>Preparing the installation of Slim Framework on Windows 10.</h2>



<p> In the first place, head for the following address: C:Apache24. Then create a folder and assign it the name of your preference. Please note that the framework will be installed in this folder.</p>



<p> </p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/slim.jpg" alt="Create a new folder." class="wp-image-17013" srcset="https://www.osradar.com/wp-content/uploads/2019/12/slim.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/slim-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/slim-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/slim-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/slim-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/slim-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Create a new folder.</figcaption></figure>



<h2>Downloading and installing Slim Framwork using Composer.</h2>



<p>Once the folder is created, open a Command Prompt inside it. Forthwith, add the following command:</p>



<pre class="wp-block-preformatted"> <code>composer require slim/slim:"^3.0"</code> </pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/slim3.jpg" alt="Composer installing Slim Framework." class="wp-image-17016" srcset="https://www.osradar.com/wp-content/uploads/2019/12/slim3.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/slim3-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/slim3-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/slim3-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/slim3-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/slim3-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Composer installing Slim Framework.</figcaption></figure>



<p>Just wait a few minutes while the framework is installed.</p>



<h2>Testing Slim Framework.</h2>



<p>After we have installed Slim, we will test its operation by launching a Hello World. With that intention, it is necessary to create an index.php file inside the program folder. With that in mind, use the text editor of your choice. In this case, I will use Notepad++. Please add the following text to the file:</p>



<pre class="wp-block-code"><code>&lt;?php
 
require "vendor/autoload.php";

$app = new Slim\App();

$app->get("/",function(){

echo "Hello World";
});

$app->run();

?></code></pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/slim5.jpg" alt="Creating the index.php file in Notepad++." class="wp-image-17018" srcset="https://www.osradar.com/wp-content/uploads/2019/12/slim5.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/slim5-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/slim5-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/slim5-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/slim5-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/slim5-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Creating the index.php file in Notepad++.</figcaption></figure>



<p>After adding the above text, then save the file and name it <strong>index.php</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="696" height="488" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/slim4-1.jpg" alt="Save the index.php file" class="wp-image-17021" srcset="https://www.osradar.com/wp-content/uploads/2019/12/slim4-1.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/slim4-1-300x210.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/slim4-1-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/slim4-1-599x420.jpg 599w" sizes="(max-width: 696px) 100vw, 696px" /><figcaption>Save the index.php file</figcaption></figure>



<p>Finally, open the web browser and open localhost accompanied by the Slim installation folder. In this case: <strong> localhost/slim_osradar/</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/slim6.jpg" alt="Slim Framework" class="wp-image-17023" srcset="https://www.osradar.com/wp-content/uploads/2019/12/slim6.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/slim6-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/slim6-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/slim6-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/slim6-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/slim6-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Slim Framework</figcaption></figure>



<p>Ultimately we have seen how to install Slim Framework on Windows 10. This is a great option to get started in the world of PHP programming. This is all for now before I say goodbye I invite you to see our post about upgrading to <a rel="noreferrer noopener" aria-label="Windows 10 for free. (opens in a new tab)" href="https://www.osradar.com/upgrade-to-windows-10-from-windows-7-or-8-1-for-free/" target="_blank">Windows 10 for free.</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-slim-framework-in-windows-10/">How to install Slim Framework in Windows 10.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-slim-framework-in-windows-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
