<?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>Tue, 21 May 2013 23:30:21 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[NetTuts.com: PSR-Duh!]]></title>
      <guid>http://www.phpdeveloper.org/news/19452</guid>
      <link>http://www.phpdeveloper.org/news/19452</link>
      <description><![CDATA[<p>
On NetTuts.com today there's a post that <a href="http://net.tutsplus.com/tutorials/tools-and-tips/psr-duh/">talks about applying the PSR formatting</a> to your application's code. If you haven't already read their <a href="http://net.tutsplus.com/tutorials/php/psr-huh">introduction to the PSRs</a>, it's highly suggested.
</p>
<blockquote>
In a previous lesson here on Nettuts+, you learn about <a href="http://net.tutsplus.com/tutorials/php/psr-huh">PSR</a>; however, that article didn't detail the process of integrating that coding style into your projects. Let's fix that!
</blockquote>
<p>
They briefly recap the main two PSRs (PSR-1 and PSR-2, but no mention of PSR-3 the logging interface) and show code examples of them being applied. They also point to the <a href="http://pear.php.net/package/PHP_CodeSniffer">PHP_CodeSniffer</a> tool that you can use to keep your code in the correct structure. Instructions are included to install it specifically for the Sublime Text 2 editor via <a href="http://wbond.net/sublime_packages/package_control">package control</a>. It's just a command-line tool, though, so it could be integrated with just about any other editor/IDE out there too.
</p>
Link: http://net.tutsplus.com/tutorials/tools-and-tips/psr-duh]]></description>
      <pubDate>Fri, 12 Apr 2013 10:46:26 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Chris Hartjes: Standards, Soapboxes, and Shamans]]></title>
      <guid>http://www.phpdeveloper.org/news/19070</guid>
      <link>http://www.phpdeveloper.org/news/19070</link>
      <description><![CDATA[<p>
In <a href="http://www.littlehart.net/atthekeyboard/2013/01/20/standards-soapboxes-and-shamans/">this latest post</a> to his site <i>Chris Hartjes</i> shares some of his thoughts about the recently approved <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md">PSR-3</a> standard (for logging) and some of the reception that the other PSRs (PSR-0, 1 & 2) have gotten from the PHP community.
</p>
<blockquote>
For those who pay attention to the workings of the PHP community you might have heard about the "PHP Standards Recommendations" that have been coming out of the PHP Framwork Interop Group. [...] More recently this group has been working on a standard for logging interfaces called <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md">PSR-3</a>. I spoke about this on Twitter, and I will repeat it here: I think PHP programmers should get behind PSR-0 and efforts like PSR-3. I feel that PSR-1 and PSR-2 are solutions looking for a problem and seem, to me anyway, to me out of place with the solutions offered by PSR-0 and PSR-3.
</blockquote>
<p>
He likens the PHP PSRs to the <a href="http://www.python.org/dev/peps/">Python enhancement proposals</a> (PEPs) and, more specifically, to the PEP-8 - their own version of "coding standards" that was highly championed by <i>Guido van Rossum</i> and put into wide practice. 
</p>
<blockquote>
Any programming language community that does not work as hard as possible to make it easier to integrate other's libraries of code together [by standardizing their formatting] is asking for irrelevancy.
</blockquote>]]></description>
      <pubDate>Mon, 21 Jan 2013 13:16:47 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Project: PHPHint.org - Online PHP Code Analysis]]></title>
      <guid>http://www.phpdeveloper.org/news/18332</guid>
      <link>http://www.phpdeveloper.org/news/18332</link>
      <description><![CDATA[<p>
<i>Klaus Silveira</i> has submitted a project he's come up with to help PHP developers detect problems in their code via a web-based application - <a href="http://phphint.org">PHPHint.org</a>.
</p>
<blockquote>
<p>
PHPHint is a community-driven, quick and easy to use, online tool that analyzes your PHP code and looks for potential errors, lack of <a href="http://paul-m-jones.com/archives/2420">best practices</a> and <a href="http://en.wikipedia.org/wiki/Code_smell">code smell</a>. It also allows you to clean your code automagically.
</p>
<p>
It was created to spread the work about the PSR standards and the PHP-FIG group, the importance of getting rid of code smell and applying to standards.
</p>
</blockquote>
<p>
Since it is an open source project, you can <a href="https://github.com/klaussilveira/PHPHint">help contribute</a> if you'd like to see improvements to the service. It's great that it takes the relatively new PSR standards (<a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md">PSR-1</a> & <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md">PSR-2</a>) into account when analyzing the code too.
</p>]]></description>
      <pubDate>Wed, 08 Aug 2012 10:18:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Phil Sturgeon's Blog: PHP: Ecosystem Update]]></title>
      <guid>http://www.phpdeveloper.org/news/18213</guid>
      <link>http://www.phpdeveloper.org/news/18213</link>
      <description><![CDATA[<p>
In <a href="http://philsturgeon.co.uk/blog/2012/07/php-ecosystem-update">this new post</a> <i>Phil Sturgeon</i> looks at two movements in the PHP community that are doing positive things for the language and the community as a whole - the Framework Interoperability Group (PHP-FIG) and the more recent "PHP The Right Way" initiative.
</p>
<blockquote>
Don't worry guys, this isn't another PHP apologist or PHP hater blog. We've all had enough of those recently. This is a quick heads up on two projects that are doing what they can to make the PHP ecosystem a better place.
</blockquote>
<p>
He talks a bit about some of the recent work that the PHP-FIG has done, the new standards that were approved by the group (PSR-1 & PSR-2) as well as the launch of <a href="http://www.php-fig.org/">a dedicated website</a> for the project, complete with a handy FAQ. He also points out the <a href="http://phptherightway.com/">PHP The Right Way</a> site and the loads of community contributions that have come in around it. There's guidelines for things like dependency management, security, testing, deployment and lots more. If you haven't gotten a chance to check out this resource, it's definitely work a look!
</p>]]></description>
      <pubDate>Wed, 11 Jul 2012 09:25:28 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Project: CodeSniffer for PSR's (PSR-0, PSR-1 & PSR-2)]]></title>
      <guid>http://www.phpdeveloper.org/news/18071</guid>
      <link>http://www.phpdeveloper.org/news/18071</link>
      <description><![CDATA[<p>
<i>Klaus Silveira</i> has created a set of PHP_CodeSniffer rules that can be used to <a href="https://github.com/klaussilveira/phpcs-psr">test your code for the recently approved PSR-1 & PSR-2 standards</a>.
</p>
<blockquote>
This is a PHP_CodeSniffer sniff to check against the PHP Standard Resolutions: <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md">PSR-0</a>, <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md">PSR-1</a> and <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md">PSR-2</a>. Those standards were approved by the <a href="https://github.com/php-fig/fig-standards">PHP Framework Interoperability Group</a>. You can read more about the PHP FIG and the PSR's on this <a href="http://paul-m-jones.com/archives/2420">excellent article</a> by Paul Jones.
</blockquote>
<p>
<a href="https://github.com/klaussilveira/phpcs-psr">The github repository</a> also provides an overview of the standards themselves and how to get these sniffs installed.
</p>]]></description>
      <pubDate>Sat, 09 Jun 2012 11:17:50 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: Kohana Community Responds to PSR-1 & PSR-2]]></title>
      <guid>http://www.phpdeveloper.org/news/18069</guid>
      <link>http://www.phpdeveloper.org/news/18069</link>
      <description><![CDATA[<p>
In the Kohana framework, you can get an inside look at the discussion inside a framework community regarding their <a href="http://forum.kohanaframework.org/discussion/10784/psr-1-and-psr-2/p1">adherence to the PSR-1 & PSR-2 standards</a> (hint: they're not in favor).
</p>
<p>
A commentor asks the question "Will Kohana eventually follow the following guidelines?" and is immediately given the simple response of "no".  Other comments reinforce this by pointing out some of the differences in the standards that the framwork follows and what the PSR standards outline.
</p>
<p>
Other posters make comments about the PHP-FIG group themselves, some of the things outlined in the standards and some of their own personal preferences when it comes to the the standards of their own code. You can find more information on the standards here: <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md">PSR-1</a> and <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md">PSR-2</a>.
</p>]]></description>
      <pubDate>Sat, 09 Jun 2012 09:10:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Paul Jones' Blog: PHP-FIG: PSR 1 and 2 Accepted]]></title>
      <guid>http://www.phpdeveloper.org/news/18048</guid>
      <link>http://www.phpdeveloper.org/news/18048</link>
      <description><![CDATA[<p>
As <i>Paul Jones</i> mentions in <a href="http://paul-m-jones.com/archives/2420">his latest post</a> to his site, the much talked-about PSR standards that were proposed by the PHP-FIG group, <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md">PSR-1</a> and <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md">PSR-2</a>, have been accepted.
</p>
<blockquote>
Earlier today, the <a href="https://github.com/php-fig/fig-standards">PHP Framework Interoperability Group</a> accepted two standards recommendations. [...] There's been a lot of commentary about these proposals over the past two weeks, some of it positive and some of it negative.
</blockquote>
<p>
He <a href="http://paul-m-jones.com/archives/2420">includes links</a> to some of the commentary that's been made about the standards recently, and spends some time responding to some of the negative comments specifically, like:
</p>
<ul>
<li>What the hell is the "PHP Standards" group? I've never heard of it before now.
<li>Why are you guys so secretive and closed?
<li>So once I join the list, I can vote on PHP-FIG Standards Recommendations? Sweet!
<li>Whatever. I don't need you guys telling me what to do. If I don't want to follow your so-called "standards" then you can't make me.
</ul>]]></description>
      <pubDate>Tue, 05 Jun 2012 09:27:15 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: PSR-1 and PSR-2 to be Approved as Standards]]></title>
      <guid>http://www.phpdeveloper.org/news/17991</guid>
      <link>http://www.phpdeveloper.org/news/17991</link>
      <description><![CDATA[<p>
As is mentioned in <a href="http://phpmaster.com/psr-1-and-psr-2-to-be-approved-as-standards/">this new post</a> to PHPMaster.com, the PHP standards group is officially in the voting process on two new standards (<a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md">PSR-0</a> being the first) setting up some standard development practices for PHP applications - <a href="https://github.com/pmjones/fig-standards/blob/psr-1-style-guide/proposed/PSR-1-basic.md">PSR-1</a> and <a href="https://github.com/pmjones/fig-standards/blob/psr-1-style-guide/proposed/PSR-2-advanced.md">PSR-2</a>.
</p>
<blockquote>
They initially started out as one proposal but the initial round of voting didn't yield a majority in favor. Participants did however see merit in various requirements the decision was made to split it into 2 proposals - one for mandatory interoperability and one for suggested style.
</blockquote>
<p>
The <a href="https://github.com/pmjones/fig-standards/blob/psr-1-style-guide/proposed/PSR-1-basic.md">PSR-1</a> standard proposes some basic coding standards (like namespacing structure and class/method naming definitions) and the <a href="https://github.com/pmjones/fig-standards/blob/psr-1-style-guide/proposed/PSR-2-advanced.md">PSR-2</a> standard covers similar things, but more in-depth with more recommendations. 
</p>
<p>
If you want to find out how your application stacks up against this new standard, you can try out <a href="https://github.com/fabpot/PHP-CS-Fixer">PHP-CS-Fixer</a> (from <i>Fabien Potencier</i>) to see how many things need an update.
</p>]]></description>
      <pubDate>Tue, 22 May 2012 13:18:40 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: Drafts of PSR-1 (and prelim PSR-2)]]></title>
      <guid>http://www.phpdeveloper.org/news/17949</guid>
      <link>http://www.phpdeveloper.org/news/17949</link>
      <description><![CDATA[<p>
In the wake of the success of the <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md">PSR-0 standard</a> (used in autoloading structures across frameworks and various applications), the PHP-FIG (Framework Interoperability Group) has start on drafts of other standards to help provide some guidelines to standardize PHP development across projects.
</p>
<p>
Among the group, <i>Paul Jones</i> has been <a href="https://github.com/pmjones/fig-standards/tree/psr-1-style-guide/proposed">writing serveral proposals</a> under the PSR-1 standard banner that include:
</p>
<ul>
<li>The <a href="https://github.com/pmjones/fig-standards/blob/psr-1-style-guide/proposed/PSR-1-basic.md">basic draft of the standard</a>
<li>An <a href="https://github.com/pmjones/fig-standards/blob/psr-1-style-guide/proposed/PSR-1.md">extended draft</a> of the same
<li>A <a href="https://github.com/pmjones/fig-standards/blob/psr-1-style-guide/proposed/PSR-2-advanced.md">more advanced version, PSR-2</a> that also includes some survey results on various syntax elements.
</ul>
<p>
If you want to know more about the PHP-FIG group, you should <a href="http://voicesoftheelephpant.com/2012/05/01/fig-fud-fomo/">listen to this excellent panel interview</a> of the group from the Voices of the ElePHPant podcast. <i>Paul</i> and others get into the point of the group and how the standards are progressing.
</p>]]></description>
      <pubDate>Fri, 11 May 2012 13:17:08 -0500</pubDate>
    </item>
  </channel>
</rss>
