PHPackages                             michaeldrennen/pandoc - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. michaeldrennen/pandoc

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

michaeldrennen/pandoc
=====================

A php 7 compatible wrapper around the Pandoc file conversion software.

v1.03(8y ago)11.2kMITPHP

Since Oct 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/michaeldrennen/pandoc)[ Packagist](https://packagist.org/packages/michaeldrennen/pandoc)[ RSS](/packages/michaeldrennen-pandoc/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (2)Versions (5)Used By (0)

pandoc
======

[](#pandoc)

[![Latest Stable Version](https://camo.githubusercontent.com/387dbb715fa3f6c7d6d3523f9fec8a9d46c59dbf5c46c94a7afd921ccca0257a/68747470733a2f2f706f7365722e707567782e6f72672f6d69636861656c6472656e6e656e2f70616e646f632f762f737461626c65)](https://packagist.org/packages/michaeldrennen/pandoc) [![Total Downloads](https://camo.githubusercontent.com/85f9788dbe4c65e268551bf64e04f46e5a8764397ac64ad047e9f9ae3508de71/68747470733a2f2f706f7365722e707567782e6f72672f6d69636861656c6472656e6e656e2f70616e646f632f646f776e6c6f616473)](https://packagist.org/packages/michaeldrennen/pandoc) [![License](https://camo.githubusercontent.com/c25c8751c9394512a2f752072036e3856ba924a687f41cd145c29d5d91ea2fab/68747470733a2f2f706f7365722e707567782e6f72672f6d69636861656c6472656e6e656e2f70616e646f632f6c6963656e7365)](https://packagist.org/packages/michaeldrennen/pandoc) [![Coverage Status](https://camo.githubusercontent.com/b458e47a7212c70c379cd805d83b5e1eb156a638e257d87b9c9ca0805beb8c0f/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d69636861656c6472656e6e656e2f70616e646f632f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/michaeldrennen/pandoc?branch=master) [![Build Status](https://camo.githubusercontent.com/b10775b6643c008c861d939d1d1ea7935725d7bd6f0d6ca9756d30ed9aa76040/68747470733a2f2f7472617669732d63692e6f72672f6d69636861656c6472656e6e656e2f70616e646f632e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/michaeldrennen/pandoc)

PHP 7 compatible wrapper around Pandoc ()

Usage
-----

[](#usage)

### From file -&gt; To file

[](#from-file---to-file)

```
$pandoc = new Pandoc();
$pandoc->fromFile('./from.txt')
       ->toFile('./to.docx')
       ->convert();
```

### String content -&gt; To file

[](#string-content---to-file)

```
$pandoc = new Pandoc();
$pandoc->content('Wow, I really Cronenberged up the whole place, huh Morty?')
       ->toFile('./to.docx')
       ->convert();
```

With exception handling
-----------------------

[](#with-exception-handling)

```
try{
    $pandoc = new Pandoc();
    $pandoc->fromFile('./from.txt')
           ->toFile('./to.docx')
           ->convert();
} catch(PandocException $exception) {
    echo $exception->getMessage();
}
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~45 days

Total

4

Last Release

2996d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b701baeed9e105a4a117e363b478d932306516c9365b4f2e3ef2dfed358f608b?d=identicon)[michaeldrennen](/maintainers/michaeldrennen)

---

Top Contributors

[![michaeldrennen](https://avatars.githubusercontent.com/u/5288190?v=4)](https://github.com/michaeldrennen "michaeldrennen (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/michaeldrennen-pandoc/health.svg)

```
[![Health](https://phpackages.com/badges/michaeldrennen-pandoc/health.svg)](https://phpackages.com/packages/michaeldrennen-pandoc)
```

###  Alternatives

[aristath/ari-color

A PHP library for color manipulation in themes and plugins

6128.6k](/packages/aristath-ari-color)[symfony/ux-notify

Native notification integration for Symfony

1274.7k](/packages/symfony-ux-notify)[thestringler/manipulator

An OOP approach to string manipulation.

345.5k2](/packages/thestringler-manipulator)[hauntd/yii2-vote

Votes, likes, favorites.

383.1k](/packages/hauntd-yii2-vote)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
