<?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>symfony Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/symfony/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 10 Feb 2021 18:28:06 +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 Symfony on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/install-symfony-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-symfony-ubuntu-20-04/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 13 Feb 2021 01:27:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28451</guid>

					<description><![CDATA[<p>Hello, friends. Hope you are well. There are many PHP frameworks but in this post, you will learn how to install Symfony. Maybe this is one of the most advanced ones out there. Symfony is an entire web development platform that includes a framework: The leading PHP framework to create websites and web applications. Built [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-symfony-ubuntu-20-04/">How to install Symfony on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. Hope you are well. There are many PHP frameworks but in this post, you will learn how to install Symfony. Maybe this is one of the most advanced ones out there.</p>



<p>Symfony is an entire web development platform that includes a framework:</p>



<blockquote class="wp-block-quote"><p>The leading PHP framework to create websites and web applications. Built on top of the Symfony Components.</p></blockquote>



<p>One of the main advantages of Symfony is that it has an MIT license, which is the same as a permissive free software license.</p>



<p>On the other hand, <strong>it uses the Model &#8211; View &#8211; Controller</strong> pattern that is so widespread among developers. Also, it allows you to create from simple websites to macro projects and complex applications all hand in hand with a huge community of users.</p>



<p>So, let’s get started.</p>



<h2 id="install-symfony-on-ubuntu-20.04"><a href="#install-symfony-on-ubuntu-20.04" name="install-symfony-on-ubuntu-20.04"></a>Install Symfony on Ubuntu 20.04</h2>



<p>Symfony can be installed via composer or from your installer which is the easiest and most feasible option.</p>



<p>So, open the terminal and upgrade Ubuntu 20.04</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p>Symfony is a PHP framework, so it requires PHP to work. If you already have a <a href="https://www.osradar.com/install-lamp-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">LAMP</a> or <a href="https://www.osradar.com/install-lemp-on-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">LEMP</a> server you do not need this step.</p>



<pre class="wp-block-preformatted">sudo apt install php php-json php-ctype php-curl php-mbstring php-xml php-zip php-tokenizer php-tokenizer libpcre3 --no-install-recommends</pre>



<p>After this, install <code>GIT</code>, <code>unzip</code> and <code>zip</code> for a successful installation</p>



<pre class="wp-block-preformatted">sudo apt install git zip unzip</pre>



<p>After that, download and install the <code>symfony-cli</code> tool</p>



<pre class="wp-block-preformatted">wget https://get.symfony.com/cli/installer -O - | bash</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="492" src="https://www.osradar.com/wp-content/uploads/2021/02/1-3-1024x492.png" alt="1.- Download Symfony Cli" class="wp-image-28452" srcset="https://www.osradar.com/wp-content/uploads/2021/02/1-3-1024x492.png 1024w, https://www.osradar.com/wp-content/uploads/2021/02/1-3-300x144.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/1-3-768x369.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/1-3-696x334.png 696w, https://www.osradar.com/wp-content/uploads/2021/02/1-3-1068x513.png 1068w, https://www.osradar.com/wp-content/uploads/2021/02/1-3.png 1197w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Download Symfony Cli</figcaption></figure>



<p>After that, add the Symfony installation path to the <code>PATH</code> user.</p>



<pre class="wp-block-preformatted">export PATH="$HOME/.symfony/bin:$PATH".</pre>



<p>And apply the changes by running</p>



<pre class="wp-block-preformatted">source ~/.bashrc</pre>



<p>With this, we will be able to use the tool from any location of the prompt.</p>



<p>Now configure the email and user of your user in Git.</p>



<pre class="wp-block-preformatted">git config --global user.email "angelo@osradar.com"
git config --global user.name "Angelo"</pre>



<p>Now you can create a new project by running it.</p>



<pre class="wp-block-preformatted">symfony new example --full</pre>



<p><strong>Note: You have to replace example with the name of your project.</strong></p>



<p>And now you can start working with your text editor like <a href="https://www.osradar.com/how-to-install-visual-studio-code-on-ubuntu-20-04/">Visual Studio Code</a>.</p>



<p>To start the local webserver you can run:</p>



<pre class="wp-block-preformatted">cd example
symfony server:start</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="269" src="https://www.osradar.com/wp-content/uploads/2021/02/2-1-1024x269.png" alt="2.- Serve the project" class="wp-image-28453" srcset="https://www.osradar.com/wp-content/uploads/2021/02/2-1-1024x269.png 1024w, https://www.osradar.com/wp-content/uploads/2021/02/2-1-300x79.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/2-1-768x202.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/2-1-696x183.png 696w, https://www.osradar.com/wp-content/uploads/2021/02/2-1-1068x281.png 1068w, https://www.osradar.com/wp-content/uploads/2021/02/2-1.png 1213w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Serve the project</figcaption></figure>



<p>Remember to replace example with the name of your project.</p>



<p>Now you can go to <code>http://localhost:8000</code> and check your project.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2021/02/3-1024x506.png" alt="3.- Symfony on Ubuntu 20.04" class="wp-image-28454" srcset="https://www.osradar.com/wp-content/uploads/2021/02/3-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2021/02/3-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/3-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/3-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2021/02/3-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2021/02/3.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Symfony on Ubuntu 20.04</figcaption></figure>



<p>So, enjoy it.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>Thanks to this post, now you know how to install this framework on Ubuntu 20.04 this is the first step to start developing applications with this great framework.</p>



<p>More info: <a href="https://symfony.com/doc/current/" target="_blank" rel="noreferrer noopener">Official documentation</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-symfony-ubuntu-20-04/">How to install Symfony on Ubuntu 20.04?</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/install-symfony-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Symfony on Windows 10.</title>
		<link>https://www.osradar.com/how-to-install-symfony-on-windows-10/</link>
					<comments>https://www.osradar.com/how-to-install-symfony-on-windows-10/#respond</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Fri, 20 Dec 2019 22:54:05 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[composer windows 10]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[git in windows]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP 7.3]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[Windows 10]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=16829</guid>

					<description><![CDATA[<p>Hi, how are you? This time we&#8217;re going to talk about Symfony. This is a standardized work environment (PHP framework) used for the development of web applications. Additionally, it is one of the most used in the app development environment. In other words, it is a tool for developers to create applications in PHP. On [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-symfony-on-windows-10/">How to install Symfony on 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? This time we&#8217;re going to talk about Symfony. This is a standardized work environment (PHP framework) used for the development of web applications. Additionally, it is one of the most used in the app development environment. In other words, it is a tool for developers to create applications in PHP. On the other hand, this framework has a large number of templates for developing websites and is widely used in the creation of APIs. One of its main features is that it allows you to create from simple websites to large projects and complex applications. One of its main features is that it allows you to create from simple websites to large projects and complex applications. Well, in this post we will see how to install Symfony on Windows 10.</p>



<h2>Prerequisites</h2>



<p>To be able to develop comfortably in Symfony we must prepare Windows. For this purpose, it is necessary to install the following components.</p>



<ul><li>PHP version 7.1.3 or higher. If you want to know how to install it, please check this <a rel="noreferrer noopener" aria-label="post (opens in a new tab)" href="https://www.osradar.com/how-to-install-php-in-windows-10/" target="_blank">post</a>.</li><li>You must also have Composer installed. Click <a rel="noreferrer noopener" aria-label="here  (opens in a new tab)" href="https://www.osradar.com/how-to-install-composer-on-windows-10/" target="_blank">here </a>to see how to install it.</li><li>You also need Git. If you want simple instructions on how to <a rel="noreferrer noopener" aria-label="install (opens in a new tab)" href="https://www.osradar.com/how-to-install-git-on-windows-10/" target="_blank">install</a> it, please check here.</li><li>Finally, to start programming in Symfony you need a good Integrated Development Environment (IDE). There are many options, however, I show you how to <a rel="noreferrer noopener" aria-label="install Visual Code Studio. (opens in a new tab)" href="https://www.osradar.com/how-to-install-and-configure-visual-studio-code-in-windows-10/" target="_blank">install Visual Code Studio.</a></li></ul>



<h2>Enable the PHP-curl extension.</h2>



<p>Symfony requires the php-curl extension to work. Most likely the extension is available, but it is disabled in the php.ini file. If so, just remove the; in the extension, as explained <a rel="noreferrer noopener" aria-label="here (opens in a new tab)" href="https://www.osradar.com/how-to-install-cakephp-in-windows-10/" target="_blank">here</a>.</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/sym-1.jpg" alt="Enable php-curl extension" class="wp-image-16853" srcset="https://www.osradar.com/wp-content/uploads/2019/12/sym-1.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/sym-1-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/sym-1-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/sym-1-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/sym-1-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/sym-1-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2> Download Symfony. </h2>



<p>The first thing you have to do is go to the official website of the program and <a rel="noreferrer noopener" href="https://symfony.com/download" target="_blank">download</a> the latest version (5.0.2 at the time of publication).</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/sym14-1.jpg" alt="Download the executable file." class="wp-image-16854" srcset="https://www.osradar.com/wp-content/uploads/2019/12/sym14-1.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/sym14-1-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/sym14-1-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/sym14-1-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/sym14-1-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/sym14-1-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption> Download the executable file. </figcaption></figure>



<p>Then run the file to start the installation. First, select an installation directory.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="504" height="390" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/sym2.jpg" alt="Select Destination Location" class="wp-image-16855" srcset="https://www.osradar.com/wp-content/uploads/2019/12/sym2.jpg 504w, https://www.osradar.com/wp-content/uploads/2019/12/sym2-300x232.jpg 300w" sizes="(max-width: 504px) 100vw, 504px" /><figcaption>Select Destination Location</figcaption></figure>



<p>Then assign the shortcut to the start menu folder.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="504" height="390" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/sym3.jpg" alt="Creates a shortcut to the start menu" class="wp-image-16857" srcset="https://www.osradar.com/wp-content/uploads/2019/12/sym3.jpg 504w, https://www.osradar.com/wp-content/uploads/2019/12/sym3-300x232.jpg 300w" sizes="(max-width: 504px) 100vw, 504px" /><figcaption>Creates a shortcut to the start menu</figcaption></figure>



<p>Then, the assistant adds the program to the environment variable PATH. This is very useful, as it allows you to run Symfony from any console.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="504" height="390" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/sym4.jpg" alt="Adds the program directory to the PATH environment" class="wp-image-16858" srcset="https://www.osradar.com/wp-content/uploads/2019/12/sym4.jpg 504w, https://www.osradar.com/wp-content/uploads/2019/12/sym4-300x232.jpg 300w" sizes="(max-width: 504px) 100vw, 504px" /><figcaption>Adds the program directory to the PATH environment</figcaption></figure>



<p>Then check the installation options and press Install to begin the process.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="504" height="390" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/sym5.jpg" alt="Check the options and start the installation." class="wp-image-16860" srcset="https://www.osradar.com/wp-content/uploads/2019/12/sym5.jpg 504w, https://www.osradar.com/wp-content/uploads/2019/12/sym5-300x232.jpg 300w" sizes="(max-width: 504px) 100vw, 504px" /><figcaption>Check the options and start the installation.</figcaption></figure>



<p>Forthwith, the wizard will start downloading the files needed to complete the installation.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="504" height="390" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/sym6.jpg" alt="Downloading the additional files" class="wp-image-16862" srcset="https://www.osradar.com/wp-content/uploads/2019/12/sym6.jpg 504w, https://www.osradar.com/wp-content/uploads/2019/12/sym6-300x232.jpg 300w" sizes="(max-width: 504px) 100vw, 504px" /><figcaption>Downloading the additional files</figcaption></figure>



<p>Please wait a few moments until the assistant has finished his work.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="504" height="390" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/sym7.jpg" alt="Symfony finally installed." class="wp-image-16864" srcset="https://www.osradar.com/wp-content/uploads/2019/12/sym7.jpg 504w, https://www.osradar.com/wp-content/uploads/2019/12/sym7-300x232.jpg 300w" sizes="(max-width: 504px) 100vw, 504px" /><figcaption>Symfony finally installed.</figcaption></figure>



<h2>Configuring Symfony</h2>



<p>In the first place, checks if the system meets all the requirements for running Symfony With that in mind, please open the Git Bash and enter the following command:</p>



<pre class="wp-block-preformatted"> symfony check:requirements </pre>



<p> In this case, you can see that the system meets the requirements for running Symfony. Additionally, it offers a number of suggestions to  improve the performance of the program </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/sym8.jpg" alt="Check if the system meets the Simfony requirements.Check if the system meets the Simfony requirements." class="wp-image-16865" srcset="https://www.osradar.com/wp-content/uploads/2019/12/sym8.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/sym8-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/sym8-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/sym8-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/sym8-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/sym8-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Check if the system meets the Simfony requirements.</figcaption></figure>



<h2>Creating a project with Symfony</h2>



<p>There are two options for creating a new project in Symfony. First, you can build a traditional web application. To do so, run the following command:</p>



<pre class="wp-block-preformatted"> symfony new my_project_name --full </pre>



<p>Secondly, there is the option to build a microservice, a console application or API. With that in mind, run the following command:</p>



<pre class="wp-block-preformatted"> symfony new my_project_name </pre>



<p>The only difference between the two commands is the number of required dependencies that are downloaded. In fact, with the FULL variable, all the packages needed to build web applications are installed. Consequently, the installation is larger.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1020" height="390" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/sym9.jpg" alt="Creating the FULL application" class="wp-image-16867" srcset="https://www.osradar.com/wp-content/uploads/2019/12/sym9.jpg 1020w, https://www.osradar.com/wp-content/uploads/2019/12/sym9-300x115.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/sym9-768x294.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/sym9-696x266.jpg 696w" sizes="(max-width: 1020px) 100vw, 1020px" /><figcaption>Creating the FULL application</figcaption></figure>



<p>During the process, you have to authorize the access of the program through the Windows firewall.</p>



<figure class="wp-block-gallery columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img loading="lazy" width="527" height="390" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/sym10.jpg" alt="" data-id="16868" data-full-url="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/sym10.jpg" data-link="https://www.osradar.com/?attachment_id=16868" class="wp-image-16868" srcset="https://www.osradar.com/wp-content/uploads/2019/12/sym10.jpg 527w, https://www.osradar.com/wp-content/uploads/2019/12/sym10-300x222.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/sym10-80x60.jpg 80w, https://www.osradar.com/wp-content/uploads/2019/12/sym10-485x360.jpg 485w" sizes="(max-width: 527px) 100vw, 527px" /></figure></li><li class="blocks-gallery-item"><figure><img loading="lazy" width="527" height="390" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/sym11.jpg" alt="" data-id="16869" data-full-url="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/sym11.jpg" data-link="https://www.osradar.com/?attachment_id=16869" class="wp-image-16869" srcset="https://www.osradar.com/wp-content/uploads/2019/12/sym11.jpg 527w, https://www.osradar.com/wp-content/uploads/2019/12/sym11-300x222.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/sym11-80x60.jpg 80w, https://www.osradar.com/wp-content/uploads/2019/12/sym11-485x360.jpg 485w" sizes="(max-width: 527px) 100vw, 527px" /></figure></li></ul><figcaption class="blocks-gallery-caption">It authorizes access through the Windows Firewall.</figcaption></figure>



<h2>Testing the project in Symfony.</h2>



<p>To be able to run the project, it is necessary to navigate to the installation directory. And then start the server:</p>



<pre class="wp-block-preformatted">cd my-project 
symfony server:start </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/sym12.jpg" alt="Running the first project in Symfony." class="wp-image-16871" srcset="https://www.osradar.com/wp-content/uploads/2019/12/sym12.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/sym12-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/sym12-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/sym12-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/sym12-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/sym12-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Running the first project in Symfony.</figcaption></figure>



<p>Then enter the following in the navigation bar of the browser:  <strong>http://localhost:8000</strong>. If everything has been correct, then you will see Symfony&#8217;s initial message.</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/sym13.jpg" alt="" class="wp-image-16873" srcset="https://www.osradar.com/wp-content/uploads/2019/12/sym13.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/sym13-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/sym13-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/sym13-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/sym13-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/sym13-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Symfony home page.</figcaption></figure>



<h2>Conclusion</h2>



<p>Ultimately, we have seen how to install Symfony on Windows 10. It can be used as a global application to make any page. In addition, with its template engine, a complete page can be made. It is also widely used to make APIs, which is currently under development. All right, that&#8217;s it for now. I hope you&#8217;ve learned how to install this wonderful framework. See you later!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-symfony-on-windows-10/">How to install Symfony on 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-symfony-on-windows-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Symfony PHP framework on Ubuntu 18.04?</title>
		<link>https://www.osradar.com/install-symfony-php-framework-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/install-symfony-php-framework-ubuntu-18-04/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 27 Dec 2018 22:47:20 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=8656</guid>

					<description><![CDATA[<p>On other occasions, we have talked about various PHP frameworks. For example, I taught you how to install Cake and Yii, but today I&#8217;ll teach you how to install Symfony which is perhaps one of the most robust. Symfony PHP is a high-performance framework for developing web applications. So, it is very popular among groups [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-symfony-php-framework-ubuntu-18-04/">How to install Symfony PHP framework on Ubuntu 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>On other occasions, we have talked about various PHP frameworks. For example, I taught you how to install <a href="https://www.osradar.com/install-cake-php-centos-7/">Cake</a> and <a href="https://www.osradar.com/install-yii-php-framework-debian-9-ubuntu/">Yii</a>, but today I&#8217;ll teach you how to install Symfony which is perhaps one of the most robust.</p>
<p><a href="https://symfony.com/" rel="noopener">Symfony</a> PHP is a high-performance framework for developing web applications. So, it is very popular among groups of developers working on medium to large scale projects. In addition, it is one of the best-documented frameworks, with many books that teach you how to use its full potential.</p>
<p>So, let&#8217;s install Symfony on Ubuntu 18.04.</p>
<h1>1. Install Apache web server</h1>
<p>The first step is to install a web server, in this case, I will use <a href="https://www.osradar.com/how-to-install-apache-gui-on-debian-9/" rel="noopener">Apache</a> because it is easy to install and use.</p>
<pre class="">:~$ sudo apt install apache2</pre>
<p><figure id="attachment_8743" aria-describedby="caption-attachment-8743" style="width: 1364px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8743" src="https://www.osradar.com/wp-content/uploads/2018/12/1-18.png" alt="1.- Install apache web server" width="1364" height="417" srcset="https://www.osradar.com/wp-content/uploads/2018/12/1-18.png 1364w, https://www.osradar.com/wp-content/uploads/2018/12/1-18-300x92.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/1-18-768x235.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/1-18-1024x313.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/1-18-1068x327.png 1068w" sizes="(max-width: 1364px) 100vw, 1364px" /><figcaption id="caption-attachment-8743" class="wp-caption-text">1.- Install an Apache web server</figcaption></figure></p>
<p>Then, start and enable the service.</p>
<pre class="">:~$ sudo systemctl enable apache2
:~$ sudo systemctl start apache2</pre>
<p><figure id="attachment_8744" aria-describedby="caption-attachment-8744" style="width: 971px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8744" src="https://www.osradar.com/wp-content/uploads/2018/12/2-17.png" alt="2.- Enabling Apache" width="971" height="177" srcset="https://www.osradar.com/wp-content/uploads/2018/12/2-17.png 971w, https://www.osradar.com/wp-content/uploads/2018/12/2-17-300x55.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/2-17-768x140.png 768w" sizes="(max-width: 971px) 100vw, 971px" /><figcaption id="caption-attachment-8744" class="wp-caption-text">2.- Enabling Apache</figcaption></figure></p>
<p>And that&#8217;s it.</p>
<h1>2. Install PHP</h1>
<p>Since it is a PHP framework it is obvious that you have to install the <a href="https://www.osradar.com/how-to-install-php-7-2-on-debian-9-stretch/" rel="noopener">PHP</a> language. So let&#8217;s go for it.</p>
<pre class="">:~$ sudo apt install php libapache2-mod-php php-mbstring php-xmlrpc php-soap php-gd php-xml php-cli php-zip php-mysql php-curl</pre>
<p><figure id="attachment_8745" aria-describedby="caption-attachment-8745" style="width: 1360px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8745" src="https://www.osradar.com/wp-content/uploads/2018/12/3-17.png" alt="3.- Install PHP" width="1360" height="482" srcset="https://www.osradar.com/wp-content/uploads/2018/12/3-17.png 1360w, https://www.osradar.com/wp-content/uploads/2018/12/3-17-300x106.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/3-17-768x272.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/3-17-1024x363.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/3-17-1068x379.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/3-17-1185x420.png 1185w" sizes="(max-width: 1360px) 100vw, 1360px" /><figcaption id="caption-attachment-8745" class="wp-caption-text">3.- Install PHP</figcaption></figure></p>
<p>Now, restart apache.</p>
<pre class="">:~$ sudo systemctl restart apache2</pre>
<h1>3. Install MariaDB</h1>
<p>If you are going to develop with a framework, it is necessary to have a database manager, so install <a href="https://www.osradar.com/password-hashing-mysql-mariadb/" rel="noopener">MariaDB</a>.</p>
<pre class="">:~$ sudo apt install mariadb-server</pre>
<p><figure id="attachment_8746" aria-describedby="caption-attachment-8746" style="width: 1304px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8746" src="https://www.osradar.com/wp-content/uploads/2018/12/4-17.png" alt="4.- Install MariaDB" width="1304" height="515" srcset="https://www.osradar.com/wp-content/uploads/2018/12/4-17.png 1304w, https://www.osradar.com/wp-content/uploads/2018/12/4-17-300x118.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/4-17-768x303.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/4-17-1024x404.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/4-17-1068x422.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/4-17-1063x420.png 1063w" sizes="(max-width: 1304px) 100vw, 1304px" /><figcaption id="caption-attachment-8746" class="wp-caption-text">4.- Install MariaDB</figcaption></figure></p>
<p>Then, enable and start the service.</p>
<pre class="">:~$ sudo systemctl enable mariadb
:~$ sudo systemctl start mariadb</pre>
<p><figure id="attachment_8749" aria-describedby="caption-attachment-8749" style="width: 819px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8749" src="https://www.osradar.com/wp-content/uploads/2018/12/7-777.png" alt="5.- Enabling MariaDB service" width="819" height="143" srcset="https://www.osradar.com/wp-content/uploads/2018/12/7-777.png 819w, https://www.osradar.com/wp-content/uploads/2018/12/7-777-300x52.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/7-777-768x134.png 768w" sizes="(max-width: 819px) 100vw, 819px" /><figcaption id="caption-attachment-8749" class="wp-caption-text">5.- Enabling MariaDB service</figcaption></figure></p>
<p>Now, set a root password for MariaDB. You can do it using the <code>mysql_secure_installtion</code> script.</p>
<pre class="">:~$ sudo mysql_secure_installation</pre>
<p><figure id="attachment_8748" aria-describedby="caption-attachment-8748" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8748" src="https://www.osradar.com/wp-content/uploads/2018/12/6-12-1.png" alt="6.- Setting a root password for MariaDB" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/6-12-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/6-12-1-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/6-12-1-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/6-12-1-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/6-12-1-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/6-12-1-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8748" class="wp-caption-text">6.- Setting a root password for MariaDB</figcaption></figure></p>
<p>There you can configure other options, however, I leave it to your discretion the answers as for this tutorial are not decisive.</p>
<h1>4. Install Symfony PHP</h1>
<p>To install Symfony 4, you must first install Composer. Composer is a dependency manager for PHP.</p>
<pre class="">:~$ wget https://getcomposer.org/installer
:~$ php installer</pre>
<p><figure id="attachment_8752" aria-describedby="caption-attachment-8752" style="width: 802px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8752" src="https://www.osradar.com/wp-content/uploads/2018/12/10-10101.png" alt="10.- Composer installed" width="802" height="306" srcset="https://www.osradar.com/wp-content/uploads/2018/12/10-10101.png 802w, https://www.osradar.com/wp-content/uploads/2018/12/10-10101-300x114.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/10-10101-768x293.png 768w" sizes="(max-width: 802px) 100vw, 802px" /><figcaption id="caption-attachment-8752" class="wp-caption-text">10.- Composer installed</figcaption></figure></p>
<p>As you can see, after an initial connection error, composer is installed properly.</p>
<p>Next, make Composer a global command.</p>
<pre class="">:~$ <span class="crayon-c">sudo mv composer.phar /usr/local/bin/composer 
:~$ sudo chmod +x /usr/local/bin/composer</span></pre>
<p><figure id="attachment_8753" aria-describedby="caption-attachment-8753" style="width: 806px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8753" src="https://www.osradar.com/wp-content/uploads/2018/12/11-111.png" alt="11.- Setting Composer globally" width="806" height="131" srcset="https://www.osradar.com/wp-content/uploads/2018/12/11-111.png 806w, https://www.osradar.com/wp-content/uploads/2018/12/11-111-300x49.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/11-111-768x125.png 768w" sizes="(max-width: 806px) 100vw, 806px" /><figcaption id="caption-attachment-8753" class="wp-caption-text">11.- Setting Composer globally</figcaption></figure></p>
<h1>5. Create a new project</h1>
<p>Now it&#8217;s time to create a new Symfony project. It&#8217;s very simple.</p>
<pre class="">:~$ composer create-project symfony/website-skeleton example</pre>
<p><figure id="attachment_8754" aria-describedby="caption-attachment-8754" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8754" src="https://www.osradar.com/wp-content/uploads/2018/12/12-1111-1.png" alt="12.- Install Symfony" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/12-1111-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/12-1111-1-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/12-1111-1-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/12-1111-1-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/12-1111-1-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/12-1111-1-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8754" class="wp-caption-text">12.- Install Symfony</figcaption></figure></p>
<p>Obviously, put the name of the project you want.</p>
<p><figure id="attachment_8756" aria-describedby="caption-attachment-8756" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8756" src="https://www.osradar.com/wp-content/uploads/2018/12/13-1333.png" alt="13.- Symfony installed" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/13-1333.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/13-1333-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/13-1333-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/13-1333-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/13-1333-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/13-1333-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8756" class="wp-caption-text">13.- Symfony installed</figcaption></figure></p>
<p>Then, serve the project.</p>
<pre class="">:~$ cd example
:~$ php bin/console server:run
</pre>
<p><figure id="attachment_8757" aria-describedby="caption-attachment-8757" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8757" src="https://www.osradar.com/wp-content/uploads/2018/12/14-11114.png" alt="14.- Symfony running" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/14-11114.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/14-11114-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/14-11114-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/14-11114-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/14-11114-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/14-11114-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8757" class="wp-caption-text">14.- Symfony running</figcaption></figure></p>
<p>Finally, open the web browser an go to <code>http://IP_SERVER:8000</code>. Or you can specify the IP and the port. It is useful if you are using a VM.</p>
<p><figure id="attachment_8760" aria-describedby="caption-attachment-8760" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8760" src="https://www.osradar.com/wp-content/uploads/2018/12/16-3.png" alt="16.- Symfony running on a specific IP" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/16-3.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/16-3-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/16-3-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/16-3-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/16-3-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/16-3-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8760" class="wp-caption-text">16.- Symfony running on a specific IP</figcaption></figure></p>
<p><figure id="attachment_8759" aria-describedby="caption-attachment-8759" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8759" src="https://www.osradar.com/wp-content/uploads/2018/12/15-4.png" alt="15.- Symfony is alive!" width="1366" height="671" srcset="https://www.osradar.com/wp-content/uploads/2018/12/15-4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/15-4-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/15-4-768x377.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/15-4-1024x503.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/15-4-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2018/12/15-4-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/15-4-855x420.png 855w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8759" class="wp-caption-text">15.- Symfony is alive!</figcaption></figure></p>
<p>And that&#8217;s it.</p>
<h1>Conclusion</h1>
<p>While it is true that Symfony is a framework not so easy to learn, its installation on Ubuntu 18.04 is quite simple. All that&#8217;s left is for you to develop brilliant applications with it.</p>
<p>Please share this post with your friends.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-symfony-php-framework-ubuntu-18-04/">How to install Symfony PHP framework on Ubuntu 18.04?</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/install-symfony-php-framework-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
