PHPackages                             webeweb/syntaxhighlighter-bundle - 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. [API Development](/categories/api)
4. /
5. webeweb/syntaxhighlighter-bundle

Abandoned → [webeweb/core-bundle](/?search=webeweb%2Fcore-bundle)ArchivedSymfony-bundle[API Development](/categories/api)

webeweb/syntaxhighlighter-bundle
================================

Integrate SyntaxHighlighter with Symfony 2 and more

v3.3.1(6y ago)310.4kMITPHPPHP ^5.6|^7.0

Since Jun 23Pushed 6y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (15)Versions (32)Used By (0)

syntaxhighlighter-bundle
========================

[](#syntaxhighlighter-bundle)

[![Build Status](https://camo.githubusercontent.com/3aa4bced4bc46b89dbe3763e179d14807cf52d05811b82236824f79d55f8ba78/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f776562657765622f73796e746178686967686c6967687465722d62756e646c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.com/webeweb/syntaxhighlighter-bundle)[![Coverage Status](https://camo.githubusercontent.com/d3eb35fb582ec57e2b5ec629eafeba9ce6491ec73c771efd177a89109e2fceac/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f776562657765622f73796e746178686967686c6967687465722d62756e646c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/webeweb/syntaxhighlighter-bundle?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/9759a4f143b588563f85ae8f301b06fefd7ebd383083ea3740c1a8569dd199a1/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f776562657765622f73796e746178686967686c6967687465722d62756e646c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/webeweb/syntaxhighlighter-bundle/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/7dd8cf046d065ea6f46b25060f2380aaab64b1bfa847b1ff5d0cf3704016d3e9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776562657765622f73796e746178686967686c6967687465722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webeweb/syntaxhighlighter-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/c3dc66d42408ff425372ace2997b928ab39659a85100deeb95d928a8fa2f29af/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f776562657765622f73796e746178686967686c6967687465722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webeweb/syntaxhighlighter-bundle)[![License](https://camo.githubusercontent.com/76183d514239dd5eef68498434ffa484b2b7126b86b5f6db5c9eafda3021b050/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f776562657765622f73796e746178686967686c6967687465722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webeweb/syntaxhighlighter-bundle)[![composer.lock](https://camo.githubusercontent.com/7de7a804bd6140ed9930c0194534e58bc53b1fcdc260d727baae460969a1f285/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2e6c6f636b2d756e636f6d6d697465642d696d706f7274616e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webeweb/syntaxhighlighter-bundle)

Integrate SyntaxHighlighter with Symfony 2 and more.

> IMPORTANT NOTICE: This package is no longer maintained and its classes have been migrated into package "core-bundle" (available into version up to 2.15.0 and more) [Core bundle](https://github.com/webeweb/core-bundle/)

`syntaxhighlighter-bundle` eases the use of SyntaxHighlighter to highlight syntax in your Symfony application by providing Twig extensions and PHP objects to do the heavy lifting. The bundle include the excellent JS library [SyntaxHighlighter](http://alexgorbatchev.com/SyntaxHighlighter/).

Dry out your SyntaxHighlighter code by writing it all in PHP !

Includes:

- [SyntaxHighlighter 3.0.83](http://alexgorbatchev.com/SyntaxHighlighter/)

---

Compatibility
-------------

[](#compatibility)

[![PHP](https://camo.githubusercontent.com/f1d7536ffd641f77e3bde17d925f803443ab950a4518fddd6cb282b3b90f1c5b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f776562657765622f73796e746178686967686c6967687465722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](http://php.net)[![Symfony](https://camo.githubusercontent.com/c467a3d4a969f2a8aa56d59b25e95bbd0938945ee59fd4c49f4eb180dd228045/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73796d666f6e792d253545322e37253743253545332e30253743253545342e302d6272696768746e6573732e7376673f7374796c653d666c61742d737175617265)](https://symfony.com)

---

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

[](#installation)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this package:

```
$ composer require webeweb/syntaxhighlighter-bundle
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md) of the Composer documentation.

Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project:

```
    public function registerBundles() {
        $bundles = [
            // ...
            new WBW\Bundle\CoreBundle\WBWCoreBundle(),
            new WBW\Bundle\SyntaxHighlighterBundle\WBWSyntaxHighlighterBundle(),
        ];

        // ...

        return $bundles;
    }
```

Once the bundle is added then do:

```
$ php bin/console wbw:core:unzip-assets
$ php bin/console assets:install
```

---

Usage
-----

[](#usage)

Read the [documentation](Resources/doc/index.md).

---

Testing
-------

[](#testing)

To test the package, is better to clone this repository on your computer. Open a command console and execute the following commands to download the latest stable version of this package:

```
$ git clone https://github.com/webeweb/syntaxhighlighter-bundle.git
$ cd syntaxhighlighter-bundle
$ composer install
```

Once all required libraries are installed then do:

```
$ vendor/bin/phpunit
```

---

License
-------

[](#license)

`syntaxhighlighter-bundle` is released under the MIT License. See the bundled [LICENSE](LICENSE) file for details.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity69

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

Recently: every ~31 days

Total

31

Last Release

2403d ago

Major Versions

v1.0.10 → v2.0.02018-11-19

v2.5.2 → v3.0.02019-05-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/3af0f8a26f2253921537f363ec984cd5a459cf3f0b3cec0bc70bdb8d8c723612?d=identicon)[webeweb](/maintainers/webeweb)

---

Top Contributors

[![webeweb](https://avatars.githubusercontent.com/u/32354830?v=4)](https://github.com/webeweb "webeweb (402 commits)")

---

Tags

apibundlesymfonysyntaxhighlighterwebewebsymfonybundlewebewebSyntaxHighlighter

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/webeweb-syntaxhighlighter-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/webeweb-syntaxhighlighter-bundle/health.svg)](https://phpackages.com/packages/webeweb-syntaxhighlighter-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[lexik/translation-bundle

This bundle allows to import translation files content into the database and provide a GUI to edit translations.

4362.7M19](/packages/lexik-translation-bundle)[artgris/filemanager-bundle

FileManager is a simple Multilingual File Manager Bundle for Symfony

182420.8k9](/packages/artgris-filemanager-bundle)[thecodingmachine/graphqlite-bundle

A Symfony bundle for thecodingmachine/graphqlite.

371.6M3](/packages/thecodingmachine-graphqlite-bundle)[stfalcon-studio/api-bundle

Base classes and helper services to build API application via Symfony.

1032.1k](/packages/stfalcon-studio-api-bundle)

PHPackages © 2026

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