<?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>Sat, 25 May 2013 23:21:28 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Zend Developer Zone: Improved Test Assets for Zend_Tool Generated Projects in ZF 1.11.4]]></title>
      <guid>http://www.phpdeveloper.org/news/16026</guid>
      <link>http://www.phpdeveloper.org/news/16026</link>
      <description><![CDATA[<p>
On the Zend Developer Zone there's a recent post from <i>Ralph Schindler</i> talking about an update that's been made to the Zend Framework to <a href="http://devzone.zend.com/article/13192-Improved-Test-Assets-for-Zend_Tool-Generated-Projects-in-ZF-1.11.4">improve generated testing stubs</a> for Zend_Tool generated projects starting in ZF versions 1.111.4.
</p>
<blockquote>
At the time of Zend_Tool's initial release, the standard application structure you are familiar with today was just being released as well with Zend_Application. In addition, the testing controllers from this newly standardized application layer, were too, in their infancy. [...] Recently, while Sebastian Bergmann was working on his pet project <a href="https://github.com/sebastianbergmann/php-project-wizard">php-project-wizard</a>, he noticed a few inconsistencies with the stubs that Zend_Tool was generating and decided to send us some recommendations on how to best leverage PHPUnit 3.4+ to test our application's assets.
</blockquote>
<p>
He walks you through a newly generated project and shows (complete with screenshots) some of the updates that have been made like the new single bootstrap.php file, an updated phpunit.xml, a sample IndexController test and a bit of detail on what the generated tests actually look like.
</p>]]></description>
      <pubDate>Thu, 10 Mar 2011 11:10:52 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: ZendTool providers in ZF2 (dev1)]]></title>
      <guid>http://www.phpdeveloper.org/news/15191</guid>
      <link>http://www.phpdeveloper.org/news/15191</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has <a href="http://akrabat.com/zend-framework/zendtool-providers-in-snapshot-1-of-zf2/">a quick post</a> about his conversion of his schema manager over from the Zend Framework version 1 to the upcoming version 2 - a simple task, as it turns out.
</p>
<blockquote>
I've started playing with the development versions of ZF 2.0 and one of the first things I thought I'd do was to port <a href="http://akrabat.com/zend-framework/akrabat_db_schema_manager-zend-framework-database-migrations/">Akrabat_Db_Schema_Manager</a>. It turned out to be reasonably easy. All I needed to do was rework my use of ZF components to use the new ZF2 ones. Whilst I was at it, I also converted it to use namespaces. I also had to reorganise the http://github.com/akrabat/Akrabat library so that I could have ZF1 and ZF2 code in it.
</blockquote>
<p>
He includes "before" and "after" snippets of code to help illustrate the example. He had to change up things just a bit to handle the namespaces because of naming issues (a class named "Abstract" isn't allowed). If you want to see more of the updated code, you can check out <a href="http://github.com/akrabat/Akrabat/blob/master/zf2/Akrabat/Db/Schema/Manager.php">his account on github</a> with the changes.
</p>]]></description>
      <pubDate>Mon, 27 Sep 2010 11:40:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Setting up ZF2's ZendTool side by side with ZF1]]></title>
      <guid>http://www.phpdeveloper.org/news/15154</guid>
      <link>http://www.phpdeveloper.org/news/15154</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has <a href="http://akrabat.com/zend-framework/setting-up-zf2s-zendtool-side-by-side-with-zf1/">a new post</a> today about the upcoming Zend Framework 2 release and how, with a little convincing, you can get ZF1 and ZF2 to play nicely alongside each other with Zend_Tool.
</p>
<blockquote>
If you want to play with the development versions of Zend Framework 2.0, then it's handy to be able to create ZF2 projects using the ZendTool command line tool. Rather unhelpfully, ZF2's ZendTool uses the same ini file (~/.zf.ini) as ZF1's Zend_Tool and the same zf.sh script filename, so you can't just put zf2 on to your path and it'll all just work. I am assuming that you're like me and have production sites using ZF1, so you probably don't want to mess up your current zf.sh usage. This is how I implemented side-by-side ZF cli scripts.
</blockquote>
<p>
His is a three step process that involves the install of a copy of the Zend Framework 2 somewhere on your system, creating a new ini file for it and create a new bash script (called "zf2") that defines the new ini file location as a command line variable.
</p>]]></description>
      <pubDate>Mon, 20 Sep 2010 09:38:01 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Weier O'Phinney's Blog: Creating Zend_Tool Providers]]></title>
      <guid>http://www.phpdeveloper.org/news/14736</guid>
      <link>http://www.phpdeveloper.org/news/14736</link>
      <description><![CDATA[<p>
<i>Matthew Weier O'Phinney</i> has put together <a href="http://weierophinney.net/matthew/archives/242-Creating-Zend_Tool-Providers.html">a new post</a> to his blog today about creating providers in Zend Framework applications (command-line tasks) using the Zend_Tool component.
</p>
<blockquote>
During [a workshop at Symfony Live] workshop, Stefan demonstrated creating Symfony "tasks". These are classes that tie in to the Symfony command-line tooling -- basically allowing you to tie in to the CLI tool in order to create cronjobs, migration scripts, etc. Of course, Zend Framework has an analogue to Symfony tasks in the <a href="http://framework.zend.com/manual/en/zend.tool.html">Zend_Tool</a> component's "providers". In this post, I'll demonstrate how you can create a simple provider that will return the most recent entry from an RSS or Atom feed. 
</blockquote>
<p>
He shows how to create a sample provider - one that grabs data from two RSS feeds and outputs them - complete with code example, adding the provider someplace where Zend_Tool can find it and using the provider through the command-line "zf" tool.
</p>]]></description>
      <pubDate>Fri, 02 Jul 2010 08:58:22 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ZendCasts.com: Reporting with Zend_Tool and Zend_Log]]></title>
      <guid>http://www.phpdeveloper.org/news/14425</guid>
      <link>http://www.phpdeveloper.org/news/14425</link>
      <description><![CDATA[<p>
On the ZendCasts.com site there's a new screencast continuing their look at the Zend_Tool component by <a href="http://www.zendcasts.com/reporting-with-zend_tool-and-zend_log/2010/04/">combining it with Zend_Log</a> to do some easy reporting.
</p>
<blockquote>
This video uses a collection of powerful PHP libraries in order to illustrate how easy it really is to build a command-line tool for reporting against XML files. We start off by logging visitor statistics in the controller into a log file with Zend_Log. Once data has been collected, we're then able to utilize SimpleXML, Zend_Date and the Zend_Tool component to build out a very simple reporting tool.
</blockquote>
<p>
He suggests one possible use is to create a cron job that will regenerate the reports nightly. You can view the screencast in <a href="http://www.zendcasts.com/reporting-with-zend_tool-and-zend_log/2010/04/">the post</a> or download <a href="http://zendcasts.googlecode.com/svn/trunk/zc54-reporting-with-zend-tool-and-zend-log/zc54-reporting-with-zend-tool-and-zend-log.zip">a copy of the project</a> to get started right away.
</p>]]></description>
      <pubDate>Wed, 28 Apr 2010 08:43:23 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ZendCasts.com: Integrating Zend_Tool Into Your Application]]></title>
      <guid>http://www.phpdeveloper.org/news/14371</guid>
      <link>http://www.phpdeveloper.org/news/14371</link>
      <description><![CDATA[<p>
New from ZendCasts.com today there's a screencast posted showing you how to <a href="http://www.zendcasts.com/integrating-zend_tool-into-your-application/2010/04/">integrate Zend_Tool</a> into your application, allowing it to be easily used from the command-line.
</p>
<blockquote>
This screencast should help you setup Zend_Tool in your Zend Framework application. Zend_Tool is a command line entry point into your application. [...] The goal of this video is to start looking at how we can generate our own Manifest and Provider classes so that custom command line tools can be integrated into the Zend Framework application.
</blockquote>
<p>
You can watch the screencast on the <a href="http://www.zendcasts.com/integrating-zend_tool-into-your-application/2010/04/">in-page player</a> and can get a copy of the code <a href="http://zendcasts.googlecode.com/svn/trunk/zc53-integrating-zend-tool-into-your-application/zc53-integrating-zend-tool-into-your-application.zip">from the project's repository</a>.
</p>]]></description>
      <pubDate>Mon, 19 Apr 2010 10:04:57 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Cal Evans' Blog: How I got Zend_Tool working on Windows]]></title>
      <guid>http://www.phpdeveloper.org/news/14081</guid>
      <link>http://www.phpdeveloper.org/news/14081</link>
      <description><![CDATA[<p>
A few version back the Zend Framework introduced a handy component that can help you get a Zend Framework started quickly - <a href="http://framework.zend.com/manual/1.10/en/zend.tool.html">Zend_Tool</a> (and the command line "zf"). It works like a charm on unix-based systems, but has some quirks about it on Windows. To help with the situation, <i>Cal Evans</i> has <a href="http://blog.calevans.com/2010/02/23/how-i-got-zend_tool-working-on-windows/">posted a guide on Zend_Tool</a> and how he got it working on his Windows 7 platform.
</p>
<blockquote>
One of the cool things about Zend Framework is it's cli tool, <a href="http://framework.zend.com/manual/1.10/en/zend.tool.html">Zend_Tool</a>. (zf) When zf works, it's awesome. However, when it breaks, it's a real pain in the butt. [...] Even though it's made great strides, setting up zf is still not seamless. To that end, here is my list of steps needed to setup zf.
</blockquote>
<p>
He's using XAMPP on a Windows 7 machine and has a list of eight steps you'll need to follow to get Zend_Tool playing happily including locating certain directories (your general path, the path to your php.exe) and a few commands to tell the Zend Framework where to correctly deposit its files. If all goes well, you'll get <a href="http://blog.calevans.com/wp-content/uploads/2010/02/zf_001.png">this kind of result</a> (screenshot). He mentions a slight problem, though - defining your own providers and them not being recognized. It can be corrected, though, using <a href="http://framework.zend.com/issues/browse/ZF-8899">this handy tip</a>.
</p>]]></description>
      <pubDate>Wed, 24 Feb 2010 08:40:37 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Raphael Stolt's Blog: Logging to MongoDb and accessing log collections with Zend_Tool]]></title>
      <guid>http://www.phpdeveloper.org/news/13263</guid>
      <link>http://www.phpdeveloper.org/news/13263</link>
      <description><![CDATA[<p>
<i>Raphael Stolt</i> has <a href="http://raphaelstolt.blogspot.com/2009/09/logging-to-mongodb-and-accessing-log.html">written up a new tutorial</a> looking at connecting the <a href="http://www.mongodb.org/display/DOCS/Home">MongoDb</a> document-oriented database with the <a href="http://framework.zend.com/manual/en/zend.log.html">Zend_Log</a> component of the Zend Framework to push log entries into the database.
</p>
<blockquote>
I tinkered with the just recently discovered <a href="http://www.mongodb.org/display/DOCS/Home">MongoDb</a> and hooked it into the <a href="http://framework.zend.com/manual/en/zend.log.html">Zend_Log</a> environment by creating a dedicated Zend_Log_Writer. The following post will therefore present a peek at a prototypesque implementation of this writer and show how the afterwards accumulated log entries can be accessed and filtered with a custom Zend_Tool project provider.
</blockquote>
<p>
He extends the Zend_Log_Writer class to create the interface for the MongoDb and uses the <a href="http://php.net/manual/en/class.mongo.php">mongo interface</a> for PHP to bridge the gap. The application's INI file and Bootstrap are then modified to add in this new functionality and some example usage code is created both with and without the Zend_Tool tool.
</p>]]></description>
      <pubDate>Tue, 22 Sep 2009 09:49:47 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Cal Evans' Blog: Things I learned about Zend Tool]]></title>
      <guid>http://www.phpdeveloper.org/news/12992</guid>
      <link>http://www.phpdeveloper.org/news/12992</link>
      <description><![CDATA[<p>
<i>Cal Evans</i> has <a href="http://blog.calevans.com/2009/08/04/things-i-learned-about-zend-tool/">a new post</a> on his blog today sharing a few things that he's recently learned about the Zend_Tool component of the Zend Framework in his development.
</p>
<blockquote>
The main point is, somewhere between the last time I tried it and this version, they refactored the suck out of it, which is great. It's now a useful tool. How useful remains to be seen but for the moment, I am cautiously optimistic. [...] So I'm posting there here, mainly for me because I'll forget them tomorrow if I don't, and for you if it can save you a few minutes of frustration.
</blockquote>
<p>
He mentions weird happenings with include paths, how the tool's default setting is "production" and the work that the Zend Framework team needs to put into the Zend_Tool documentation to bring it up to the high mark a lot of the rest of the manual has hit.
</p>]]></description>
      <pubDate>Tue, 04 Aug 2009 15:32:54 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Raphael Stolt's Blog: Scaffolding, implementing & using project specific Zend_Tool_Project_Provider]]></title>
      <guid>http://www.phpdeveloper.org/news/12820</guid>
      <link>http://www.phpdeveloper.org/news/12820</link>
      <description><![CDATA[<p>
In his <a href="http://raphaelstolt.blogspot.com/2009/07/scaffolding-implementing-and-using.html">most recent blog post</a> <i>Raphael Stolt</i> looks at using the Zend_Tool component of the Zend Framework to create project specific scaffolding and providers.
</p>
<blockquote>
Working on a project involving several legacy data migration tasks, I got curious what the <a href="http://framework.zend.com/manual/en/zend.tool.project.html">Zend_Tool_Project</a> component of the <a href="http://framework.zend.com/">Zend Framework</a> offers to create project specific providers for the above mentioned tasks or ones of similar nature. Therefore the following post will try to show how these providers can be developed in an iterative manner by scaffolding them via the capabilities of the Zend_Tool_Project ProjectProvider provider, enlived with action/task logic, and be used in the project scope.
</blockquote>
<p>
He includes sample code and commands to build out the "project-provider" and how to make them "pretendable". You can see the results by issuing the "zf" command and seeing how the example methods (import-specials, export-specials) are now integrated as a part of the tool's functionality.
</p>]]></description>
      <pubDate>Tue, 07 Jul 2009 08:24:23 -0500</pubDate>
    </item>
  </channel>
</rss>
