<?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>eoxia &#187; Tutoriaux Symfony</title>
	<atom:link href="http://www.eoxia.com/site-web-montpellier/tutorial-open-source/tutorial-symfony/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.eoxia.com</link>
	<description>design et technologies</description>
	<lastBuildDate>Tue, 07 Feb 2012 18:57:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Tutorial Symphony</title>
		<link>http://www.eoxia.com/site-web/installer-symfony-en-local-avec-wamp/</link>
		<comments>http://www.eoxia.com/site-web/installer-symfony-en-local-avec-wamp/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 08:37:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TUTORIAUX OPEN SOURCE]]></category>
		<category><![CDATA[Tutoriaux Symfony]]></category>
		<category><![CDATA[en local]]></category>
		<category><![CDATA[Installer Symfony]]></category>
		<category><![CDATA[Tutorial Symphony]]></category>
		<category><![CDATA[Wamp]]></category>

		<guid isPermaLink="false">http://www.eoxia.com/?p=1446</guid>
		<description><![CDATA[<strong>Installer Symfony en local avec Wamp</strong>
Ce tutoriel vous aidera pas à pas à installer symfony sur votre ordinateur et à créer un premier projet en local. La version de symfony utilisé dans ce tutoriel est symfony 1.2.7, celle de php, 5.2.8 et pour appache, apache2.2.11
Vous êtes libre d'installer la version de votre choix, ça n'aura pas d'incidence sur la suite de ce tutoriel.

<strong style="font-weight: bold;"><strong style="font-weight: bold;"><a href="http://www.eoxia.com/site-web/installer-symfony-en-local-avec-wamp/"><img style="border: 0px initial initial;" title="doc-symphony" src="http://www.eoxia.com/wp-content/uploads/2007/06/doc-symphony.jpg" alt="doc-symphony" width="15" height="15" /></a> <span style="font-weight: normal; font-size: 13px;"><a href="http://www.eoxia.com/site-web/installer-symfony-en-local-avec-wamp/">Voir le tutorial d'installation</a></span></strong></strong> <a href="http://www.eoxia.com/site-web/installer-symfony-en-local-avec-wamp/">Lire la suite <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<table style="width: 100%;" border="0">
<tbody>
<tr>
<td>
<h2><strong><a href="http://www.eoxia.com/site-web/installer-symfony-en-local-avec-wamp/">Installer Symfony</a> <strong><a href="http://www.eoxia.com/site-web/installer-symfony-en-local-avec-wamp/"><img style="border: 0px initial initial;" title="doc-symphony" src="http://www.eoxia.com/wp-content/uploads/2007/06/doc-symphony.jpg" alt="doc-symphony" width="15" height="15" /></a> <a href="http://www.eoxia.com/site-web/installer-symfony-en-local-avec-wamp/">en local avec Wamp</a> </strong></strong></h2>
</td>
<td style="text-align: right;"><a href="http://www.eoxia.com/wp-content/uploads/2009/06/tutoriel_installation_symfony_local_v1.pdf"><img class="alignnone size-full wp-image-2132" title="pikto_pdf" src="http://www.eoxia.com/wp-content/uploads/2009/06/pikto_pdf.png" alt="pikto_pdf" width="239" height="60" /></a></td>
</tr>
</tbody>
</table>
<p style="text-align: center;"><strong> </strong></p>
<p style="text-align: right;"> </p>
<h4><span style="font-size: x-large;"><span style="text-decoration: underline;"><strong>Introduction</strong></span></span></h4>
<p align="left"> </p>
<p align="left">Ce tutoriel vous aidera pas à pas à installer symfony sur votre ordinateur et à créer un premier projet en local.</p>
<p align="left">La version de symfony utilisé dans ce tutoriel est symfony 1.2.7, celle de php, 5.2.8 et pour appache, apache2.2.11</p>
<p align="left">Vous êtes libre d&#8217;installer la version de votre choix, ça n&#8217;aura pas d&#8217;incidence sur la suite de ce tutoriel.</p>
<p align="left"> </p>
<p align="left"><span style="font-size: x-large;"><span style="text-decoration: underline;"><strong>Pré-requis</strong></span></span></p>
<p align="left"> </p>
<ul>
<li>
<p align="left">installer wamp</p>
</li>
<li>
<p align="left">installer pear (sera traité dans ce tutoriel)</p>
</li>
<li>
<p align="left">utiliser l&#8217;invite de commande 	Windows(démarrer&gt;Exécuter&#8230;&gt;cmd)</p>
</li>
</ul>
<p align="left"> </p>
<p align="left"><span style="font-size: x-large;"><span style="text-decoration: underline;"><strong>Installation de WampServer</strong></span></span></p>
<p align="left"> </p>
<p align="left">En premier lieu, il nous faut installer WampServer. Vous trouverez une version de Wamp à cette adresse <a href="http://www.wampserver.com/">http://www.wampserver.com/</a> rubrique Download.</p>
<p align="left">Faite une installation par défaut.</p>
<p align="left"><strong>Attention</strong>: si vous ne faite pas l&#8217;installation par défaut, il sera de votre responsabilité de faire les bonnes modifications (de chemin par ex.) pour mener votre tutoriel à terme.</p>
<p align="left"> </p>
<p align="left"><span style="font-size: x-large;"><span style="text-decoration: underline;"><strong>Installation de PEAR</strong></span></span></p>
<p align="left"> </p>
<p align="left">PEAR est une extension de PHP qui permet d&#8217;automatiser l&#8217;installation, la mise à jour et la suppression de librairies PHP (rendez-vous sur le site de <a href="http://pear.php.net/manual/fr/about.pear.php">pear</a> pour en apprendre plus).</p>
<p align="left">Heureusement pour nous, PEAR est livré avec toutes les distributions de PHP, cela nous facilitera grandement son installation.</p>
<p align="left"> </p>
<p align="left">Pour installer, à partir de l&#8217;invite de commande windows taper:</p>
<p align="left"><em><strong>$cd C:\wamp\bin\php\ php5.2.8\ </strong>(Suivant le chemin vers lequel vous avez installé wamp)</em></p>
<p align="left"><em><strong>$go-pear.bat </strong></em><em>(Appuyez sur Enter lorsque des questions vous seront posées, pour effectuer une installation par défaut)</em></p>
<p align="left"> </p>
<p align="left">Faite l&#8217;installation par défaut (suffit d&#8217;appuyer sur Enter quand nécessaire)</p>
<p align="left">Ensuite si l&#8217;installation c&#8217;est déroulé correctement, vous devrez aller dans le dossier php5.2.8 à l&#8217;aide de l&#8217;explorateur Windows puis double-cliqué sur le registre &#8216;PEAR_ENV.reg&#8217;.</p>
<p align="left">Ceci ajoute PEAR dans le registre de windows PEAR.</p>
<p align="left"> </p>
<p align="left">En ligne de commande:</p>
<p align="left"><em><strong>$cd C:\wamp\bin\php\ php5.2.8\ </strong>(Suivant le chemin vers lequel vous avez installé wamp)</em></p>
<p align="left"><em><strong>$pear upgrade PEAR</strong></em></p>
<p align="left"> </p>
<p align="left"><strong>Remarque:</strong> La version de PEAR utilisé est 1.8.1, si à partir de l&#8217;étape &#8216;creation de projet&#8217; vous visitez le dossier</p>
<p align="left">C:\wamp\bin\php\php5.2.8\data\ et que vous ne trouvez pas de sous-dossier symfony, je vous invite à désinstaller symfony et PEAR puis d&#8217;installer notre version de PEAR. (non traité dans ce tutoriel)</p>
<p align="left"> </p>
<p align="left"><span style="font-size: x-large;"><span style="text-decoration: underline;"><strong>Configurer la variable d&#8217;environnement Path de Windows</strong></span></span></p>
<p align="left"> </p>
<p align="left">Dans cette étape, nous configurerons la variable d&#8217;environnement de Windows. Cette variable, nous permettra dans ce cas présent d&#8217;exécuter symfony.bat en ligne de commande dans n&#8217;importe quel sous-dossier.</p>
<table style="width: 100%;" border="0">
<tbody>
<tr>
<td valign="top">
<p align="left"><span style="text-decoration: underline;">Sous Windows XP:</span></p>
<p align="left">Sur l&#8217;icône poste de Travail clic droit&gt;Propriétés&gt;Avancé(Onglet)&gt;Variables d&#8217;environnement(Bouton)</p>
<p align="left">Dans les variables système, repérer la variable Path, double-clic dessus</p>
<p align="left">(<strong>ATTENTION</strong> ne supprimé pas la valeur de cette variable)</p>
<p align="left"> </p>
<ul>
<li>ajouter à la valeur de la variable(à la fin de la chaîne de caractère):</li>
</ul>
<p align="left">;C:\wamp\bin\php\php5.2.8 <em>(Suivant le chemin vers lequel vous avez installé wamp)</em></p>
<p align="left">Appuyez sur OK pour enregistrer votre modification.</p>
<p align="left"> </p>
<ul>
<li>à partir de là vous devez redémarrer votre invite de commande pour mettre à jour ses variables d&#8217;environnement:</li>
</ul>
<p align="left"><em><strong>$exit </strong></em><em>(ou simplement appuyer sur la petite croix pour fermer la fenêtre)</em></p>
<p align="left">Ceci fait, vous avez un environnement propice à l&#8217;installation de symfony.</p>
</td>
<td><a href="../../../../../wp-content/uploads/2009/06/variable_path-copier.jpg" rel="lightbox[1446]"><img style="border: 0pt none; vertical-align: bottom;" src="../../../../../wp-content/uploads/2009/06/variable_path-copier.jpg" alt="variable_path-copier" width="400" height="432" /></a></td>
</tr>
</tbody>
</table>
<p align="left"> </p>
<p align="left"> </p>
<p align="left"><span style="font-size: x-large;"><span style="text-decoration: underline;"><strong>Installation de Symfony</strong></span></span></p>
<p align="left"> </p>
<p align="left">L&#8217;installation de symfony s&#8217;effectue en ligne de commande.</p>
<p align="left">Ouvrer la ligne de commande puis:</p>
<p align="left"><em><strong>$cd C:\wamp\bin\php\ php5.2.8\ </strong>(Suivant le chemin vers lequel vous avez installé wamp)</em></p>
<p align="left">Ajoutons le canal Symfony</p>
<p align="left"><em><strong>$pear channel-discover pear.symfony-project.com</strong></em></p>
<p align="left">Pour voir les librairies disponibles sur ce canal</p>
<p align="left"><em><strong>$pear remote-list -c symfony</strong></em></p>
<p align="left">Installation de symfony (cette commande installe la dernière version disponible sur le site)</p>
<p align="left"><em><strong>$pear install symfony/symfony</strong></em></p>
<p align="left"> </p>
<p align="left">Installation de package</p>
<p align="left"><em><strong>$pear install </strong></em><a href="http://phing.info/pear/phing-current.tgz">http://phing.info/pear/phing-current.tgz</a></p>
<p align="left">Maintenant vérifions la version de symfony</p>
<p align="left"><em><strong>$symfony -V</strong></em></p>
<p align="left">Pour avoir une vue d&#8217;ensemble de toutes les taches</p>
<p align="left"><em><strong>$symfony -T</strong></em></p>
<p align="left"> </p>
<p align="left"><strong>Remarque:</strong> Si vous pouvez voir la verison de symfony installé sur votre ordinateur, symfony est installé correctement sur votre ordinateur.</p>
<p align="left"> </p>
<p align="left"><span style="font-size: x-large;"><span style="text-decoration: underline;"><strong>Création d&#8217;un projet de test</strong></span></span></p>
<p align="left"> </p>
<p align="left">La création de projet se fera en ligne de commande, référez vous au site de <a href="http://www.symfony-project.org/jobeet/1_2/Propel/en/">symfony</a> pour en apprendre plus sur les commandes symfony.</p>
<p align="left">En ligne de commande:</p>
<p align="left"><em><strong>$cd C:\wamp\www</strong></em></p>
<p align="left"><em><strong>$mkdir test_app</strong></em></p>
<p align="left"><em><strong>$cd test_app</strong></em></p>
<p align="left"><em><strong>$symfony init-project test_app</strong></em></p>
<p align="left"><em><strong>$symfony init-app frontend</strong></em></p>
<p align="left"> </p>
<p align="left">à partir d&#8217;ici le projet est initialisé, mais les images ne seront pas affichées, il vous faudra les récupérer, pour ce faire aller dans le dossier (exlporateur windows)</p>
<p align="left">C:\wamp\bin\php\php5.2.8\data\symfony\web <em>(Suivant le chemin vers lequel vous avez installé wamp)</em> copier le dossier sf et son contenu puis le coller dans votre projet C:\wamp\www\test_app\web <em>(Suivant le chemin vers lequel vous avez installé wamp)</em></p>
<table style="width: 100%;" border="0">
<tbody>
<tr>
<td valign="top">
<p align="left">à partir de votre navigateur aller sur la page:</p>
<p align="left"><a href="http://localhost/test_app/web/">http://localhost/test_app/web/</a></p>
<p align="left">Si vous obtenez:</p>
</td>
<td>
<p style="text-align: center;" align="left"><img class="aligncenter" src="../../../../../wp-content/uploads/2009/06/local_symfony-300x187.jpg" border="0" alt="local_symfony" width="300" height="187" align="bottom" /></p>
</td>
</tr>
</tbody>
</table>
<p align="left"> </p>
<p align="left"> </p>
<p align="left">Félicitation vous venez d&#8217;installer symfony et créer un nouveau projet!</p>
<p align="left"><span style="font-size: x-large;"><span style="text-decoration: underline;"><strong>Mise à Jour/Selection de version symfony</strong></span></span></p>
<p align="left"> </p>
<p align="left">Pour mettre à jour symfony, il vous vaudra retourner dans le dossier ou est installé symfony:</p>
<p align="left"><em><strong>$cd C:\wamp\bin\php\ php5.2.8\ </strong>(Suivant le chemin vers lequel vous avez installé wamp)</em></p>
<p align="left"><em><strong>$pear install symfony/symfony</strong></em></p>
<p align="left"> </p>
<p align="left">La commande exécuté si dessous récupère la dernière mise à jour sur le site puis l&#8217;installe.</p>
<p align="left">Si vous voulez installer une version particulière de symfony:</p>
<p align="left"><em><strong>$pear install symfony/symfony-1.1.5</strong></em></p>
<p align="left"><span style="font-size: x-large;"><br /> </span></p>
<p align="left"><span style="font-size: x-large;"><span style="text-decoration: underline;"><strong>Désintaller symfony et PEAR</strong></span></span></p>
<p align="left"> </p>
<p align="left">Pour désinstaller proprement PEAR et symfony vous devrez récupérer tout les fichiers puis les placer dans la corbeilles, ces fichiers sont situé dans: <em>(Suivant le chemin vers lequel vous avez installé wamp)</em></p>
<p align="left">C:\wamp\bin\php\php5.2.8\data ==&gt; supprimer le dossier &#8216;symfony&#8217;</p>
<p align="left">C:\wamp\bin\php\php5.2.8 ==&gt; supprimer les fichers symfony.bat et PEAR_ENV.reg</p>
<p align="left">C:\wamp\bin\php\php5.2.8\PEAR ==&gt; supprimer tout les dossiers et fichiers <strong>SAUF </strong>go-pear.phar</p>
<p align="left"> </p>
<p align="left"> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.eoxia.com/site-web/installer-symfony-en-local-avec-wamp/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

