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

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

ondrs/pandoc-php
================

PHP pandoc

v0.1.0(9y ago)25.7k1MITPHPPHP &gt;=5.4.0

Since Aug 24Pushed 8y ago2 watchersCompare

[ Source](https://github.com/ondrs/pandoc-php)[ Packagist](https://packagist.org/packages/ondrs/pandoc-php)[ RSS](/packages/ondrs-pandoc-php/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

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

[](#pandoc-php)

[![Total Downloads](https://camo.githubusercontent.com/ab92e4081ffad6609a8834e3694d7ba0b8023cde51dd76734513f6b7bf1ea47c/68747470733a2f2f706f7365722e707567782e6f72672f6f6e6472732f70616e646f632d7068702f646f776e6c6f616473)](https://packagist.org/packages/ondrs/pandoc-php)[![Build Status](https://camo.githubusercontent.com/5f69af3b0c7184c3c592741e91854a3864fb88eab25acddfc3240bed4477836d/68747470733a2f2f7472617669732d63692e6f72672f6f6e6472732f70616e646f632d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ondrs/pandoc-php)[![Latest Stable Version](https://camo.githubusercontent.com/9ecf96fc50bcd8860ef8d0acaebbf1342b9803d3be362de1cf9a5181d90d020c/68747470733a2f2f706f7365722e707567782e6f72672f6f6e6472732f70616e646f632d7068702f762f737461626c65)](https://packagist.org/packages/ondrs/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": {
        "ondrs/pandoc-php": "v0.1.0"
    }
}
```

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

```
$pandoc = new Pandoc('/path/to/temp/dir');
$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('/path/to/temp/dir');
$options = array(
    "from"  => "markdown",
    "to"    => "html",
    "css"   => "/assets/css/documents.css"
);
$html = $pandoc->runWith("#Hello Pandoc", $options);
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.6% 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

Unknown

Total

1

Last Release

3601d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/828362?v=4)[Ondřej Plšek](/maintainers/ondrs)[@ondrs](https://github.com/ondrs)

---

Top Contributors

[![ondrs](https://avatars.githubusercontent.com/u/828362?v=4)](https://github.com/ondrs "ondrs (19 commits)")[![jeroenmoors](https://avatars.githubusercontent.com/u/1665245?v=4)](https://github.com/jeroenmoors "jeroenmoors (3 commits)")[![n1c01a5](https://avatars.githubusercontent.com/u/1773356?v=4)](https://github.com/n1c01a5 "n1c01a5 (1 commits)")

---

Tags

wrapperpandoc

### Embed Badge

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

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

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M25.2k](/packages/friendsofphp-php-cs-fixer)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[phpactor/phpactor

PHP refactoring and intellisense tool for text editors

1.9k17.1k1](/packages/phpactor-phpactor)

PHPackages © 2026

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