<?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 08:03:00 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Phil Sturgeon: Is PSR-0 Shortsighted, or are you?]]></title>
      <guid>http://www.phpdeveloper.org/news/19472</guid>
      <link>http://www.phpdeveloper.org/news/19472</link>
      <description><![CDATA[<p>
In a response to <a href="http://phpdeveloper.org/news/19469">this previous post</a> about the PSR-0 standard and why it might be "shortsighted", <i>Phil Sturgeon</i> has <a href="http://philsturgeon.co.uk/blog/2013/04/is-psr0-shortsighted-or-are-you">posted some of his own thoughts</a> on the matter as a participant (and supporter) in the PHP-FIG group.
</p>
<blockquote>
One of the fun things about trying to support the PHP-FIG and all the good its doing, is seeing blog posts written complaining about it by people that just don't know what they're talking about. I get involved in conversations on Reddit (dangerous I know) on a mission to understand the problems with its perception throughout the community, and try to make more knowledge readily available to avoid confusion. I put together the <a href="http://www.php-fig.org/faq/">PHP-FIG FAQ</a> and the rest of the group voted it in, which I believe helped a lot. Sadly <a href="http://r.je/php-psr-0-pretty-shortsighted-really.html">some blog posts</a> are sent out by people with a whole bunch of odd opinions that you just can't do anything about, so instead I'm going to respond with a play-by-play approach.
</blockquote>
<p>
He goes through several of the points <i>Tom</i> made in his original post, pointing out places where the information was either misconceptions or just completely incorrect. He relates some of the autoloading suggestions <i>Tom</i> made back to things Composer can do and how this is different from "magic" on the part of the library user. 
</p>
<blockquote>
PSR-0 has its problems, but they are the two that I have pointed out and they are rather trivial. [...] If you'd like to add custom autoloaders to your Composer packages then go ahead. If you'd like to build your own custom autoloaders for all of your packages then you can do that too, but it ruins the entire purpose of what PSR-0 is meant to do. That's fine, because you don't need to use it, but I am happy as hell that PSR-0 exists and I wouldn't make drastic changes to it for anything. 
</blockquote>
Link: http://philsturgeon.co.uk/blog/2013/04/is-psr0-shortsighted-or-are-you]]></description>
      <pubDate>Wed, 17 Apr 2013 09:14:42 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Phil Bennett: Do We Need a Framework For That? Or Hurry Up PHP-FIG]]></title>
      <guid>http://www.phpdeveloper.org/news/19442</guid>
      <link>http://www.phpdeveloper.org/news/19442</link>
      <description><![CDATA[<p>
In <a href="http://happyaccidents.me/blog/do-we-need-a-framework-for-that">this recent post</a> to his site, <i>Phil Bennett</i> shares some thoughts about the PHP-FIG, the standards they're proposing and how the shares interfaces might help reduce dependencies in framework-based applications.
</p>
<blockquote>
[Frameworks] come in several different flavours that all have huge advantages, but also a few disadvantages. Over engineered (because their popularity demands that they be), updated too often, not updated enough. If you decide for example to update your application from using Zend Framework 1 to using Zend Framework 2, this will more than likely require, at least in part, a re-write of your code. This makes scalability difficult.
</blockquote>
<p>
He talks some about the PSRs that the PHP-FIG group has proposed including the PSR-3 logging interface structure. He points out that, by having this same structure, it makes injecting dependencies easy while still leaving the actual functionality open to interpretation. He also suggests that maybe a framework isn't the right choice for all applications and that possibly using a collection of libraries, tied together by the PSR standards, could be a better answer.
</p>
Link: http://happyaccidents.me/blog/do-we-need-a-framework-for-that]]></description>
      <pubDate>Wed, 10 Apr 2013 13:38:48 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Riding an Elefant: PHP-FIG's challenges, efficacy and attitude]]></title>
      <guid>http://www.phpdeveloper.org/news/19258</guid>
      <link>http://www.phpdeveloper.org/news/19258</link>
      <description><![CDATA[<p>
On the "Riding an Elefant" blog (for the <a href="http://www.elefantcms.com/">Elefant CMS</a>) there's <a href="http://ridinganelefant.tumblr.com/post/44223524737/php-figs-challenges-efficacy-and-attitude">a new post</a> that looks at some of the "challenges, efficacy and attitude" of the PHP-FIG (Framework Interoperability Group) surrounding their PSRs and general direction.
</p>
<blockquote>
First, I should state that I'm not a member of PHP-FIG. I applied to be a member representing the Elefant project, but saw projects with similarly-sized communities rejected, so I wasn't surprised at the lack of response to my application. However, I do agree with the general goals of the project and think it has a lot of potential if steered well. 
</blockquote>
<p>
He then spends a good bit of the post talking about the three PSRs (autoloading with PSR-0 and coding standards with PSR-1 & PSR-2) and how he thinks the PHP-FIG has some "public relations" issues they need to overcome as it relates to their reactions. 
</p>
<blockquote>
PHP-FIG has grown rapidly since its inception, and with that comes the need to reevaluate and adapt. The PHP community is huge, and a group hoping to represent even a substantial minority of it will have to practice diplomacy and clearly state its intentions if it doesn't want to be misunderstood or cause alienation amongst the wider community.
</blockquote>
<p>
There's also some good comments on <a href="http://ridinganelefant.tumblr.com/post/44223524737/php-figs-challenges-efficacy-and-attitude">the post</a> so be sure to check those out too</a>.
</p>]]></description>
      <pubDate>Fri, 01 Mar 2013 11:02:34 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Weier O'Phinney: On PHP-FIG]]></title>
      <guid>http://www.phpdeveloper.org/news/19250</guid>
      <link>http://www.phpdeveloper.org/news/19250</link>
      <description><![CDATA[<p>
<i>Matthew Weier O'Phinney</i> has a new post to his site today covering the <a href="http://www.mwop.net/blog/2013-02-27-resigned-from-php-fig.html">reasons he left the PHP-FIG</a>, the PHP Framework Interoperability Group that was designed to help unify the framework (and PHP) communities with common goals and structure. He talks some about his reasons for leaving and what he hopes the group will, eventually, become.
</p>
<blockquote>
I had high hopes for the group. It was the culmination of something I've been ruminating on for almost a decade (<a href="http://www.mwop.net/blog/12-PHP-standards-ruminations.html">see post number 12 on my blog, dated to January 2004, for proof</a>). My thoughts have mainly been around coding standards and best practices, helping educate developers around their benefits, and how to leverage both in order to create maintainable code.
</blockquote>
<p>
He talks about some of the things he sees as shortfalls of the group including the definition of some of the standards (and interface structure), the current thoughts of changing of said standards and some of the "discussion" that happens in the group via the mailing lists and pull requests. He mentions that there were several times that the same discussions would happen all over again, despite people saying it had, and is tired of it.
</p>
<blockquote>
I have better things to do with my time, things I want to create, software I want to support, hobbies and interests I want to pursue. Debating brace placement, tabs vs spaces (for the umpteenth time), or whether or not annotations have a place in programming in a dynamic language? Not so much.
</blockquote>]]></description>
      <pubDate>Thu, 28 Feb 2013 10:45:20 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: PSR-3 Accepted - Logger Interface]]></title>
      <guid>http://www.phpdeveloper.org/news/19037</guid>
      <link>http://www.phpdeveloper.org/news/19037</link>
      <description><![CDATA[<p>
The PHP-FIG  (Framework Interoperability Group) has recently <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md">accepted the PSR-3 definition</a> for a standardized Logger interface structure that can be used for interoperability between frameworks (and other tools).
</p>
<blockquote>
The main goal is to allow libraries to receive a PsrLogLoggerInterface object and write logs to it in a simple and universal way. Frameworks and CMSs that have custom needs MAY extend the interface for their own purpose, but SHOULD remain compatible with this document. This ensures that the third-party libraries an application uses can write to the centralized application logs.
</blockquote>
<p>
The <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md">implementation of this structure</a> into your application makes it easier should you decide to swap out logging tools or want to create your own that can be used across several different frameworks. This is the third PSR to be accepted by the group, following <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> more related to coding standards.
</p>]]></description>
      <pubDate>Tue, 15 Jan 2013 10:55:01 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Stuart Herbert: Personal Thoughts On The PSR-3 Log Proposal]]></title>
      <guid>http://www.phpdeveloper.org/news/18971</guid>
      <link>http://www.phpdeveloper.org/news/18971</link>
      <description><![CDATA[<p>
In his latest post, <i>Stuart Herbert</i> has <a href="http://blog.stuartherbert.com/php/2012/12/29/personal-thoughts-on-the-psr-3-log-proposal/">shared some thoughts</a> about the recently proposed PSR-3 proposal for a unified logging interface for PHP projects.
</p>
<blockquote>
PSR-3 is a proposed standard (<a href="https://groups.google.com/forum/?fromgroups=#!topic/php-fig/d0yPC7jWPAE">voting</a> has finished, it should appear as an accepted standard when the PSR folks recover from too much Christmas turkey) describing a common logging interface for PHP frameworks. It's based on a small subsection of <a href="http://tools.ietf.org/html/rfc5424">RFC 5424</a>, which describes the Syslog standard, which is a very sensible choice. Sysadmins think in terms of Syslog levels, and they utterly hate dealing with loggers that don't map cleanly onto Syslog.
</blockquote>
<p>
He briefly introduces the PSR and the format of the logger with some of the main methods it should implement and what they do. He talk gets into some of his critiques about the proposal, namely the method naming, the exception handling parameter and the proposed LogLevel constants.
</p>]]></description>
      <pubDate>Mon, 31 Dec 2012 10:46:13 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Paul Jones: A Response To "On php-fig and Shared Interfaces"]]></title>
      <guid>http://www.phpdeveloper.org/news/18944</guid>
      <link>http://www.phpdeveloper.org/news/18944</link>
      <description><![CDATA[<p>
<i>Paul Jones</i> has <a href="http://paul-m-jones.com/archives/4226">written up a response</a> to <i>Matthew Weier O'Phinney</i>'s <a href="http://phpdeveloper.org/news/18933">recent post</a> on shared interfaces and the PHP-FIG. In it he talks about the PHP-FIG group itself and specific references back to the original post.
</p>
<p>
He mentions the ideas of "new thinking" and the limitations that standardized interfaces might try to impose on an application:
</p>
<blockquote>
One is able to imagine reasons why having shared interfaces of the kind described above is in opposition to, or at best orthogonal to, better development practices and greater innovation across PHP land. Even so, I assert that shared interfaces as described, while maybe preventing an imaginable ideal in theory, instead promote an actual good in practice.
</blockquote>
<p>
<i>Matthew Weier O'Phinney</i> <a href="http://mwop.net/blog/2012-12-20-on-shared-interfaces.html#comment-744905017">responded</a> with some of his own comments and correcting some of the misinterpretation of his original comments.
</p>]]></description>
      <pubDate>Mon, 24 Dec 2012 12:54:57 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Weier O'Phinney: On php-fig and Shared Interfaces]]></title>
      <guid>http://www.phpdeveloper.org/news/18933</guid>
      <link>http://www.phpdeveloper.org/news/18933</link>
      <description><![CDATA[<p>
In his most recent post <i>Matthew Weier O'Phinney</i> (lead on the Zend Framework project) takes a look at the PHP Interoperability Group (php-fig) and some recent discussions that have come up about <a href="http://mwop.net/blog/2012-12-20-on-shared-interfaces.html">shared interfaces</a> for things like logging and caching.
</p>
<blockquote>
A little over a year ago, there was a new push by a number of folks wanting to do more. Paul Jones did a remarkable job of spearheading the next <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md">two</a> <a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md">standards</a>, which centered around coding style. [...] And this is when we started seeing proposals surface for shared interfaces, first around caching, and now around logging (though the latter is the first up for vote).
</blockquote>
<p>
He talks a bit about shared interfaces - what they are and what kind of problem they aim to solve - and how he's not sure he "buys into them". He notes that "sharing is good, developing solutions is better" and stresses making it easier to operate with each other and not worry so much about standardized interfaces.
</p>
<p>
He's found a few problems with the concepts behind them like the Not Invented Here (NIH) idea they promote and that there's not really just a single solution to these kinds of problems ("space for multiple implementations"). He suggests an alternative to the idea of these shared interfaces - <a href="http://en.wikipedia.org/wiki/Bridge_pattern">bridges</a>/<a href="http://en.wikipedia.org/wiki/Adapter_pattern">adapters</a>. He illustrates this idea with some code showing the implementation of a "CacheInterface" and a "FrameworkACache" adapter that wraps the functionality of a "CacheItem" class that might be internal to your application already.
</p>]]></description>
      <pubDate>Fri, 21 Dec 2012 11:45:37 -0600</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[Community News: PHP-FIG Group Launches Site & FAQ]]></title>
      <guid>http://www.phpdeveloper.org/news/18179</guid>
      <link>http://www.phpdeveloper.org/news/18179</link>
      <description><![CDATA[<p>
To help resolve issues that have come up around its formation and to keep too much FUD (fear, uncertainty and doubt) from spreading, the "PHP-FIG" (framework interoperability group) has <a href="http://www.php-fig.org/faq/">put together a site</a> and a FAQ describing what they're all about.
</p>
<blockquote>
The FIG stands for Framework Interoperability Group. The name until recently was "PHP Standards Group" but this was somewhat inaccurate of the intentions of the group. [...] The idea behind the group is for project representatives to talk about the commonalities between our projects and find ways we can work together. Our main audience is each other, but we're very aware that the rest of the PHP community is watching. 
</blockquote>
<p>
The FAQ answers other questions about the standards the group has agreed on (passed) so far, who the members of the group are, how to get involved and how framework communities can get involved.
</p>]]></description>
      <pubDate>Wed, 04 Jul 2012 20:25:27 -0500</pubDate>
    </item>
  </channel>
</rss>
