<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 22 May 2013 22:29:54 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 2)]]></title>
      <guid>http://www.phpdeveloper.org/news/17348</guid>
      <link>http://www.phpdeveloper.org/news/17348</link>
      <description><![CDATA[<p>
<i>Fabien Potencier</i> is back with the next installment of his "Building a framework on top of Symfony2" tutorial series with <a href="http://fabien.potencier.org/article/51/create-your-own-framework-on-top-of-the-symfony2-components-part-2">this look at using the HttpFoundation component</a> to use the Request and Response classes to handle HTTP interaction. (Part one <a href="http://phpdeveloper.org/news/17343">is here</a>.)
</p>
<blockquote>
The first step towards better code is probably to use an Object-Oriented approach; that's the main goal of the Symfony2 HttpFoundation component: replacing the default PHP global variables and functions by an Object-Oriented layer.
</blockquote>
<p>
He shows how using this component not only makes OOP handling of requests/responses simpler, but also helps to make your application more secure through features already included in the HttpFoundation component. Sample code is included showing how to fetch the current request, get filtered values from the superglobals (GET/SERVER/etc) and how to respond with a refactored version of the "Hello world" message from the <a href="http://phpdeveloper.org/news/17343">previous example</a>. 
</p>]]></description>
      <pubDate>Thu, 05 Jan 2012 08:11:27 -0600</pubDate>
    </item>
  </channel>
</rss>
