Archive for March, 2011

Community News: Thoughts on the PHP Community Conference

March 17, 2011

People in the PHP community are excited about the upcoming PHP Community Conference (happening in April) and a few have even blogged about it. Both Paul Reinheimer and Lorna Mitchell have shared some of their thoughts about the upcoming event, both as speakers.

The PHP Community conference is happening April 21st and 22nd in Nashville, Tennessee and includes a day of tutorials and a day of regular conference sessions. To say “regular” doesn’t do it justice though – this event is more about the passion that drives developers than the “cool new tech” you can get at other events.

For more information about the conference and to reserve your spot, head to the main conference website. The tickets are only $300 USD and include both days as well as food/drinks while there. Be sure to check out the full speaker list for all of the great content you’ll see!

UPDATE: Matthew Weier O’Phinney and Ed Finkler have posted their thoughts as well.

Volker Dusch’s Blog: Autoloading for legacy, non-framework projects

March 17, 2011

In his latest post Volker looks at something he sees more and more projected implementing as a simple way to not have to manually define paths all over their applications – creating autoloaders. His post shows how to create one such autoloader for a legacy, non-framework type of project.

The first argument usually is “ease of use”. It can get pretty annoying when you have to clutter your whole application with “require this file here and that file over there” statements. […] The main motivation for autoloading usually is “getting rid of all the require statements and the problems resulting from forgetting one at one point where you don’t notice it because on your machine it worked.

In some projects you’re lucky enough to have class name to file name mapping to make it simpler. His project didn’t have that, so he needed a way around it. His answer came in the PHP Autoload Builder tool – a handy command line script that works through your code and builds an index of sorts you can refer to for the correct class-to-file map.

Site News: Blast from the Past – One Year Ago in PHP

March 17, 2011

Here’s what was popular in the PHP community one year ago today:

Christian Schaefer’s Blog: Simply iterate over XML with plain PHP using little memory and CPU

March 17, 2011

In a new post to his Test.ical.ly blog Christian Schaefer shows you how to iterate over XML in a more efficient way with the help of the XMLReader and Iterator features that come with PHP.

One of the things I have been working on lately was a simple XML parser. It’s a simple XML structure in my case though it could be more complex without much change. My solution was a quite powerful yet simple combination of XMLReader and the Iterator interface.

He includes a sample XML document similar to the one he was working with and shows how XMLReader can handle it, keeping only the currently needed information in memory at one time. His sample class (CustomXml) loads the file and defines all of the iterator methods to work with the data like “next”, “prev” and “rewind”.

Voices of the ElePHPant: Interview with Ian Barber

March 17, 2011

The Voices of the ElePHPant has posted their latest episode today – an interview with Ian Barber, an employee of IBuildings. Cal‘s “three questions” this time focus on some of the experience Ian has had with managing software projects.

  • Is project management different when working with PHP and related technologies as opposed to desktop software development?
  • What was the hardest problem you had to face with remote developers and how did you overcome it?
  • What’s the best advice you have for project managers trying to balance a customers’ wants versus what the team can deliver?

You can listen to this latest episode either via the in-page player, by downloading the mp3 or you can subscribe to their feed and get the latest right in your feed reader.

Voices of the ElePHPant: Interview with Ian Barber

March 17, 2011

The Voices of the ElePHPant has posted their latest episode today – an interview with Ian Barber, an employee of IBuildings. Cal‘s “three questions” this time focus on some of the experience Ian has had with managing software projects.

  • Is project management different when working with PHP and related technologies as opposed to desktop software development?
  • What was the hardest problem you had to face with remote developers and how did you overcome it?
  • What’s the best advice you have for project managers trying to balance a customers’ wants versus what the team can deliver?

You can listen to this latest episode either via the in-page player, by downloading the mp3 or you can subscribe to their feed and get the latest right in your feed reader.

Community News: Latest Releases from PHPClasses.org

March 17, 2011

Gonzalo Ayuso’s Blog: Real time notifications with PHP

March 17, 2011

In a new post Gonzalo Ayuso about a system he’s developed to create real-time notifications for PHP applications using a mix of PHP and javascript (jQuery).

Real time communications are cool, isn’t it? Something impossible to do five years ago now (or almost impossible) is already available. Nowadays we have two possible solutions. WebSockets and Comet. […] I prefer to use comet (at least now). It’s not as good as websockets but pretty straightforward ant it works (even on IE). Now I’m going to explain a little script that I’ve got to perform a comet communications, made with PHP.

His little sample application detects when a user has clicked on a link by subscribing to an event and using the javascript callback to send the message of a click event and wait for a response. You can find the complete code for the example over on github.

Sebastian Bergmann’s Blog: Visualization of PHPUnit Development

March 17, 2011

On his blog Sebastian Bergmann has a recent post about how he’s visualizing PHPUnit’s development and pushing that information into a video based on the history of the project.

According to svn.php.net, I committed the first PHPUnit code to cvs.php.net on November 27th 2001 and the first release, PHPUnit 0.1, was made on December 1st 2001. […] On December 26th 2009, I moved the development of PHPUnit from svn.phpunit.de to GitHub. I imported the history from Subversion into Git. As you can see in the video, moving to GitHub lead to an increased number of contributions to PHPUnit.

You can watch the video either embedded in his post or directly from Vimeo. It’s interesting to watch the progress of the application and see the contributions make to each of the parts. The whole video, spanning the entire commit history of the tool, lasts about 25 minutes.

Sebastian Bergmann’s Blog: Visualization of PHPUnit Development

March 17, 2011

On his blog Sebastian Bergmann has a recent post about how he’s visualizing PHPUnit’s development and pushing that information into a video based on the history of the project.

According to svn.php.net, I committed the first PHPUnit code to cvs.php.net on November 27th 2001 and the first release, PHPUnit 0.1, was made on December 1st 2001. […] On December 26th 2009, I moved the development of PHPUnit from svn.phpunit.de to GitHub. I imported the history from Subversion into Git. As you can see in the video, moving to GitHub lead to an increased number of contributions to PHPUnit.

You can watch the video either embedded in his post or directly from Vimeo. It’s interesting to watch the progress of the application and see the contributions make to each of the parts. The whole video, spanning the entire commit history of the tool, lasts about 25 minutes.