News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Fabien Potencier's Blog:
Getting information from SVN with PHP
February 05, 2009 @ 12:08:23

In a recent post Fabien Potencier took a look at one method for getting metadata information from a subversion repository about the project(s) inside.

Last year, I deployed a new tool to manage symfony plugins. The first goal of this tool was to simplify the process of contributing new plugins. [...] The question I wanted to answer was quite simple: How many plugins were created per month before and after the change?

He uses a very handy option to modify the output of an "svn log" command - the "--xml" argument. This outputs the latest information (like author, date, paths and msg) for each of the log entries. This can then be thrown into a call to simple_xml_load_file and parsed down into the numbers he was looking for. He even generated a graph of the results as they coordinated with the different symfony releases.

0 comments voice your opinion now!
subversion svn log xml output parse simplexml graph


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: AJAX and PHP Part 2 - XML Communication/Processing

Till Klampaeckel' Blog: PHP parse errors with cgi and nginx

Arul Pradad's Blog: Saving XML from Flash, using PHP

Zend Developer Zone: Actuate and Zend Collaborate to Deliver Reporting for PHP

David Coallier's Blog: Zend_Db Without PDO part #3 (SVN Repository)?


Community Events

Don't see your event here?
Let us know!


laravel5 series security example community framework opinion language version extension list php7 release voicesoftheelephpant api laravel interview library introduction podcast

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework