<?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, 19 Jun 2013 10:20:30 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Robert Basic's Blog: Using the new autoloaders from Zend Framework 1.12]]></title>
      <guid>http://www.phpdeveloper.org/news/18126</guid>
      <link>http://www.phpdeveloper.org/news/18126</link>
      <description><![CDATA[<p>
<i>Robert Basic</i> has a new post today about the <a href="http://robertbasic.com/blog/using-the-new-autoloaders-from-zend-framework-1-12">autoloaders in Zend Framework 1.12</a> and how to use them to create a classmap for use in your application.
</p>
<blockquote>
The latest, and last, release of the Zend Framework 1.x series is just around the corner as <a href="http://zend-framework-community.634137.n4.nabble.com/Zend-Framework-1-12-0RC1-Released-td4655323.html">ZF 1.12.0RC1 was announced this week</a>. As I still have projects running ZF1 I thought about giving the most interesting new feature (for me) a spin - the new autoloaders which are backported from ZF2. I decided using the classmap autoloader as the main autoloader, and the good ol' standard autoloader as the fallback autoloader. 
</blockquote>
<p>
He includes the changes to the Front Controller (index.php) to have it know about these new autoloaders and has a command that will go through your code any pull out any <a href="http://php.net/require_once">require_once</a> statements out and let the autoloader handle it instead.
</p>]]></description>
      <pubDate>Fri, 22 Jun 2012 08:17:05 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stefan Koopmanschap's Blog: Using custom namespaces with (C/S)ilex and Composer]]></title>
      <guid>http://www.phpdeveloper.org/news/17810</guid>
      <link>http://www.phpdeveloper.org/news/17810</link>
      <description><![CDATA[<p>
<i>Stefan Koopmanschap</i> has a quick new post to his blog with <a href="http://www.leftontheweb.com/message/Using_custom_namespaces_with_CSilex_and_Composer">a handy tip for Composer and Cilex/Silex users</a> when dealing with custom namespaces.
</p>
<blockquote>
For a new proof of concept application I'm building, I need both a simple web interface as well as some commandline tools. I decided to use Silex for the web interface and Cilex for the CLI tools, and opted for using Composer for installing these dependencies into my project. I ran into some issues with the custom project libraries I was building for this application however. Registering my custom namespace into Silex and Cilex didn't result in the classes being loaded for some reason. Composer helped me out though.
</blockquote>
<p>
His solution involves letting Composer be the default autoloader for the application via an "autoloader" configuration option in the "composer.json"  (that can also take a classmap option if you're not PSR-0 compliant, <a href="http://getcomposer.org/doc/04-schema.md#autoload">see here</a>).
</p>]]></description>
      <pubDate>Thu, 12 Apr 2012 12:22:47 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Using ZendLoaderAutoloader]]></title>
      <guid>http://www.phpdeveloper.org/news/17531</guid>
      <link>http://www.phpdeveloper.org/news/17531</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Rob Allen</i> introduces you to the autoloader that comes with the Zend Framework 2 and shows <a href="http://akrabat.com/zend-framework-2/using-zendloaderautoloader/">how to use it</a> to load your own classes.
</p>
<blockquote>
Autoloading is the process in PHP whereby the system attempts to load a class when it is first encountered (via new or via class_exists) if it hasn't already been loaded via a require or include. Autoload works by looking for a method called __autoload or walking through any method registered with spl_autoload_register. Zend Framework 2 provides the ZendLoaderAutoloader component for autoloading of Zend Framework and your own classes.
</blockquote>
<p>
The <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md">PSR-0</a>-standard tool allows you to load files, set up class mapping and allows for multiple autoloading methods to work side-by-side. He shows how to use the standard autoloading functionality to define paths to locate files (with prefixes and namespaces) in both a constructor-based setup and a more programatic approach. He also shows how to use the ClassMapAutoloader to load from a mapping of class name to class file. Wrapping it up, he shows how to combine the two methods into a single ZendLoaderAutoloaderFactory instance.
</p>]]></description>
      <pubDate>Mon, 13 Feb 2012 09:54:43 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Liip Blog: Integrating Magento into Symfony2]]></title>
      <guid>http://www.phpdeveloper.org/news/16895</guid>
      <link>http://www.phpdeveloper.org/news/16895</link>
      <description><![CDATA[<p>
On the Liip blog today, there's a quick post about <a href="http://blog.liip.ch/archive/2011/09/21/integrating-magento-into-symfony2.html">integrating Symfony2 and Magento</a>, the popular PHP-based ecommerce platform.
</p>
<blockquote>
So last week <a href="https://github.com/liip/LiipMagentoBundle/contributors">four developers</a> sat together on a regular Hackday to see what's needed to hook up Magento into Symfony. To make this short the outcome is a <a href="https://github.com/liip/LiipMagentoBundle">Magento bundle for Symfony2</a>. When we met in the morning we weren't even sure what exactly to try out but soon agreed on implementing a Symfony authentication which uses the Magento customer database.
</blockquote>
<p>
The post talks about some of the issues they came across in their work - mainly a problem with incompatible autoloaders. There were also problems getting the logins to play nicely with each other and each product's session handling. You can find the current results from their hacking in <a href="https://github.com/liip/LiipMagentoBundle">this bundle</a> posted to github.
</p>]]></description>
      <pubDate>Thu, 22 Sep 2011 12:47:56 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Weier O'Phinney's Blog: Backported ZF2 Autoloaders]]></title>
      <guid>http://www.phpdeveloper.org/news/16325</guid>
      <link>http://www.phpdeveloper.org/news/16325</link>
      <description><![CDATA[<p>
In a new post <i>Matthew Weier O'Phinney</i> <a href="http://weierophinney.net/matthew/archives/262-Backported-ZF2-Autoloaders.html">talks about autoloaders</a> in the Zend Framework and the changes they've made from ZF1 to ZF2. He also includes a link to a package you can try out if you'd like to backport the ZF2 autoloaders to your ZF1 application.
</p>
<blockquote>
Interestingly, I've had quite some number of folks ask if they can use the new autoloaders in their Zend Framework 1 development. The short answer is "yes," assuming you're running PHP 5.3 already. If not, however, until today, the answer has been "no."
I've recently backported the ZF2 autoloaders to PHP 5.2, and <a href="https://github.com/weierophinney/zf-examples/tree/feature%2Fzf1-classmap/zf1-classmap">posted them on GitHub</a> [<a href="http://weierophinney.net/matthew/uploads/zf1-classmap.tgz">tarball here</a>].
</blockquote>
<p>
His autoloader backport scripts include a class map generation tool, a PSR-0 compliant autoloader, a class map autoloader and an autoloader factory for loading multple strategies at once. He also includes a sample of how to use it with a bit of the output it might give you for your project.
</p>]]></description>
      <pubDate>Wed, 11 May 2011 09:33:20 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Volker Dusch's Blog: Autoloading for legacy, non-framework projects]]></title>
      <guid>http://www.phpdeveloper.org/news/16021</guid>
      <link>http://www.phpdeveloper.org/news/16021</link>
      <description><![CDATA[<p>
In his latest post <i>Volker</i> looks at something he sees more and more projected implementing as a simple way to not have to manually define paths all over their applications - creating autoloaders. His post shows how to <a href="http://edorian.posterous.com/autoloading-for-legacy-non-framework-projects">create one such autoloader</a> for a legacy, non-framework type of project.
</p>
<blockquote>
The first argument usually is "ease of use". It can get pretty annoying when you have to clutter your whole application with "require this file here and that file over there" statements. [...] The main motivation for autoloading usually is "getting rid of all the require statements and the problems resulting from forgetting one at one point where you don't notice it because on your machine it worked.
</blockquote>
<p>
In some projects you're lucky enough to have class name to file name mapping to make it simpler. His project didn't have that, so he needed a way around it. His answer came in the <a href="https://github.com/theseer/Autoload">PHP Autoload Builder</a> tool - a handy command line script that works through your code and builds an index of sorts you can refer to for the correct class-to-file map.
</p>]]></description>
      <pubDate>Wed, 09 Mar 2011 12:02:06 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Rafael Dohms' Blog: SPL: a hidden gem]]></title>
      <guid>http://www.phpdeveloper.org/news/12657</guid>
      <link>http://www.phpdeveloper.org/news/12657</link>
      <description><![CDATA[<p>
Earlier this month <i>Rafael Dohms</i> posted <a href="http://www.rafaeldohms.com.br/2009/06/03/spl-a-hidden-gem/en/">a new article</a> to his blog looking at a feature of PHP it seems not every developer knows about - the Standard PHP Library (or SPL).
</p>
<blockquote>
By a show of hands, how many people here ever heard of SPL? How many already used it? Chances are most of you didn't raise your hands, and some might even have a confused look on their faces. Indeed that is the sad reality when it comes to SPL, but What is SPL?
</blockquote>
<p>
He goes on to look at a few different things the SPL has to offer like autoloader overloading, iterators (with an included list of 21 of them) and the SplFixedArray that can be used to help speed up array access and manipulation.
</p>]]></description>
      <pubDate>Wed, 10 Jun 2009 11:19:06 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ServerGrove Blog: Configuring Symfony to use Zend Framework 1.8.0 new Autoloader]]></title>
      <guid>http://www.phpdeveloper.org/news/12444</guid>
      <link>http://www.phpdeveloper.org/news/12444</link>
      <description><![CDATA[<p>
<a href="http://blog.servergrove.com/2009/05/01/configuring-symfony-to-use-zend-framework-180-new-autoloader/">This new post</a> on the ServerGrove blog today looks at using the updated Zend_Loader component of the <a href="http://framework.zend.com">Zend Framework</a> from inside a Symfony application.
</p>
<blockquote>
Zend Framework 1.8.0 <a href="http://devzone.zend.com/article/4524-Zend-Framework-1.8.0-Released">was released yesterday</a> and if you are using it within a Symfony project, you need to know something: Starting on 1.8.0 Zend_Load::autoload() is deprecated and will be removed on 2.0.0.
</blockquote>
<p>
With the updated loader, if you'd like to use it inside Symfony, you need to change the function you're using to autoload via a call to <a href="http://php.net/spl_autoload_register">spl_autoload_register</a>. Point this at the Zend Framework code and you should be good to go.
</p>]]></description>
      <pubDate>Fri, 01 May 2009 15:56:37 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPRiot.com: Zend Framework 101: Zend_Loader]]></title>
      <guid>http://www.phpdeveloper.org/news/12119</guid>
      <link>http://www.phpdeveloper.org/news/12119</link>
      <description><![CDATA[<p>
PHPRiot has started up a new series looking to introduce you to the Zend Framework one piece at a time. In this <a href="http://www.phpriot.com/articles/zend-loader">first article</a> n the series <i>Quentin Zervaas</i> looks at one of the first components any Zend Framework-based application hits - Zend_Loader.
</p>
<blockquote>
In this article I will introduce you to Zend_Loader, a Zend Framework class used to automatically load other classes. Typically you would use include_once() or require_once() when you want to load a class but using Zend_Loader you don't have to.
</blockquote>
<p>
He talks some about how it works, how to enable an disable it and how you can replace it with your own custom autoloader if you want. He gives an example of doing this, overriding the loader with a call to registerAutoload to register his autoloader class.
</p>]]></description>
      <pubDate>Thu, 12 Mar 2009 08:44:13 -0500</pubDate>
    </item>
  </channel>
</rss>
