<?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, 23 May 2012 04:03:55 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DevShed: Service Layers in PHP Applications (a Series)]]></title>
      <guid>http://www.phpdeveloper.org/news/17004</guid>
      <link>http://www.phpdeveloper.org/news/17004</link>
      <description><![CDATA[<p>
DevShed has posted a series of tutorials talking about different sorts of service layers in PHP applications - seven of them to be exact:
</p>
<blockquote>
If you're looking for an approachable guide that teaches you how to implement an easily-customizable service layer in PHP, then take a peek at this article series. In a step-by-step fashion, it walks you through the development of a sample web application, which uses a service to perform CRUD operations on a domain model composed of a few user entities.
</blockquote>
<p>Service layer types covered in the series are:</p>
<ul>
<li><a href="http://www.devshed.com/c/a/PHP/PHP-Service-Layers-A-Final-Example/">Working with database entities</a>
<li><a href="http://www.devshed.com/c/a/PHP/PHP-Services-Layers-Data-Mappers/">Data Mappers</a>
<li><a href="http://www.devshed.com/c/a/PHP/PHP-Service-Layers-Database-Adapters/">Database adapters</a>
<li><a href="http://www.devshed.com/c/a/PHP/PHP-Service-Layers-Handling-Entity-Collections/">Handling Entity Collections</a>
<li><a href="http://www.devshed.com/c/a/PHP/PHP-Service-Layers-User-Services/">User Services</a>
<li><a href="http://www.devshed.com/c/a/PHP/PHP-Service-Layers-Dependency-Injection/">Dependency Injections</a>
<li><a href="http://www.devshed.com/c/a/PHP/PHP-Service-Layers-Modeling-Domain-Objects/">Modeling Domain Objects</a>
</ul>]]></description>
      <pubDate>Tue, 18 Oct 2011 08:50:09 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Jonathan Wage's Blog: Blending the Doctrine ORM and MongoDB ODM]]></title>
      <guid>http://www.phpdeveloper.org/news/15026</guid>
      <link>http://www.phpdeveloper.org/news/15026</link>
      <description><![CDATA[<p>
On his blog today <i>Jonathan Wage</i> has <a href="http://www.jwage.com/2010/08/25/blending-the-doctrine-orm-and-mongodb-odm/">posted a tip</a> on getting MongoDB connections and queries to work through the Doctrine ORM layer:
</p>
<blockquote>
Since the start of the <a href="http://www.doctrine-project.org/projects/mongodb_odm">Doctrine MongoDB Object Document Mapper</a> project people have asked how it can be integrated with the <a href="http://www.doctrine-project.org/projects/orm">ORM</a>. This blog post demonstrates how you can integrate the two transparently, maintaining a clean domain model. This example will have a Product that is stored in MongoDB and the Order stored in a MySQL database.
</blockquote>
<p>
His code shows how to define the document and entity for the connection (a Product and Order) and creating an event subscriber to lazy load the product. He creates a sample Product and an Order for it and save them to the database. He also includes code to pull an order back out by its ID number and get an Order object back out (with Product data inside).
</p>]]></description>
      <pubDate>Thu, 26 Aug 2010 13:34:40 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Giorgio Sironi's Blog: When to inject: the distinction between newables and injectables]]></title>
      <guid>http://www.phpdeveloper.org/news/12974</guid>
      <link>http://www.phpdeveloper.org/news/12974</link>
      <description><![CDATA[<p>
Following up on a <a href="http://www.phpdeveloper.org/news/12960">previous post</a> about dependency injection, <i>Giorgio Sironi</i> has posted <a href="http://giorgiosironi.blogspot.com/2009/07/when-to-inject-distinction-between.html">this new look</a> at when to use dependency injection and when its still better to handle objects individually.
</p>
<blockquote>
In the last post, I introduced Dependency Injection and show useful cases where it allows classes decouplng. I also wrote about the problem of how to inject a service in a class that has to be instantiated not application wide but in the business logic.
</blockquote>
<p>
He creates an example that shows a not-so-good place to use dependency injection and offers a solution - a factory that creates the objects as they're needed instead of having them floating around when they're not needed. He also talks about the difference between two types of business objects to consider in dependency injection: entities and services (hint: one depends on the other).
</p>]]></description>
      <pubDate>Fri, 31 Jul 2009 10:58:39 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ProDevTips.com: HTML entity encoding everything]]></title>
      <guid>http://www.phpdeveloper.org/news/9529</guid>
      <link>http://www.phpdeveloper.org/news/9529</link>
      <description><![CDATA[<p>
On the ProDevTips site, <i>Henrik</i> has pointed out <a href="http://www.greywyvern.com/php">a handy application</a> that can make HTML encoding characters outside the norm in PHP simple.
</p>
<blockquote>
The standard htmlentities() function will encode special characters so that they display OK in the browser. However, sometimes you might want to encode different languages to entities too. I just found a script that will do that in the form of an <a href="http://www.greywyvern.com/php">html encode application</a>.
</blockquote>
<p>
He <a href="http://www.prodevtips.com/2008/01/30/html-entity-encoding-everything/">includes an example</a> showing how to encode a string of non-english characters out to an easy-to-display HTMLified string.
</p>]]></description>
      <pubDate>Wed, 30 Jan 2008 12:57:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[International PHP Magazine: Poll Question: What is the Top Mistake That PHP Coders Commit?]]></title>
      <guid>http://www.phpdeveloper.org/news/7238</guid>
      <link>http://www.phpdeveloper.org/news/7238</link>
      <description><![CDATA[<p>
The International PHP Magazine has <a href="http://www.php-mag.net/magphpde/magphpde_news/psecom,id,26857,nodeid,5.html">posted results</a> from their latest PHP community poll as voted on by visitors to their site. The question for this poll asked developers what they thought, of the choices on the list, was the most common mistake that PHP developers make.
</p>
<p>
Coming in at number one by an overwhelming lead was "Not escaping entities and SQL input" (a definite problem indeed) with the next highest option, "Not using a Framework" a full twenty percent lower. The next two options were closer (descending) - "Using old PHP versions" and "No or little use of Object Orientation".
</p>
<p>
There's a <a href="http://www.php-mag.net/magphpde/magphpde_news/psecom,id,26858,nodeid,5.html">new poll</a> this week for your consideration - this time asking which stage, of the five options, should come first in the development cycle of a typical content management system. Head on over and cast your vote today!
</p>]]></description>
      <pubDate>Wed, 07 Feb 2007 10:43:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Hardened-PHP Project: PHP HTML Entity Encoder Heap Overflow Vulnerability]]></title>
      <guid>http://www.phpdeveloper.org/news/6640</guid>
      <link>http://www.phpdeveloper.org/news/6640</link>
      <description><![CDATA[<p>
The Hardened-PHP Project has put out <a href="http://www.hardened-php.net/advisory_132006.138.html">another advisory</a> for the PHP distribution itself, versions 5.1.6/4.4.4 and below dealing with the HTML entity encoder heap.
</p>
<blockquote>
While we were searching for a hole in htmlspecialchars() and htmlentities() to bypass the encoding of certain chars to exploit a possible eval() injection hole in another application we discovered that the implementation contains a possible bufferoverflow that can be triggered when the UTF-8 charset is selected.
</blockquote>
<p>
The issue has been corrected in the latest PHP 5 release - version 5.2 - but is still present in the PHP 4.4 series (they have a recommended patch until the new version is posted). You can get complete information about this issue from <a href="http://www.hardened-php.net/advisory_132006.138.html">the full vulnerability</a> listing.
</p>]]></description>
      <pubDate>Fri, 03 Nov 2006 12:58:00 -0600</pubDate>
    </item>
  </channel>
</rss>

