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

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

ryakad/pandoc-php
=================

v1.0.0(11y ago)69261.0k↓25.6%296MITPHP

Since Jan 7Pushed 1y ago3 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (6)

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

46

—

FairBetter than 93% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity48

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor2

2 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

Unknown

Total

1

Last Release

4150d ago

### Community

Maintainers

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

---

Top Contributors

[![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)")[![btopro](https://avatars.githubusercontent.com/u/329735?v=4)](https://github.com/btopro "btopro (2 commits)")[![n1c01a5](https://avatars.githubusercontent.com/u/1773356?v=4)](https://github.com/n1c01a5 "n1c01a5 (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/ryakad-pandoc-php/health.svg)

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

###  Alternatives

[alom/graphviz

Graphviz generation for PHP

74651.4k9](/packages/alom-graphviz)[eclipxe/cfdiutils

PHP Common utilities for Mexican CFDI 3.2, 3.3 &amp; 4.0

141129.9k6](/packages/eclipxe-cfdiutils)[robertboes/inertia-breadcrumbs

Laravel package to automatically share breadcrumbs to Inertia

56129.1k](/packages/robertboes-inertia-breadcrumbs)[elhebert/laravel-sri

Subresource Integrity hash generator for laravel

40225.5k](/packages/elhebert-laravel-sri)[drupal-code-builder/drupal-code-builder

Code generator for Drupal

27241.1k1](/packages/drupal-code-builder-drupal-code-builder)[b13/bolt

Bolt - An easy TYPO3 integration basis

28202.9k2](/packages/b13-bolt)

PHPackages © 2026

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