jelix/wikirenderer
Composer 安装命令:
composer require jelix/wikirenderer
包简介
WikiRenderer is a library to generate HTML or anything else from wiki content.
关键字:
README 文档
README
WikiRenderer 4 is a library to convert wiki content to an other format like HTML, Docbook, or other wiki syntax.
Warning: the master branch is currently unstable since we rework many things. Go to the 3.x branch to have a stable release. Documentation and the website are not updated yet for WikiRenderer 4.
WikiRenderer 4.0-pre supports these following markups:
- Dokuwiki syntax
- Trac syntax
- WR3 (a markup specific to WikiRenderer 3.0)
- ClassicWR (a markup specific to WikiRenderer 1.0)
And it can generates HTML, Docbook, or cleaned text.
In the final release, support of Markdown markup and Markdown generator are planed.
Install
You can install it from Composer. See the page on Packagist.org
Quick example
// first choose a Markup, by instancying its configuration object // here we want to parse DokuWiki syntax $markupConfig = new \WikiRenderer\Markup\DokuWiki\Config(); // then choose a generator, e.g., the object which generates // the result text in the expected format. Here, HTML... $genConfig = new \WikiRenderer\Generator\Html\Config(); $generator = new \WikiRenderer\Generator\Html\Document($genConfig); // now instancy the WikiRenderer engine $wr = new \WikiRenderer\Renderer($generator, $markupConfig); // call render() method: it will parse DokuWiki syntax, and will // generate HTML content $html = $wr->render($awikitext);
Note: this is a new API and it may change until the release of 4.0.
Documentation and website
English and french documentation is on http://wikirenderer.jelix.org.
The documentation is not up-to-date and talk about WikiRenderer 3 which is not compatible with WikiRenderer 4. Help is welcome to update documentation and the website ;-)
jelix/wikirenderer 适用场景与选型建议
jelix/wikirenderer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 12.26k 次下载、GitHub Stars 达 17, 最近一次更新时间为 2014 年 12 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wiki」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 jelix/wikirenderer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jelix/wikirenderer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 jelix/wikirenderer 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Texy converts plain text in easy to read Texy syntax into structurally valid (X)HTML. It supports adding of images, links, nested lists, tables and has full support for CSS. Texy supports hyphenation of long words (which reflects language rules), clickable emails and URL (emails are obfuscated again
Automatically logs-in users if they are already authenticated by a remote source. (e.g. environment variable REMOTE_USER)
An extension to Semantic MediaWiki allowing to build breadcrumb links from an attributive property filter
Adds the EDTF data type to Wikibase
Wikipedia/MediaWiki Grabber for Laravel.
A highly flexible MediaWiki skin using Twitter Bootstrap 3
统计信息
- 总下载量: 12.26k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 17
- 点击次数: 10
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: LGPL-2.1
- 更新时间: 2014-12-02