<?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>Fri, 08 Aug 2008 16:20:00 -0500</pubDate>
    <ttl>30</ttl>
    <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[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[Make Me Pulse Blog: PHP6, Unicode and TextIterator features]]></title>
      <guid>http://www.phpdeveloper.org/news/9796</guid>
      <link>http://www.phpdeveloper.org/news/9796</link>
      <description><![CDATA[<p>
On the Make Me Pulse blog, there's <a href="http://blog.makemepulse.com/2008/03/13/php6-unicode-and-textiterator-features/">a look at</a> PHP6's support of Unicode in the SPL (Standard PHP Library) TextIterator handler.
</p>
<blockquote>
I've just install the last version of <a href="http://snaps.php.net/">PHP6 dev</a> and I've decided to test the famous new feature, the PHP Unicode Support. I will not explain new things about PHP6 or Unicode or TextIterator, it's just my discoveries test on this features.
</blockquote>
<p>
He <a href="http://blog.makemepulse.com/2008/03/13/php6-unicode-and-textiterator-features/">steps through</a> the process he followed - enabling Unicode support, testing various output methods (including just an echo and using the TextIterator) as well as some of the manipulation methods (next/first/current) that can be used to get certain characters out of a string.
</p>]]></description>
      <pubDate>Fri, 14 Mar 2008 09:32:34 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Paul Jones' Blog: Line Length, Volume, and Density]]></title>
      <guid>http://www.phpdeveloper.org/news/9775</guid>
      <link>http://www.phpdeveloper.org/news/9775</link>
      <description><![CDATA[<p>
In a <a href="http://paul-m-jones.com/?p=276">new blog post</a>, <i>Paul Jones</i> looks at three aspects of coding style - line length, volume and density - and how different people have different assumptions as to what's "right".
</p>
<blockquote>
When it comes to coding style, there are are various ideas about how you should write the individual lines of code. The usual argument is about "how long should a line of code be"? There's more to it than that, though. Developers should also take into account line volume ("number of lines") and line density ("instructions per line").
</blockquote>
<p>
He mentions the <A href="http://pear.php.net/manual/en/standards.php">PEAR style guide</a> when talking about line length, reading code like and sentence in line volume/density and how the "shorter is better" concept can be pushed to its extreme limits taking code into the unreadable zone.
</p>]]></description>
      <pubDate>Tue, 11 Mar 2008 09:33:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Raphael Stolt's Blog: Zend Framework coding standards on one page]]></title>
      <guid>http://www.phpdeveloper.org/news/9610</guid>
      <link>http://www.phpdeveloper.org/news/9610</link>
      <description><![CDATA[<p>
<i>Raphael Stolt</i>, in working on his component for the Zend Framework (based on the <a href="http://pear.php.net/package/PHP_CodeSniffer">PHP_CodeSniffer</a> PEAR package), pulled together all of the information Zend provides about their coding standards into one place.
</p>
<blockquote>
Before jumping into the development of a Zend Framework coding standard for the <a href="http://pear.php.net/package/PHP_CodeSniffer">PHP_CodeSniffer</a> Pear package, I spent some time revisiting and compiling the available Zend Framework <a href="http://framework.zend.com/manual/en/coding-standard.html">coding standards</a> into a handy one-paged Pdf document.
</blockquote>
<p>
You can <a href="http://raphael.stolt.googlepages.com/ZendFramework_coding_standards_on_on.pdf">download the file here</a> or, if you want something a bit more "spread out", check out <a href="http://framework.zend.com/manual/en/coding-standard.html">the coding standards</a> on the Zend Framework website.
</p>]]></description>
      <pubDate>Tue, 12 Feb 2008 07:59:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Make Me Pulse Blog: Tips : RecursiveArrayIterator on mulitdimensional Array]]></title>
      <guid>http://www.phpdeveloper.org/news/9605</guid>
      <link>http://www.phpdeveloper.org/news/9605</link>
      <description><![CDATA[<p>
On the Make Me Pulse blog, <i>Antoine Ughetto</i> shares a method he came up with to recurse through an array using the SPL method - the RecursiveArrayIterator method.
</p>
<blockquote>
When we have a multidimensional array we have to make some recursives function to parse it. A simple way to get the keys and the value of this type of array is to use the <a href="http://fr2.php.net/manual/fr/ref.spl.php">SPL library of PHP</a>.
</blockquote>
<p>
A <a href="http://blog.makemepulse.com/2008/02/11/tips-recursivearrayiterator-on-mulitdimensional-array/">code example</a> is included, parsing through a recursive array to output each of the key/value pairs it contains (and using only about five or six lines of code to do it).
</p>]]></description>
      <pubDate>Mon, 11 Feb 2008 13:07:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP-Coding-Practices.com: PHP Code-Beautifier Tool]]></title>
      <guid>http://www.phpdeveloper.org/news/7762</guid>
      <link>http://www.phpdeveloper.org/news/7762</link>
      <description><![CDATA[<p>
On PHP-Coding-Practices.com, there's a <a href="http://php-coding-practices.com/beautifying-your-code/php-code-beautifier-tool/">new post</a> pointing out a code beautification tool <i>Tim</i> dug up the (aptly named) "<a href="http://www.tote-taste.de/X-Project/beautify/">PHP Code Beautifier</a>".
</p>
<blockquote>
Today I discovered a good tool for beautifying existing PHP Code. It works via a web interface. You can either upload a script or directly input it. The code is beautified according to the PHP PEAR Standard Requirements. It does not change or debug your code in any way.
</blockquote>
<p>
He lists the things it can do for you and your code including setting indents to four spaces, uses the "one true brace" style for function definitions, and removes spaces between things like function calls, parenthesis and beginning of argument list.
</p>
<p>
You can check out the application and get information on more of the updates it will make on <a href="http://www.tote-taste.de/X-Project/beautify/">the project's homepage</a>.
</p>]]></description>
      <pubDate>Thu, 03 May 2007 07:54:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Edin Kadribasic's Blog: PHP 5.2.2 RC2 Windows build available]]></title>
      <guid>http://www.phpdeveloper.org/news/7721</guid>
      <link>http://www.phpdeveloper.org/news/7721</link>
      <description><![CDATA[<p>
<i>Edin Kadribasic</i> has <a href="http://edin.dk/archives/36-PHP-5.2.2-RC2-Windows-build-available.html">announced the release</a> today of multiple versions of the Windows installations for the latest PHP - version 5.2.2 RC2.
</p>
<p>
The downloads are broken up into two categories:<br/>
<b>Standard build</b>
<ul>
<li><a href="http://downloads.php.net/edink/php-5.2.2RC2-Win32.zip">php-5.2.2RC2-Win32.zip</a>
<li><a href="http://downloads.php.net/edink/php-5.2.2RC2-win32-installer.msi">php-5.2.2RC2-win32-installer.msi</a>
<li><a href="http://downloads.php.net/edink/pecl-5.2.2RC2-Win32.zip">pecl-5.2.2RC2-Win32.zip</a>
<li><a href="http://downloads.php.net/edink/php-debug-pack-5.2.2RC2-Win32.zip">php-debug-pack-5.2.2RC2-Win32.zip</a>
</ul>
<b>FastCGI build</b>
<ul>
<li><a href="http://downloads.php.net/edink/php-5.2.2RC2-nts-Win32.zip">php-5.2.2RC2-nts-Win32.zip</a>
<li><a href="http://downloads.php.net/edink/pecl-5.2.2RC2-nts-Win32.zip">pecl-5.2.2RC2-nts-Win32.zip</a>
<li><a href="http://downloads.php.net/edink/php-debug-pack-5.2.2RC2-nts-Win32.zip">php-debug-pack-5.2.2RC2-nts-Win32.zip</a>
</ul>
</p>
<p>
All other unix-based developers can download their verions from <A href="http://qa.php.net/rc.php">the official PHP QA website</a> for testing.
</p>]]></description>
      <pubDate>Fri, 27 Apr 2007 09:13:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP-GTK Community Site: Playing with GtkStyle]]></title>
      <guid>http://www.phpdeveloper.org/news/7471</guid>
      <link>http://www.phpdeveloper.org/news/7471</link>
      <description><![CDATA[<p>
<i>Marc Quinton</i> has posted <a href="http://www.php-gtk.eu/node/150">a pointer</a> on the PHP-GTK Community Site about <a href="http://php.classes.free.fr/wiki/index.php5?title=Gtk/StyleButtons">his article</a> on how to use the GtkStyle Events inside of a PHP-GTK application.
</p>
<blockquote>
Here you will find how GtkWidget standards buttons are built and can be drawn. Here we use ready to use methods from GtkStyle class to draw buttons, checkboxes and handles. You can use theses classes to override standard buttons features. It's also useful to understand how GtkWidgets work. This class study started when I was trying to display a handle and did not found any one.
</blockquote>
<p>
It's less of a tutorial and <a href="http://php.classes.free.fr/wiki/index.php5?title=Gtk/StyleButtons">more of a code dump</a>, but it gives you a good idea of how all of the functionality can work together.
</p>]]></description>
      <pubDate>Wed, 21 Mar 2007 10:36:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Clay Loveless' Blog: PHP and JSON: Cut #987]]></title>
      <guid>http://www.phpdeveloper.org/news/7364</guid>
      <link>http://www.phpdeveloper.org/news/7364</link>
      <description><![CDATA[<p>
In a <a href="http://killersoft.com/randomstrings/2007/02/28/php-and-json-cut-987/">new post</a> today, <i>Clay Loveless</i> talks about some issues he's been having with PHP and JSON, specifically with the JSON encoding method in PHP 5.2.1.
</p>
<blockquote>
As of PHP 5.2.1, json_decode() no longer follows <a href="http://www.ietf.org/rfc/rfc4627.txt">the published standards</a> for JSON-encoded texts. Why not? For no reason other than the convenience of those ignorant of JSON standards.
</blockquote>
<p>
His complaint stems from the results of a vat_dump statement - prior to this version it would give a NULL, but now it returns a "bool(true)" value back, resulting in some breakage of previous scripts. He spends the rest of the post explaining his voyage through the JSON world and how things are supposed to behave. He also digs a little deeper into the var_dump issue and why he thinks it's such a bad thing.
</p>]]></description>
      <pubDate>Thu, 01 Mar 2007 08:43:00 -0600</pubDate>
    </item>
  </channel>
</rss>
