tags:

views:

99

answers:

3

Given that SVN repos can be accessed over HTTP, would it be possible to code an SVN server in PHP?

Has anyone done this?

A: 

Do you mean a PHP front-end to a repository? If so, look no further than Trac.

Damien Wilson
Trac is written in Python, not PHP.
Billy ONeal
No, not a front-end. See my comment above.
George Edison
Ah, you're right. Slip of the brain. Seems all the well known front ends are in python (trac, gitosis, etc).
Damien Wilson
A: 

Here is your answer - http://stackoverflow.com/questions/349241/is-there-an-equivalent-to-trac-written-in-php

Ivo Sabev
Is this an actual SVN server?
George Edison
I think you have misunderstanding what SVN server is. The SVN server is written in C or C++ and stays on the web server OS and manages the repositories. People have clients with which they connect to that server. And there are applications like Trac or those I showed you that also connect to the SVN and give report like information about the repositories.
Ivo Sabev
Even though it is possible to write a PHP SVN server I dont find it healthy. Here you can take a look at this project - https://www.ohloh.net/p/deltaweb
Ivo Sabev
@Ivo, this project has been abandoned.
George Edison
I don't wonder why :) Maybe instead of walking on water and runing PHP SVN servers on shared hosting you can just have you SVN repository in a site like this - http://unfuddle.com/
Ivo Sabev
A: 

See the SVN Pecl extension:

This is not an SVN server written in PHP though, but a client API that interfaces with a server.

Like everyone else, I too find it rather ... odd to want to write a PHP SVN Server, which probably takes quite an effort and time, when all you have to do is just to switch hosts. As an alternative, use an open SVN hosting service and checkout from your hosting service with Phing or something when needed.

Gordon
Ya, I'm beginning to think this is the route to take.
George Edison