Zeta Two
Zeta Two

Reputation: 1806

Library/tools in PHP for wiki-style diff and history

Background

I'm looking to create a wiki-style website. First I took a look at http://en.wikipedia.org/wiki/List_of_wiki_software Wanting to use PHP and being sceptic about using plain file storage the choice was lijited down to three alternatives:

Correct me if I'm wrong but all of these felt very heavyweight and pretty much overkill for a rather small project.

The question

My idea was then to use some kind of existing libraries and/or tools for the history, diff and markup parts but implementing the rest myself.

Do you know of any (good) libraries and/or tools like these?

Upvotes: 2

Views: 692

Answers (1)

Chris G.
Chris G.

Reputation: 3981

Use an existing library like Markdown for marking up wiki text. Extend it if you have to. A diff algorithm for a wiki can be as trivial as you want it to be. First result on google for php diff showed an extremely simple algorithm that will probably get you started in the right direction.

PHP Diff Algorithm

PHP Markdown

Also don't forget about Github! There are all kinds of wiki projects written in PHP on there. Like this one!

Upvotes: 2

Related Questions