PHPackages                             kzykhys/pygments - 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. kzykhys/pygments

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

kzykhys/pygments
================

A Thin Wrapper for the Python Pygments

v1.0.0(12y ago)915.0k↓50%14[4 issues](https://github.com/kzykhys/Pygments.php/issues)[3 PRs](https://github.com/kzykhys/Pygments.php/pulls)1PHPPHP &gt;=5.3.2

Since Dec 18Pushed 9y ago2 watchersCompare

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

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

Pygments.php - A Thin Wrapper for the Python Pygments
=====================================================

[](#pygmentsphp---a-thin-wrapper-for-the-python-pygments)

[![Latest Stable Version](https://camo.githubusercontent.com/895db85988d4d4670e00b7d857652b8616b6cc8bc804328fc5054034a9431ba2/68747470733a2f2f706f7365722e707567782e6f72672f6b7a796b6879732f7079676d656e74732f762f737461626c652e706e67)](https://packagist.org/packages/kzykhys/pygments)[![Build Status](https://camo.githubusercontent.com/a18dffe32e64766b9a59ba28593e842d862f68ed929d38761bb1e735d428ea9c/68747470733a2f2f7472617669732d63692e6f72672f6b7a796b6879732f5079676d656e74732e7068702e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/kzykhys/Pygments.php)[![Coverage Status](https://camo.githubusercontent.com/c02a1098104e26771446c4eb3205508289be6ea0c15790c70a2c52dcfe1ef6b9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6b7a796b6879732f5079676d656e74732e7068702f62616467652e706e67)](https://coveralls.io/r/kzykhys/Pygments.php)[![SensioLabsInsight](https://camo.githubusercontent.com/7faf06630c932e1b875587576f43136d1c82cc014294796f4ed5dae87f4e9222/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f33656664646436312d663665322d346634612d393439642d3963613732333066366535362f6d696e692e706e67)](https://insight.sensiolabs.com/projects/3efddd61-f6e2-4f4a-949d-9ca7230f6e56)

A PHP wrapper for the Python Pygments syntax highlighter

Requirements
------------

[](#requirements)

- PHP5.3+
- Python 2.4+
- Pygments (`sudo easy_install Pygments`)

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

[](#installation)

Create or update your composer.json and run `composer update`

```
{
    "require": {
        "kzykhys/pygments": ">=1.0"
    }
}
```

Usage
-----

[](#usage)

### Highlight the source code

[](#highlight-the-source-code)

```
