PECL Extension Review: SVN Is A Great Product
Out Of Date Warning
Languages change. Perspectives are different. Ideas move on. This article was published on October 4, 2008 which is more than two years ago. It may be out of date. You should verify that technical information in this article is still current before relying upon it for your own purposes.
Even though the SVN extension for PHP is still in beta, the team has done a fantastic job with this PECL package. They’ve captured the most common SVN functions, put them into the package, and provided an easy way to view, manage, and control a Subversion repository right from PHP.
That’s not to say that the package is perfect: far from it, in fact. The documentation is the most disappointing facet, something I may help resolve through contributing to the manual. Also, most programs don’t yet recognize the SVN functions as part of PHP, so syntax highlighting is not available. This is a small inconvenience, however, and certainly no reason to NOT use it.
The package documentation can be found here and it’s worth a look for anyone thinking about doing anything SVN-related with PHP. This beats using exec() to execute SVN commands, as it ensures that the commands are executed properly.
I see the most immediate use of this tool in building a Trac-like PHP application. I’m sure someone has thought of it, but with Trac being popular, supported, and already finished, no one has yet dealt with this issue. Still, I’d like to see someone build that at some point.

Write better object
oriented PHP today.
A brand new book on object oriented PHP that will leave you an object oriented master.
Learn more about the book »There are currently no comments.


Imagine if you could write clear, compelling code each and every time you sat down to work. You can do this. I'll show you how with The Ten Commandments of Clean Code.
Brandon Savage has been a software developer since 2003. Ever since discovering that he could use software to automate routine tasks, he's been hooked. Brandon is passionate about perfecting the art of software development.