<?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>Sun, 06 Jul 2008 16:48:55 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[SaniSoft Blog: Code sniffs for CakePHP and then some more]]></title>
      <guid>http://www.phpdeveloper.org/news/10546</guid>
      <link>http://www.phpdeveloper.org/news/10546</link>
      <description><![CDATA[<p>
On the SaniSoft blog <i>Tarique Sani</i> has <a href="http://www.sanisoft.com/blog/2008/07/04/code-sniffs-for-cakephp-and-then-some-more/">posted about</a> (and made available for download) some code sniffs for the CakePHP framework. Some problems arose with some of the naming that the framework uses, but with some "tinkering around"...
</p>
<blockquote>
[It became] apparent that I had to have my own set of Cake sniffs to manage this but a separate standard just for this seemed an over kill and the simplicity of code made it kind of fun to add more standards which I liked but were in different set of sniffs.
</blockquote>
<p>
You can grab the whole list of sniffs from <a href="http://www.sanisoft.com/downloads/cakephp_sniffs/">their downloads</a>. They implemented them as a pre-commit hook on their SVN server even so that developers could not violate the coding standards when they submit their code.
</p>]]></description>
      <pubDate>Fri, 04 Jul 2008 09:32:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stefan Priebsch's Blog: Custom Coding Standards with PHP_CodeSniffer]]></title>
      <guid>http://www.phpdeveloper.org/news/10541</guid>
      <link>http://www.phpdeveloper.org/news/10541</link>
      <description><![CDATA[<p>
<i>Stefan Priebsch</i> <a href="http://inside.e-novative.de/archives/124-Custom-Coding-Standards-with-PHP_CodeSniffer.html">recently posted</a> about his struggles with creating a custom coding started with the <a href="http://inside.e-novative.de/exit.php?url_id=1295&entry_id=124">PHP_CodeSniffer</a> package:
</p>
<blockquote>
In CodeSniffer, a coding standard is basically represented by an empty class that extends PHP_CodeSniffer_Standards_CodingStandard. I could not get the CodeSniffer to find my coding standard, though, and found the documentation lacking about where to put it, how to name it, and how to refer to it in the --standard switch.
</blockquote>
<p>
After an email to <a href="http://inside.e-novative.de/exit.php?url_id=1298&entry_id=124">Greg Sherwood</a> (developer of the package</a>) <i>Stefan</i> figured out his issue and has <a href="http://inside.e-novative.de/archives/124-Custom-Coding-Standards-with-PHP_CodeSniffer.html">shared the solution</a> in this post (step by step).
</p>]]></description>
      <pubDate>Thu, 03 Jul 2008 12:02:36 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Jonathan Street's Blog: Windows Live Contacts coming to PEAR]]></title>
      <guid>http://www.phpdeveloper.org/news/10507</guid>
      <link>http://www.phpdeveloper.org/news/10507</link>
      <description><![CDATA[<p>
In <a href="http://torrentialwebdev.com/blog/archives/155-Windows-Live-Contacts-coming-to-PEAR.html">a new entry</a> to his blog, <i>Jonathan Street</i> talks about a new wrapper class he's built up around the <a href="http://torrentialwebdev.com/blog/archives/77-Is-my-MSNM-contacts-script-obsolete.html">Windows Live Contacts</a> service.
</p>
<blockquote>
It was a shame really as it was a really exciting project with Microsoft leading the way in the area. It's been only recently that Google and Yahoo have caught up and released their own APIs for accessing their users data. [...] With the possibility of actually using the code myself creeping up on the horizon I decided to put the time in to write wrappers for PHP. It can be broken down into two components.
</blockquote>
<p>
These two components are the delegated authentication, used to get permission from the user to grab the data, and the actual interface to the Windows Live Contacts data. Both packages have been submitted to <a href="http://pear.php.net">PEAR</a>.
</p>]]></description>
      <pubDate>Mon, 30 Jun 2008 08:41:02 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans' Blog: Friday afternoon toying: eZ Components as phar]]></title>
      <guid>http://www.phpdeveloper.org/news/10505</guid>
      <link>http://www.phpdeveloper.org/news/10505</link>
      <description><![CDATA[<p>
<i>Derick Rethans</i> <a href="http://derickrethans.nl/friday_afternoon_toying_ez_components_as_phar.php>finished off</a> last week by playing with a compression and distribution tool that's going to be built into the core release of PHP 5.3 - <a href="http://php.net/phar">phar</a>. More specifically, he tried it out on the eZ Components framework, trying to make a complete release package.
</p>
<blockquote>
A phar is to PHP what a jar is to Java. I spent a little time to see how easy it would be to make our latest <a href="http://ezcomponents.org/">eZ Components</a> release into a workable phar.
</blockquote>
<p>
He includes the few lines of code to make a package (four in his case) and a one-liner on how to use it in your application. Building the package is as easy as running a PHP command line call. 
</p>
<p>
Others in the community have picked up on <a href="http://derickrethans.nl/friday_afternoon_toying_ez_components_as_phar.php">Derick's post</a> and have checked into phar themselves - <a href="http://sebastian-bergmann.de/archives/799-Phar.html">Sebastian Bergmann</a> and <a href="http://feeds.feedburner.com/~r/StuartHerbert/~3/71761987/">Stuart Herbert</a> (on benchmarking phar).
</p>]]></description>
      <pubDate>Mon, 30 Jun 2008 07:56:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevX.com: Generating Reports and Statistics in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10499</guid>
      <link>http://www.phpdeveloper.org/news/10499</link>
      <description><![CDATA[<p>
The DevX site has posted <a href="http://www.devx.com/webdev/Article/38409">a new tutorial</a> talking about their method for creating reports and generating statistics based off of data from your PHP application.
</p>
<blockquote>
Statistics and reports analyze the change over time of any kind of phenomena.  [...] For the software industry, statistics and reports provide both an ongoing challenge and an ongoing market. At present, programming languages such as PHP and Java come with built-in packages for developing applications around statistical problems.
</blockquote>
<p>
They use two PEAR packages for the statistics - Text_Statistics and XML_Statistics to pull in different kinds of data and extract results from it. The next step is to make a meaningful report out of these numbers - that's where PHPReports comes in. It's a simple tool that makes <a href="http://assets.devx.com/articlefigs/38409_figure02.jpg">simple reports</a> for you that can then be <a href="http://www.devx.com/webdev/Article/38409/0/page/4">styled with CSS</a> however you'd like.
</p>]]></description>
      <pubDate>Fri, 27 Jun 2008 10:26:31 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[IBM developerWorks: Create a productivity package with the Zend Framework V1.5 & Google applications]]></title>
      <guid>http://www.phpdeveloper.org/news/10494</guid>
      <link>http://www.phpdeveloper.org/news/10494</link>
      <description><![CDATA[<p>
On the IBM developerWorks site, there's <a href="http://www.ibm.com/developerworks/edu/os-dw-os-php-zend-google-pt1.html">part one</a> of a new series that combines the latest version of the Zend Framework with the power of Google applications to create a custom web application.
</p>
<blockquote>
In this three-part "Create a productivity package with the Zend Framework V1.5 and Google applications" tutorial series, we will build an application with Zend Framework V1.5 that uses the Google applications. Here in Part 1, we explore the various features of the Zend Framework, outlining the many new features in V1.5 that we will take advantage of to build an example Web site. 
</blockquote>
<p>
This first part introduces the Framework briefly and helps you create some simple controllers and views. They use the Zend_Layout to help with the output and show how to implement view helpers to make components for the pages. There's no connections to Google in this initial part - that'll come later on.
</p>
<p>
You'll need to <a href="https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?lang=en_US&source=dw-os-php-zend-google-pt1&S_TACT=105AGX44&S_CMP=TUT">register/login</a> to get to it. 
</p>]]></description>
      <pubDate>Thu, 26 Jun 2008 12:02:44 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Padraic Brady's Blog: PEAR::Encryption and Zend_Crypt Revisited]]></title>
      <guid>http://www.phpdeveloper.org/news/10429</guid>
      <link>http://www.phpdeveloper.org/news/10429</link>
      <description><![CDATA[<p>
<i>Padraic Brady</i> has <a href="http://blog.astrumfutura.com/archives/380-PEAREncryption-and-Zend_Crypt-Revisited.html">a new post</a> today mentioning both the PEAR::Encryption package and the Zend_Crypt component of the <a href="http://framework.zend.com">Zend Framework</a>.
</p>
<blockquote>
It's been a while since I did some active ZF/PEAR component development. It's been one of those 6 month periods where time to commit was a rarity for a few reasons. So now that I'm back on the road, where to?
</blockquote>
<p>
He sets his sights on the Zend_Crypt component and details some of the encryption methods it contains - HMAC, the Diffie-Hellman Key Agreement Protocol, a hashing wrapper and proposed support for a RSA public key cryptography. He mentions that a lot of this support is already in a beta package for <a href="http://pear.php.net">PEAR</a>.
</p>]]></description>
      <pubDate>Tue, 17 Jun 2008 15:32:50 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Daniel O'Connor's Blog:  How to customise PHP_CodeSniffer]]></title>
      <guid>http://www.phpdeveloper.org/news/10411</guid>
      <link>http://www.phpdeveloper.org/news/10411</link>
      <description><![CDATA[<p>
<i>Daniel O'Connor</i> has <a href="http://clockwerx.blogspot.com/2008/06/how-to-customise-phpcodesniffer.html">posted a quick guide</a> to customizing your installation of the <a href="http://pear.php.net/PHP_CodeSniffer">PHP_CodeSniffer</a> PEAR package to match the coding standard you'd like.
</p>
<blockquote>
<a href="http://pear.php.net/PHP_CodeSniffer">PHP_CodeSniffer</a> is a <a href="http://pear.php.net">PEAR</a> package which detects potential coding problems and enforces your style guide. The default is the PEAR coding standard, but you can easily change that.
</blockquote>
<p>
His method requires the creation of a custom "FooCodingStandard.php" (named whatever you'd like, of course) that contains a class/method defining the "sniffs" you'd like to use for your standard. Use "pfm" to make it into a package and install it to your system - you'll be all set.
</p>]]></description>
      <pubDate>Fri, 13 Jun 2008 11:11:36 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Getting Started with OpenID and PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10347</guid>
      <link>http://www.phpdeveloper.org/news/10347</link>
      <description><![CDATA[<p>
<i>Vikram Vaswani</i> has <a href="http://devzone.zend.com/article/3581-Getting-Started-with-OpenID-and-PHP">a new tutorial</a> posted to the Zend Developer Zone today about integrating PHP with an OpenID system via a few helpful packages.
</p>
<blockquote>
OpenID, a free, open-source framework for "single sign-on" across different Web sites and applications. The even better news? There already exist a bunch of PHP widgets that allow developers to easily integrate OpenID into a PHP application, and this article is going to show you how to use them. So what are you waiting for? Flip the page, and let's get going!
</blockquote>
<p>
For those not familiar with the authentication method, he <a href="http://devzone.zend.com/article/3581-Getting-Started-with-OpenID-and-PHP">defines OpenID</a> and shows how it can help with the "too many passwords, too many accounts" problem many users face. He uses the <a href="http://www.openidenabled.com/">PHP OpenID Library</a> and the <a href="http://pear.php.net/pepr/pepr-proposal-show.php?id=500">Authentication::OpenID_Consumer PEAR package</a> (as well as several other PEAR packages to help with the connections and message formatting). He builds two simple forms to use the service - one to authenticate a user and another to create a new account.
</p>]]></description>
      <pubDate>Thu, 05 Jun 2008 10:27:20 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ken Guest's Blog: Validation in Depth - a retort to using just regular expressions]]></title>
      <guid>http://www.phpdeveloper.org/news/10273</guid>
      <link>http://www.phpdeveloper.org/news/10273</link>
      <description><![CDATA[<p>
<i>Ken Guest</i>, in a response to <a href="http://www.phpguru.org/article/300">another post</a> from a different blogger, has posted some of <a href="http://blogs.linux.ie/kenguest/2008/05/26/validation-in-depth-a-retort-to-using-just-regular-expressions/">his own</a> validation replacements for the regular expression method the other blogger chose.
</p>
<blockquote>
I've noticed that <a href="http://www.phpguru.org/">Richard Heyes</a>, who professes himself to be a php guru, deleted my comment on <a href="http://www.phpguru.org/article/300">his "Some common regular expressions" posting</a> which simply pointed out his expressions didn't quite do the job and suggested a few <A href="http://pear.php.net/">PEAR packages</a> that should be used instead of the expressions that he proffered
</blockquote>
<p>
His examples have the benefit of what he calls "defense in depth" - the functionality to catch a bit more than just a regular expression can alone. His examples include <a href="http://pear.php.net/package/Validate">PEAR_Validate</a> for email addresses, <a href="http://pear.php.net/package/Net_CheckIP2">Net_CheckIP2</a> for IP addresses and the <a href="http://pear.php.net/package/Validate_UK/">Validate_UK</a> package for the sort code and telephone numbers.
</p>]]></description>
      <pubDate>Tue, 27 May 2008 07:58:54 -0500</pubDate>
    </item>
  </channel>
</rss>
