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:
- Tiki Wiki CMS Groupware
- PhpWiki
- MediaWiki
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?
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!
精彩评论