<?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>Thu, 22 May 2008 15:11:25 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Eirik Hoem's Blog: Populate PDF templates with PHP / FPDF / FPDI]]></title>
      <guid>http://www.phpdeveloper.org/news/10141</guid>
      <link>http://www.phpdeveloper.org/news/10141</link>
      <description><![CDATA[<p>
<i>Eirik Hoem</i> recently <a href="http://blog.eirikhoem.net/index.php/2008/04/28/populate-pdf-templates-with-php-fpdf-fpdi/">pointed out</a> two libraries that can be used in PHP to generate PDF files dynamically - <a href="http://www.fpdf.org/">FPDF</a> and <a href="http://www.setasign.de/products/pdf-php-solutions/fpdi/">FPDI</a>.
</p>
<blockquote>
Ever wanted to generated PDF documents on the fly with PHP? Perhaps populate a standard contract with a customers name and address? FPDF and FPDI are two neat libraries which greatly helps when working with PDF files.
</blockquote>
<p>
FPDF handles most of the work of creating and working with the PDF files while FPDI works together with it to pull in existing PDF files so FPDF can modify them. He links to <a href="http://blog.eirikhoem.net/wp-content/uploads/2008/04/pdf_sample.zip">some sample code</a> you can try out once you've installed the two libraries.
</p>]]></description>
      <pubDate>Thu, 08 May 2008 11:11:55 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stefan Priebsch's Blog: PHPUnit test and Code Coverage Statistics with phing]]></title>
      <guid>http://www.phpdeveloper.org/news/10017</guid>
      <link>http://www.phpdeveloper.org/news/10017</link>
      <description><![CDATA[<p>
<i>Stefan Priebsch</i> has posted <a href="http://inside.e-novative.de/archives/114-PHPUnit-test-and-Code-Coverage-Statistics-with-phing.html">an example</a> of how he uses PHPUnit "manually" to reduce the overhead (and added complexity) of calling <a href="http://phing.info/trac/">phing</a>.
</p>
<blockquote>
Instead of instantiating PHPUnit from phing, I use the command line interface to call PHPUnit. This decouples phing and PHPUnit, which should cause less problems with version updates in the future. To configure PHPUnit, phing creates a temporary XML configuration file which is deleted after PHPUnit has finished.
</blockquote>
<p>
The source is <a href="http://inside.e-novative.de/archives/114-PHPUnit-test-and-Code-Coverage-Statistics-with-phing.html">included in the post</a> - it manually builds the XML file needed for phing to do its job.
</p>]]></description>
      <pubDate>Tue, 22 Apr 2008 14:15:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer Tutorials Blog: RSS feeds in PHP: 3 simple steps to PHP RSS generation]]></title>
      <guid>http://www.phpdeveloper.org/news/9985</guid>
      <link>http://www.phpdeveloper.org/news/9985</link>
      <description><![CDATA[<p>
On the Developer Tutorials blog today, there's <a href="http://www.developertutorials.com/blog/php/rss-feeds-in-php-3-simple-steps-to-php-rss-generation-121/">a new post</a> talking about the "three easy steps" to making an RSS feed for your blog:
</p>
<blockquote>
Adding an RSS feed to your site is quick and painless, and can be done with pure PHP (and some kind of data source). After the jump, 3 simple steps to building an RSS feed in php.
</blockquote>
<p>
The steps are pretty simple - figure out what content you want to serve, set up the basic RSS XML structure, and loop through your data to push it in to the template and echoed out. Some simple example code is included.
</p>]]></description>
      <pubDate>Thu, 17 Apr 2008 08:47:50 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: Generating Code from Tests]]></title>
      <guid>http://www.phpdeveloper.org/news/9788</guid>
      <link>http://www.phpdeveloper.org/news/9788</link>
      <description><![CDATA[<p>
<i>Sebastian Bergmann</i> has <a href="http://sebastian-bergmann.de/archives/756-Generating-Code-from-Tests.html">posted a quick example</a> of how to use the <a href="http://www.phpunit.de/">PHPUnit</a> unit testing suite for PHP to create code for you (assuming you're using the <a href="http://www.phpunit.de/pocket_guide/3.3/en/test-first-programming.html">test first</a> method of development.
</p>
<p>
His example builds the class off of a set of test for a "BowlingGame" that ends up with roll() and score() methods based off of the naming conventions used in the test:
</p>
<blockquote>
Following the convention that the tests for a class BowlingGame (see below) are written in a class named BowlingGameTest (see above), the test case class' source is searched for variables that reference objects of the BowlingGame class and analyzing what methods are called on these objects.
</blockquote>]]></description>
      <pubDate>Thu, 13 Mar 2008 08:43:50 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Pieter's Blog: Zend_Form with XML Tutorial]]></title>
      <guid>http://www.phpdeveloper.org/news/9769</guid>
      <link>http://www.phpdeveloper.org/news/9769</link>
      <description><![CDATA[<p>
<i>Pieter</i> has blogged today with <a href="http://blog.snakehit.be/2008/03/09/zend_form-with-xml-tutorial/">an example</a> of using an XML configuration file together with the Zend_Form component of the Zend Framework to create a simple form - in his example, a login form.
</p>
<blockquote>
During my interneship if been busy with Zend_Form and XML and now I like to share it with you. So here is a very easy, complete example that shows it in action. Let's make a small login form from XML with Zend_Form.
</blockquote>
<p>
The Zend Framework has the functionality for this already built in - a call to create a Zend_Config_Xml object passing in the XML file's name is all it takes. He includes <a href="http://snakehit.be/Pictures/login.xml">a sample XML file</a> that shows the setup of the form as well as how to perform some of the validation techniques (like checking length and pattern matching).
</p>]]></description>
      <pubDate>Mon, 10 Mar 2008 12:57:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer Tutorials: Easy PDF Generation in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9736</guid>
      <link>http://www.phpdeveloper.org/news/9736</link>
      <description><![CDATA[<p>
On the Developer Tutorials website, they're posted <A href="http://www.developertutorials.com/tutorials/php/easy-pdf-generation-in-php-8-02-27/page1.html">this new article</a> talking about a simple way to create PDFs with PHP:
</p>
<blockquote>
[PDFs] also serve as a perfect way of allowing your users to download or email a page from your website. In this tutorial, I'll show you how to generate PDF files in pure PHP and distribute your content in a single, consistent format.
</blockquote>
<p>
They look at the <a href="http://www.developertutorials.com/tutorials/php/easy-pdf-generation-in-php-8-02-27/page2.html">why</a> behind creating PDFs in PHP, what <a href="http://www.developertutorials.com/tutorials/php/easy-pdf-generation-in-php-8-02-27/page3.html">options</a> you have and <a href="http://www.developertutorials.com/tutorials/php/easy-pdf-generation-in-php-8-02-27/page4.html">an example</a> creating a basic "hello world" PDF.
</p>]]></description>
      <pubDate>Tue, 04 Mar 2008 09:57:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Builder.com.au: Generating PDF Files with PHP and FPDF]]></title>
      <guid>http://www.phpdeveloper.org/news/9665</guid>
      <link>http://www.phpdeveloper.org/news/9665</link>
      <description><![CDATA[<p>
The Builder.com.au website has a <a href="http://www.builderau.com.au/program/php/soa/Generating-PDF-files-with-PHP-and-FPDF/0,339028448,339286044,00.htm">new tutorial</a> posted today that looks at the dynamic creation of a web standard (PDF files) inside of a PHP script.
</p>
<blockquote>
An alternative way of generating PDF files with PHP is using FPDF, a free PHP class containing a number of functions for creating and manipulating PDFs. The key word here is free. You are free to download and use this class or customise it to fit your needs. In addition to being free, it's also simpler to use than PDFlib. The PDFlib needs to be installed as an extension in your PHP package, whereas FPDF can just be included in your PHP script and it's ready to use
</blockquote>
<p>
They show how to use the <a href="http://www.fpdf.org/">FPDF</a> library to make some simple files - setting the title, author, adding images and text, etc. There's even a little bit there at the end about adding new pages to make more complex documents simple.
</p>]]></description>
      <pubDate>Wed, 20 Feb 2008 08:42:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Generating and Validating Web Forms With PEAR HTML_QuickForm (part 2)]]></title>
      <guid>http://www.phpdeveloper.org/news/9464</guid>
      <link>http://www.phpdeveloper.org/news/9464</link>
      <description><![CDATA[<p>
The Zend Developer Zone has <a href="http://devzone.zend.com/article/2996-Generating-and-Validating-Web-Forms-With-PEAR-HTML_QuickForm-part-2">released part two</a> of a series (here's <a href="http://www.phpdeveloper.org/news/9023">part one</a> posted back in November) looking at making forms for your website with the help of the PEAR <a href="http://pear.php.net/package/HTML_QuickForm">HTML_QuickForm</a> class.
</p>
<blockquote>
I'll be discussing some of the package's non-standard form elements, teaching you how to combine elements into groups, showing you how to apply templates to control a form's appearance, and guiding you through the process of writing and registering your own custom validation rules.
</blockquote>
<p>
There's plenty of sample code and screenshots to go around in <a href="http://devzone.zend.com/article/2996-Generating-and-Validating-Web-Forms-With-PEAR-HTML_QuickForm-part-2">this second part</a> including examples of form auto-completion, multi-select elements and and example of its integration with Smarty.
</p>]]></description>
      <pubDate>Tue, 22 Jan 2008 07:57:00 -0600</pubDate>
    </item>
  </channel>
</rss>
