dgtlmoon/embeddedwiki
Composer 安装命令:
composer require dgtlmoon/embeddedwiki
包简介
An ultra-light PHP/JS micro-wiki tool for those who wish to embed a wiki into an existing page and only need a limited feature set.
README 文档
README
An ultra-light PHP/JS micro-wiki tool for those who wish to embed a wiki into an existing page and only need a limited feature set.
Note: At the moment this is more an experiment to discover what's the least amount of code to implement such a feature, but your suggestions/pull requests are welcome!
Features
- Does not require any front end build tools.
- Uses
ezyang/HTMLPurifierfor the input/output santising. - Uses HTML5
contentEditablefor editing. - Uses pure inline JavaScript for all functionality.
Completely untested on several browsers :)
Installation
Requires SQLite support for versioning. (Hopefully make this extensible for other formats in the future)
Install the composer package.
Example
- Simply drop it into the page where you need a quick wiki!
- Change
/writeable/path/to/sqlitedbsto a path that your web-server can read/write from. - Change that same path in the update
receiver.php
$page_name = "some identifier"; require __DIR__ . '/vendor/autoload.php'; $wiki = new Embeddedwiki($page_name, "/writeable/path/to/sqlitedbs"); print $wiki->render();
Security
All input/output is passed via ezyang/HTMLPurifier
Future
- Add tests
- Expose a list of revision IDs, click to show that revision or revert
- Record IP/date/time/etc
- Cleaner OO, abstract storage etc
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-01-06