PHPackages                             designburo/php-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. designburo/php-pandoc

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

designburo/php-pandoc
=====================

v1.0.1(1mo ago)04↓100%2MITPHP

Since Mar 13Pushed 1mo agoCompare

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

READMEChangelog (1)DependenciesVersions (3)Used By (2)

Warning

This repo is not maintained.

Pandoc PHP
==========

[](#pandoc-php)

[![Build Status](https://camo.githubusercontent.com/27e03d8b75a75342bf5e4ba8424a17e8c69e54f3a45566fcee9578f3645388e6/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7279616b61642f70616e646f632d7068702e706e67)](http://travis-ci.org/ryakad/pandoc-php)

Pandoc PHP is a naive wrapper for the Pandoc command. Pandoc is a Haskell program that allows you to convert documents from one format to another. For more information on Pandoc you can look [here](https://github.com/jgm/pandoc).

Installation
------------

[](#installation)

First you will need [Pandoc](https://github.com/jgm/pandoc). The easiest method to get this is with a quick `cabal install pandoc` providing you have Haskell installed. (apt-get also supports installation of Pandoc using `apt-get install pandoc`you just need to make sure you have at least version 1.10 for this library).

The recommended method to installing Pandoc PHP is with [composer](http://getcomposer.org)

```
{
    "require": {
        "ryakad/pandoc-php": "~1.0"
    }
}
```

Once installed you can start converting your content to other formats like:

```
$pandoc = new Pandoc();
$html = $pandoc->convert("#Hello Pandoc", "markdown_github", "html");
// $html == "Hello Pandoc"
```

For a full listing of formats that can be converted to/from you should take a look at the Pandoc documentation or the Pandoc help message `pandoc --help`.

If you need more control over how the conversion will be executed, use the `runWith` method. This method takes two arguments, content to convert and an array containing options. The options array can hold any of the pandoc command line options, see `pandoc --help`.

```
$pandoc = new Pandoc\Pandoc();
$options = array(
    "from"  => "markdown",
    "to"    => "html",
    "css"   => "/assets/css/documents.css"
);
$html = $pandoc->runWith("#Hello Pandoc", $options);
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance89

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor3

3 contributors hold 50%+ of commits

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 ~0 days

Total

2

Last Release

58d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/448156344db8c81e27f2e002c7c12f0b7f028b48ccfb5fe3cd40e391e6723989?d=identicon)[Designburo](/maintainers/Designburo)

---

Top Contributors

[![Designburo](https://avatars.githubusercontent.com/u/7594925?v=4)](https://github.com/Designburo "Designburo (5 commits)")[![jeroenmoors](https://avatars.githubusercontent.com/u/1665245?v=4)](https://github.com/jeroenmoors "jeroenmoors (3 commits)")[![ryakad](https://avatars.githubusercontent.com/u/1429838?v=4)](https://github.com/ryakad "ryakad (3 commits)")[![n1c01a5](https://avatars.githubusercontent.com/u/1773356?v=4)](https://github.com/n1c01a5 "n1c01a5 (2 commits)")[![btopro](https://avatars.githubusercontent.com/u/329735?v=4)](https://github.com/btopro "btopro (2 commits)")[![animir](https://avatars.githubusercontent.com/u/4623196?v=4)](https://github.com/animir "animir (1 commits)")[![JorisM](https://avatars.githubusercontent.com/u/294174?v=4)](https://github.com/JorisM "JorisM (1 commits)")

### Embed Badge

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

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

###  Alternatives

[pocketmine/math

PHP library containing math related code used in PocketMine-MP

45573.2k14](/packages/pocketmine-math)[nathancox/minify

Minifies CSS requirements using Minify (http://code.google.com/p/minify/)

28143.4k1](/packages/nathancox-minify)

PHPackages © 2026

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