phpsvnclient is a class that can perform read operations from a SVN server (over WebDAV).
It can be used to retrieve files from an SVN repository in pure PHP, thus without using separate programs or the need to have SVN support within PHP.
It accesses a given remote SVN repository using the WebDAV protocol and performs several types of operations:
New BSD License http://www.opensource.org/licenses/bsd-license.php
saddor ethansmith1 deadpan110 khartnjava
phpsvnclient is hosted at Google Code.
Fetch file contents in SVN repository:
<?php
require_once 'phpsvnclient.php';
$phpsvnclient = new phpsvnclient('http://phpsvnclient.googlecode.com/svn/');
$file_content = $phpsvnclient->getFile('trunk/phpsvnclient.php');
echo $file_content;
?>
Dump raw SVN description information about a folder:
<?php
require_once 'phpsvnclient.php';
$phpsvnclient = new phpsvnclient('http://phpsvnclient.googlecode.com/svn/');
$raw_dump = $phpsvnclient->rawDirectoryDump('/trunk/');
print_r($raw_dump);
?>