michaeldrennen/pandoc
最新稳定版本:v1.03
Composer 安装命令:
composer require michaeldrennen/pandoc
包简介
A php 7 compatible wrapper around the Pandoc file conversion software.
README 文档
README
PHP 7 compatible wrapper around Pandoc (https://github.com/jgm/pandoc)
Usage
From file -> To file
$pandoc = new Pandoc(); $pandoc->fromFile('./from.txt') ->toFile('./to.docx') ->convert();
String content -> To file
$pandoc = new Pandoc(); $pandoc->content('<p>Wow, I really Cronenberged up the whole place, huh Morty?</p>') ->toFile('./to.docx') ->convert();
With exception handling
try{ $pandoc = new Pandoc(); $pandoc->fromFile('./from.txt') ->toFile('./to.docx') ->convert(); } catch(PandocException $exception) { echo $exception->getMessage(); }
统计信息
- 总下载量: 1.26k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-10-14