<?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 09:55:14 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[NetTuts.com: Let's TDD a Simple App in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/18326</guid>
      <link>http://www.phpdeveloper.org/news/18326</link>
      <description><![CDATA[<p>
On NetTuts.com there's a new tutorial that wants to show you a practical approach to <a href="http://net.tutsplus.com/tutorials/php/lets-tdd-a-simple-app-in-php/">using TDD in your development</a> (test-driven development) through a simple project.
</p>
<blockquote>
In this tutorial, I will present an end-to-end example of a simple application - made strictly with TDD in PHP. I will walk you through each step, one at a time, while explaining the decisions I made in order to get the task done. The example closely follows the rules of TDD: write tests, write code, refactor.
</blockquote>
<p>
They start off by defining what TDD is (three core rules) and how the <a href="http://phpunit.de">PHPUnit</a> tool makes it easy in PHP. They use NetBeans in their examples, but it can be done similarly in any other ID (or command line). They start with some first tests - checking for word wrapping on short string and empty string handling.
</p>]]></description>
      <pubDate>Tue, 07 Aug 2012 10:18:07 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Some ZendView examples]]></title>
      <guid>http://www.phpdeveloper.org/news/17658</guid>
      <link>http://www.phpdeveloper.org/news/17658</link>
      <description><![CDATA[<p>
Following on the heels of the beta 3 release of the Zend Framework 2, <i>Rob Allen</i> has been posting more about its features and what's changed from the version 1 world. In <a href="http://akrabat.com/zend-framework-2/some-zendview-examples/">this new post</a> he looks at some examples of how to use the newly refactored ZendView component.
</p>
<blockquote>
With the release of Beta 3 of Zend Framework, we now have a significantly refactored the ZendView component. One of the changes made is that there is a ViewModel object that is returned from a controller which contains the variables to be used within the view script along with meta information such as the view script to render. [...] However, we can do many more interesting things than this and I've put together a <a href="http://zf2test.akrabat.com/">test application</a> with a controller showing some of the things that can be done.
</blockquote>
<p>
Included in <a href="http://akrabat.com/zend-framework-2/some-zendview-examples/">the post</a> includes two snippets of code from the sample project - how to change the layout in the action and creating another view model at the layout level.
</p>]]></description>
      <pubDate>Mon, 12 Mar 2012 10:52:48 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: Getting Started with PHPUnit]]></title>
      <guid>http://www.phpdeveloper.org/news/17127</guid>
      <link>http://www.phpdeveloper.org/news/17127</link>
      <description><![CDATA[<p>
On PHPMaster.com today, there's a new tutorial helping you get started with on of the most popular unit testing frameworks for PHP, <a href="http://phpunit.de">PHPUnit</a>. In <a href="http://phpmaster.com/getting-started-with-phpunit/">this new article</a> they help you write your first tests, run them and figure out what to do when they fail.
</p>
<blockquote>
Most people know that testing your websites is a good idea, but after some time testing can become tedious. What if a lot of this testing process could be automated so you don't have to go trough every function manually, time after time, to ensure that it still works after updating your code? This is where unit testing comes in, to automate the testing process.
</blockquote>
<p>
She starts with a simple, self-contained test - setting and getting a "name" value from a User class. The tests include an example of a setup/tear down and check that the result of the "talk()" method is correct with an assertEquals.
</p>]]></description>
      <pubDate>Tue, 15 Nov 2011 08:25:49 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Updated tutorial for Zend Framework 2 beta 1]]></title>
      <guid>http://www.phpdeveloper.org/news/17011</guid>
      <link>http://www.phpdeveloper.org/news/17011</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has a quick note for fans (or those just discovering) his "Getting Started with Zend Framework" tutorial - he's posted an <a href="http://akrabat.com/zend-framework/updated-tutorial-for-zend-framework-2-beta-1/">updated version for ZF2 beta 1</a>.
</p>
<blockquote>
<a href="http://akrabat.com/zf2t/">Getting started with Zend Framework 2 (beta1)</a>, creates the same application as my ZF1 tutorial, so it should be very familiar, but this time, it's in the context of Zend Framework 2. As usual, it's a PDF too.
</blockquote>
<p>
<a href="http://akrabat.com/wp-content/uploads/Getting-Started-with-Zend-Framework-2.pdf">This latest version</a> gives you a gentle introduction to the framework and steps you through the creation of a sample music inventory system. It includes code and explanations of how set up modules, controllers, models and views and how to tie them all together. If you're new to the framework and want to get off and running quickly, I'd highly recommend <a href="http://akrabat.com/getting-started-with-zend-framework-2/">his tutorial</a>.
</p>]]></description>
      <pubDate>Wed, 19 Oct 2011 08:33:26 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DZone.com: Practical Google+ Api]]></title>
      <guid>http://www.phpdeveloper.org/news/16885</guid>
      <link>http://www.phpdeveloper.org/news/16885</link>
      <description><![CDATA[<p>
On Dzone.com today <i>Giorgio Sironi</i> has a new post looking at a relatively new release on the social networking scene for developers, the Google+ Api, and some details on <a href="http://css.dzone.com/articles/practical-google-api">how you get get started writing apps using the features it offers</a>.
</p>
<blockquote>
Google+ recently releases to developers the first version of its Api, which focuses on public data about profiles and their activities: status updates, resharings and links. I dived into the Api and wrote a small sample application to get a feel of how easy is to get started, and what can we do with the Api for now. All the code is at the bottom of this post.
</blockquote>
<p>
He goes through the steps you'll need to get set up - registering an application, getting a library to help make the connection (<a href="http://code.google.com/p/google-api-php-client/">here's a PHP one</a>) and configuring it with your credentials. You can get "People" and "Activities" information from the API. He shows some sample output for each - basic user information (nested arrays) and some of his activities (again, nested arrays). He includes the source for his sample application that pulls a user's profile information and lists out their latest (public) activities.
</p>]]></description>
      <pubDate>Wed, 21 Sep 2011 08:27:53 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: Introducing the Yii PHP Framework]]></title>
      <guid>http://www.phpdeveloper.org/news/16259</guid>
      <link>http://www.phpdeveloper.org/news/16259</link>
      <description><![CDATA[<p>
In another in his framework series, <i>Jason Gilmore</i> has a new post on PHPBuilder.com about another popular framework - <a href="http://www.phpbuilder.com/columns/yii-php-framework/Jason_Gilmore04262011.php3">the Yii framework</a>. He introduces you to the framework and shows the creation of a sample, basic site.
</p>
<blockquote>
Frameworks have been the topic du jour here at PHPBuilder.com, with numerous recent articles covering DooPHP and Fat-free. In this latest stop on the framework tour, we'll check out Yii, a relatively new framework (less than three years old) that boasts an impressive array of features and an equally impressive array of users, among them the enormously popular <a href="http://www.stay.com/">Stay.com</a>.
</blockquote>
<p>
He walks you through the install (downloading the latest version) and shows how to use the command-line tool to automatically generate the basic website structure. He continues on showing how to update the main page and template, how to get it connected to a MySQL database and how to use the Gii tool to create basic admin forms for working with the tables.
</p>]]></description>
      <pubDate>Wed, 27 Apr 2011 11:03:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[MySQL Performance Blog: Sample datasets for benchmarking and testing]]></title>
      <guid>http://www.phpdeveloper.org/news/15881</guid>
      <link>http://www.phpdeveloper.org/news/15881</link>
      <description><![CDATA[<p>
In <a href="http://www.mysqlperformanceblog.com/2011/02/01/sample-datasets-for-benchmarking-and-testing/">a recent post</a> to the MySQL Performance Blog, there's a pointer to a few resources you can use if you need some sample datasets to run your application against - everything from airline flight information to energy usage data.
</p>
<blockquote>
Sometimes you just need some data to test and stress things. But randomly generated data is awful - it doesn't have realistic distributions, and it isn't easy to understand whether your results are meaningful and correct. Real or quasi-real data is best. Whether you're looking for a couple of megabytes or many terabytes, the following sources of data might help you benchmark and test under more realistic conditions.
</blockquote>
<p>
The sample data sets vary from <a href="http://forge.mysql.com/wiki/SakilaSampleDB">fake movie information</a> to sample <a href="http://dammit.lt/wikistats/archive/">site traffic data</a> to the <a href="http://aws.amazon.com/publicdatasets/">large data sets</a> that Amazon provides (including the Human Genome and US Census data). Some of <a href="http://www.mysqlperformanceblog.com/2011/02/01/sample-datasets-for-benchmarking-and-testing/#comments">the comments</a> also link to other sources.
</p>]]></description>
      <pubDate>Wed, 09 Feb 2011 13:19:28 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Sjoerd Massen's Blog: Passing the PHP 5.3 ZCE exam]]></title>
      <guid>http://www.phpdeveloper.org/news/15660</guid>
      <link>http://www.phpdeveloper.org/news/15660</link>
      <description><![CDATA[<p>
Another community member has passed the PHP 5.3 Zend Certified Engineer exam (<i>Sjoerd Massen</i>) and has <a href="http://www.sjoerdmaessen.be/2010/12/30/passing-the-php-5-3-zce-exam/">blogged about his experiences</a> both before and during the exam.
</p>
<blockquote>
Today I passed the exam to become a PHP 5.3 ZCE. Like everyone else I had to sign the non-disclosure contract so I can't go into detail about the questions that were asked, I can however tell my impressions of the exam and how prepared for it.
</blockquote>
<p>
His preparations included going over some of the older sample tests and some additional study time on streams. He also mentions the <a href="http://www.phpriot.com/ipad">PhpRiot iPhone/iPad application</a> that helped him prepare as well as a few of the training courses he bought for certain topics. His overall impression of the exam was that it was more difficult, with plenty of open questions made for you to fill in an answer.
</p>]]></description>
      <pubDate>Thu, 30 Dec 2010 14:54:02 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Hannes Magnusson's Blog: Most PHP releases in August!]]></title>
      <guid>http://www.phpdeveloper.org/news/13024</guid>
      <link>http://www.phpdeveloper.org/news/13024</link>
      <description><![CDATA[<p>
<i>Hannes Magnusson</i> has posted <a href="http://bjori.blogspot.com/2009/08/most-php-releases-in-august.html">a few useless statistics</a> about the PHP language including:
</p>
<ul>
<li>Since <a href="http://www.php.net/releases/#v3">PHP 3.0.18 (released October 2000)</a> (no, <a href="http://php.net">php.net</a> doesn't keep <a href="http://php.net/releases">release records</a> before that for some reason) 60 PHP releases have been made.
<li>There have only been 2 releases in 2009 so far
<li>The 89th, 121st, 122nd, 194th, 228th, 241st and the 349th day of the year have had 2 releases each
<li>The 18th week of the year is most likely to have an release, whole 8 releases have been made in that week!
<li>26 PHP releases have been on Thursdays
</ul>
<p>
He also includes a snippet of code that can be used to pull together some of these stats yourself (with only a few errors thrown).
</p>
]]></description>
      <pubDate>Tue, 11 Aug 2009 09:47:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Manfred Weber's Blog: PureMVC and Zend_AMF]]></title>
      <guid>http://www.phpdeveloper.org/news/11393</guid>
      <link>http://www.phpdeveloper.org/news/11393</link>
      <description><![CDATA[<p>
In <a href="http://manfred.dschini.org/2008/11/12/puremvc-and-zend_amf/">this new post</a> to his blog, <i>Manfred Webber</i> shares an example he's put together to combine the <a href="http://puremvc.org/">PureMVC</a> framework with the <A href="http://framework.zend.com/wiki/display/ZFPROP/Zend_Amf+-+Wade+Arnold">Zend_Amf</a> component of the Zend Framework.
</p>
<blockquote>
Since <a href="http://puremvc.org/">PureMVC</a> is my framework of choice I could not resist creating a simple demo connecting PureMVC to the new <a href="http://framework.zend.com/wiki/display/ZFPROP/Zend_Amf+-+Wade+Arnold">Zend_AMF</a>.
</blockquote>
<p>
The sample application just responds to a button click by displaying a message inside of a text container. You can <a href="http://dev.dschini.org/downloads/PureMVC_Zend_AMF.zip">download the source</a> that includes both the Flex and PHP sides.
</p>]]></description>
      <pubDate>Wed, 12 Nov 2008 08:47:28 -0600</pubDate>
    </item>
  </channel>
</rss>
