PHP 中的库/工具,用于 wiki 风格的差异和历史记录
背景
我正在寻找创建一个维基风格的网站。 首先我看了一下 http://en.wikipedia.org/wiki/List_of_wiki_software 想要使用 PHP 并且对使用纯文件存储持怀疑态度,因此选择被限制为三个替代方案:
- Tiki Wiki CMS Groupware
- PhpWiki
- MediaWiki
如果我错了请纠正我,但所有这些都感觉非常重量级,对于一个相当小的项目来说几乎有点矫枉过正。
问题
我的想法是使用某种现有的库和/或工具来处理历史记录、差异和标记部分,但自己实现其余部分。
您知道有类似的(好的)库和/或工具吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用诸如
Markdown
之类的现有库来标记 wiki 文本。如果有必要的话可以延长。 wiki 的 diff 算法可以像您希望的那样简单。 google 上php diff
的第一个结果显示了一个极其简单的算法,它可能会帮助您朝着正确的方向开始。PHP Diff 算法
PHP Markdown
另外不要忘记 Github!那里有各种用 PHP 编写的 wiki 项目。 喜欢这个!
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 forphp 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!