<?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>Tue, 22 May 2012 12:23:32 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[MaltBlue.com: Zend Form Mastery with Zend_Config - Part 3, Standard Form & Element Options]]></title>
      <guid>http://www.phpdeveloper.org/news/17987</guid>
      <link>http://www.phpdeveloper.org/news/17987</link>
      <description><![CDATA[<p>
On the MaltBlue.com blog they've posted the latest part of their series on using Zend_Config configuration files to <a href="http://www.maltblue.com/zend-form/zend-form-mastery-with-zend-config-part-3-standard-form-element-options">create Zend_Form elements</a>. In this latest article, they show how to set some of the other properties on the elements (like "readonly" or "required").
</p>
<blockquote>
We've looked at custom form filters and we've looked at the core form configuration. But what about the other form properties? What about: setting an element as readonly, an element as required, ignoring an element and love them or hate them, what about decorators.
</blockquote>
<p>
He shows how to update the XML file to add these new attributes into the structure and <a href="http://www.maltblue.com/wp-content/uploads/2012/05/Screen-Shot-2012-05-21-at-14.23.38.png">the resulting form</a>. Also included are a few examples of using <a href="http://framework.zend.com/manual/en/zend.form.elements.html#zend.form.elements.decorators">decorators</a> to configure the look, feel and modify the attributes.
</p>]]></description>
      <pubDate>Tue, 22 May 2012 09:16:31 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Michael Nitschinger's Blog: Writing a simple lexer in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17942</guid>
      <link>http://www.phpdeveloper.org/news/17942</link>
      <description><![CDATA[<p>
In <a href="http://nitschinger.at/Writing-a-simple-lexer-in-PHP">this new post</a> to his blog <i>Michael Nitschinger</i> shows you how to create a simple <a href="http://en.wikipedia.org/wiki/Lexical_analysis">lexer</a> to parse incoming content (like custom configuration files or anything that uses its own domain-specific language).
</p>
<blockquote>
A lot of developers avoid writing parsers because they think it's pretty hard to do so. Writing an efficient parser for a general purpose language (like PHP, Ruby, Java,...) is hard, but fortunately, most of the time we don't need that much complexity. Typically we just want to parse input coming from config files or from a specific problem domain (expressed through DSLs). DSLs (Domain Specific Languages) are pretty cool, because they allow you to express logic and flow in a very specific and convenient way for a limited set of tasks.
</blockquote>
<p>
He illustrates with an example based on the <a href="http://lithify.me/">Lithium</a> framework's routing engine and how it could parse a text file that relates a route to a controller/action combination. He creates a "Lexer" class that defines a few regular expressions to parse the incoming text strings for matches on things like whitespace, URLs and identifiers (words) and return each in the lexer's output. 
</p>]]></description>
      <pubDate>Thu, 10 May 2012 12:57:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Kevin Schroeder's Blog: Handling ZF2 FQ Dependency Setter Injections]]></title>
      <guid>http://www.phpdeveloper.org/news/17896</guid>
      <link>http://www.phpdeveloper.org/news/17896</link>
      <description><![CDATA[<p>
<i>Kevin Schroeder</i> has <a href="http://www.eschrade.com/page/handling-zf2-fq-dependency-setter-injections/">a new post</a> in his series looking at dependency injection in Zend Framework v2 applications. In this new post he shows how to work with setter injections that coordinate to properties in the class.
</p>
<blockquote>
<a href="http://www.eschrade.com/page/zf2-dependency-injection-managing-configuration-part-2/">In a previous article</a> I showed how you could pass in a fully qualified parameter name into the Dependency Injection Container (DiC) if you needed to be specific about where you need to have something injected.  There is an alternate method here that is cleaner than what I did before. 
</blockquote>
<p>
He illustrates with a "Test" class that has a "$test" property and shows how to, using the ZendDi component, inject the class into the container. Using the "injections" configuration value, he uses the "setTest" method to push a value into the "Test" class instance in the "$test" variable.
</p>]]></description>
      <pubDate>Wed, 02 May 2012 09:54:09 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[MaltBlue.com: Zend Form Mastery with Zend Config - Part 1, Custom Filter Paths]]></title>
      <guid>http://www.phpdeveloper.org/news/17880</guid>
      <link>http://www.phpdeveloper.org/news/17880</link>
      <description><![CDATA[<p>
From MaltBlue.com there's <a href="http://www.maltblue.com/zend-framework/zend-form-mastery-with-zend-config-part-1-custom-filter-paths">a new post</a> (the first in a series) about mastering Zend_Form. In this first part of the series, they look at creating custom filter paths with the help of the Zend_Config component.
</p>
<blockquote>
When you're working with Zend Framework, and code in general, you keep your configuration as much out of code as you can - right? Well, if you want to write maintainable and flexible code you do. Well, if you've been working with Zend Framework and Zend Form for more than a little while, you know that it really makes that pretty simple via Zend_Config - well, some of the time.
</blockquote>
<p>
The article shows introduces you to some of the common configuration settings of Zend_Form and how those can be set in a configuration to make building the forms simpler. They talk about pre-element and form-wide filters in this first part of the series, including some code/configuration examples.
</p>]]></description>
      <pubDate>Mon, 30 Apr 2012 08:16:22 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Kevin Schroeder's Blog: ZF2 Dependency Injection: Managing Configuration - Part 2]]></title>
      <guid>http://www.phpdeveloper.org/news/17874</guid>
      <link>http://www.phpdeveloper.org/news/17874</link>
      <description><![CDATA[<p>
<i>Kevin Schroeder</i> has posted the <a href="http://www.eschrade.com/page/zf2-dependency-injection-managing-configuration-part-2/">second part of his ZF2 dependency injection</a> series (part one <a href="http://phpdeveloper.org/news/17868">here</a>) talking about their configuration.
</p>
<blockquote>
In my <a href="http://www.eschrade.com/page/zf2-dependency-injection-managing-configuration/">previous post about Dependency Injection Container (DiC) configuration</a> I made mention of some more complicated scenarios that you can use to configure your objects.  Not that you need help to make it  more complicated. [...] That's why I think this series of blog posts are good.  They show you how to get started small which is really the only way to get started if you aren't intimately familiar with a DiC.
</blockquote>
<p>
He expands on the previous example by adding another method that lets you set up some testing data (injected into the Test class object) and feed in the data via the "parameters" DI container configuration.
</p>]]></description>
      <pubDate>Fri, 27 Apr 2012 08:20:49 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Kevin Schroeder's Blog: ZF2 Dependency Injection: Managing Configuration - Part 1]]></title>
      <guid>http://www.phpdeveloper.org/news/17868</guid>
      <link>http://www.phpdeveloper.org/news/17868</link>
      <description><![CDATA[<p>
<i>Kevin Schroeder</i> has a new post talking about <a href="http://www.eschrade.com/page/zf2-dependency-injection-managing-configuration/">dependency injection in a Zend Framework v2-based application</a> and managing your configurations.
</p>
<blockquote>
In my <a href="http://www.eschrade.com/page/my-first-stab-at-the-dependency-injection-container-in-zend-framework-2/">previous blog post</a> I showed how you could provide parameters to object that you're pulling from a DiC and have them populated in the resulting object.  As cool as that is, it's not a massive saving as you need to manually inject the parameters into the DiC.  You can often do the same thing by setting up the DiC ahead of time to get the object with those parameters pre-set.
</blockquote>
<p>
He defines a class (Test) and shows how you can replace the DI container example with a ZendDiConfiguration object that contains the config options. He shows how to use this newly created container to access an instance of this "Test" class.
</p>]]></description>
      <pubDate>Thu, 26 Apr 2012 08:56:50 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Mfana Ronald Conco's Blog: RabbitMQ and PHP Part 1]]></title>
      <guid>http://www.phpdeveloper.org/news/17693</guid>
      <link>http://www.phpdeveloper.org/news/17693</link>
      <description><![CDATA[<p>
In <a href="http://www.theprogrammer.co.za/2012/03/14/rabbitmq-and-php-part-1/">this recent blog post</a> <i>Mfana Ronald Conco</i> looks at combining the <a href="http://www.rabbitmq.com/">RabbitMQ</a> messaging service with PHP, complete with all of the setup instructions (and configuration) you'll need.
</p>
<blockquote>
There are times when you have to make certain features of your PHP application to work asynchronously, and there are times when you do not have to - I will explain this better by introducing every day scenarios.
</blockquote>
<p>
His two scenarios have a common thread - the need for asynchronous processing, especially for something that can scale as the user base grows. With the help of <a href="http://www.rabbitmq.com/">RabbitMQ</a> he shows you how to install the MW server, get the php-ampq extension for PHP installed and two sample scripts - one to send a message to the broker, the other to receive and parse the result of a job.
</p>]]></description>
      <pubDate>Mon, 19 Mar 2012 13:48:54 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Weier O'Phinney's Blog: View Layers, Database Abstraction, Configuration, Oh, My!]]></title>
      <guid>http://www.phpdeveloper.org/news/17634</guid>
      <link>http://www.phpdeveloper.org/news/17634</link>
      <description><![CDATA[<p>
<i>Matthew Weier O'Phinney</i> (of the <a href="http://framework.zend.com">Zend Framework</a> project) has <a href="http://mwop.net/blog/zf2-beta3">posted an introduction to some new ZF2 features</a> - view layers, abstraction and configuration updates.
</p>
<blockquote>
Late last week, the Zend Framework community <a href="http://framework.zend.com/zf2/blog/entry/Zend-Framework-2-0-0beta3-Released">2.0.0beta3</a>, the latest iteration of the v2 framework. What have we been busy doing the last couple months? In a nutshell, getting dirty with view layers, database abstraction, and configuration.
</blockquote>
<p>
He covers each topic well, providing code examples for all three - a simple view layer (more <a href="http://packages.zendframework.com/docs/latest/manual/en/zend.view.html#zend.view.quick-start">here</a>), database abstraction functionality (inserting, selecting and TableGateway) and the configuration changes that allow for things like key translation, section inheritance and constant substitution.
</p>]]></description>
      <pubDate>Tue, 06 Mar 2012 13:18:14 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Marcelo Gornstein's Blog: Dependency injection with Xml and Yaml in the Ding container]]></title>
      <guid>http://www.phpdeveloper.org/news/17584</guid>
      <link>http://www.phpdeveloper.org/news/17584</link>
      <description><![CDATA[<p>
In <a href="http://marcelog.github.com/articles/ding_xml_yaml_di_dependency_injection.html">this new post</a> to his blog today <i>Marcelo Gornstein</i> looks at doing some dependency injection in a simple application via XML and YAML configurations and the <a href="http://marcelog.github.com/Ding">Ding</a> dependency injection container.
</p>
<blockquote>
In this <a href="http://marcelog.github.com/articles/ding_component_bean_annotations_di_dependency_injection.html">past article</a> I've discussed the dependency injection features when using annotations. This time, we'll see how to use the xml and yaml drivers to do the same (setter and constructor injection). If you don't know how to configure the xml and yaml drivers, please start by reading <a href="http://marcelog.github.com/articles/ding_example_xml_yaml_annotations_bean_drivers_tutorial_how_to.html">this</a>.
</blockquote>
<p>
He describes the different injection methods available with the container - setter injection, constructor injection and method injection. Example configuration content is included - both the XML and YAML versions.
</p>]]></description>
      <pubDate>Fri, 24 Feb 2012 11:37:04 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Overriding module configuration in ZF2]]></title>
      <guid>http://www.phpdeveloper.org/news/17576</guid>
      <link>http://www.phpdeveloper.org/news/17576</link>
      <description><![CDATA[<p>
In a quick new post to his blog, <i>Rob Allen</i> shows how you can <a href="http://akrabat.com/zend-framework-2/overriding-module-configuration-in-zf2/">override a module's configuration</a> in a Zend Framework 2 application. In his example, he uses the "User" module and overrides two of the "magic paths" it creates.
</p>
<blockquote>
Let's say that you install the ZF-Common's User module. By default, it sets up its routes under the /user path segment. [...] This config section will create the routes /user and through the magic of child_routes, also create /user/login and other required routes. If you don't want /user and would prefer /member, then it's easy enough to change. Just add a new config file to the project's config/autoload folder.
</blockquote>
<p>
Code for the configuration files is included with the update to the "ZendMvcRouterRouteStack" to change the ZF-Common User module's setup to point to "/member" instead of "/user" when routed. You can find out more about the module system in ZF2 <a href="http://packages.zendframework.com/docs/latest/manual/en/zend.module.html">in the latest version of the manual</a>.
</p>]]></description>
      <pubDate>Thu, 23 Feb 2012 09:11:01 -0600</pubDate>
    </item>
  </channel>
</rss>

