views:

112

answers:

5

I'm looking for a PHP-based tool for managing source code. Basically like a wiki but for code.

I know that SVN or CVS may be the better option, but I just need something basic that allows users to collaborate. I don't need the ability to checkout or anything like that.

Edit: I created some files that provide the basics: account management, snapshots, and versioning (very basic). Is there something better?

+3  A: 

Is there even such a thing as a source control system written in PHP? I think what you're really looking for is something like Trac, Redmine, or Unfuddle (hosted, turn-key).

Those tools provide you with wikis, issue tracking, and messaging. They can also be integrated with a source control system like SVN. Unfuddle actually comes with SVN out of the box and you can start up a small project for free.

Update: Maybe you need the collaboration functions or a SVN front-end, including viewing code, but no check-out? If that's the case, you'll be better off using a SVN (or other source control system) front-end with integrated source control. Without that piece, you're going to end up working yourself to death making your code viewable.

Byron Sommardahl
But isn't Trac a front-end to a SVN server?
George Edison
Yes, but it sounds like you are REALLY looking for a collab tool. Maybe you could explain in your question why a simple collaboration tool wouldn't suit your needs.
Byron Sommardahl
Yes, Trac allows you to examine a SVN repository via your browser. (It also includes some ticketing and wiki functionality.)
Adam Backstrom
A: 

Git and Subversion give me the ability to download source code from a central repository, make changes, commit along the way for easy rollbacks, and push changes back to the server. Tools like Trac and Gitorious allow me to view files and changesets online. I have to ask the obvious: are you sure these tools aren't exactly what you're looking for?

Adam Backstrom
I just need something simple I can run on a shared server.
George Edison
A: 

Are you sure you really want a niche tool instead of a "real" source control system such as CVS or SVN? It is fairly easy to setup one of these. You could even get started using google code hosting or another online choice. In any case, if you end up actually needing something more powerful later on, you will already be there.

Or are you looking for more of a bug tracking system??

Justin Ethier
Take SO for example. It can generate DIFF-like output for revisions to questions.
George Edison
A: 

http://pastebin.com/

It's capable of posting revisions, and does syntax highlighting quite well.

Get a personal one here: http://pastebin.com/private_pastebin.php

Brendan Long
I'm looking for something I can use.
George Edison
... on my server.
George Edison
anomareh
A: 

This is what you need:

http://www.indefero.net/open-source/

Frank Malina