PHPackages                             prod3v3loper/syntaxo - 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. prod3v3loper/syntaxo

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

prod3v3loper/syntaxo
====================

Multi Syntax Highlighter programmed with PHP. Immediately ready for use and can be used anywhere in seconds.

v1.0.0(7y ago)217MITPHPPHP &gt;=7.0

Since Feb 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/prod3v3loper/syntaxo)[ Packagist](https://packagist.org/packages/prod3v3loper/syntaxo)[ Docs](https://www.tnado.com/open-source-projects-by-prod3v3loper/)[ RSS](/packages/prod3v3loper-syntaxo/feed)WikiDiscussions master Synced 2d ago

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

[![Melabuai Logo](https://raw.githubusercontent.com/prod3v3loper/syntaxo/master/img/icon-MB.png "Melabuai Brand")](https://raw.githubusercontent.com/prod3v3loper/syntaxo/master/img/icon-MB.png)

[![Language](https://camo.githubusercontent.com/0aae70369f373c94de20c0c32f41d0db81d35ac30b45439d49808a8ec6968a9f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f746f702f70726f643376336c6f7065722f73796e7461786f2e7376673f7374796c653d666c6174 "Language")](https://camo.githubusercontent.com/0aae70369f373c94de20c0c32f41d0db81d35ac30b45439d49808a8ec6968a9f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f746f702f70726f643376336c6f7065722f73796e7461786f2e7376673f7374796c653d666c6174)[![Packgist PHP Version](https://camo.githubusercontent.com/91288e5587c103987221765284dd81da77770956f22b9e183b368f584b42b22e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f70726f643376336c6f7065722f73796e7461786f2e7376673f7374796c653d666c6174 "Packgist PHP Version")](https://camo.githubusercontent.com/91288e5587c103987221765284dd81da77770956f22b9e183b368f584b42b22e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f70726f643376336c6f7065722f73796e7461786f2e7376673f7374796c653d666c6174)[![Packagist Version](https://camo.githubusercontent.com/1184b1329887e9297faaf7d01cdac367c1a92223fa8c08328d8ad779188d525b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70726f643376336c6f7065722f73796e7461786f2e7376673f7374796c653d666c6174 "Packigist Version")](https://packagist.org/packages/prod3v3loper/syntaxo "Packigist Version")[![Repo Siz](https://camo.githubusercontent.com/7c6513a2ae933c4a3adbb0c8f55e36a4582a362fd4bb43b5d47313244067253c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f70726f643376336c6f7065722f73796e7461786f2e7376673f7374796c653d666c6174 "Repo Size")](https://camo.githubusercontent.com/7c6513a2ae933c4a3adbb0c8f55e36a4582a362fd4bb43b5d47313244067253c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f70726f643376336c6f7065722f73796e7461786f2e7376673f7374796c653d666c6174)[![Code Siz](https://camo.githubusercontent.com/7ebc6747219d545831b43e0734382fdb677dadbbb43fa21d65380b4ef0a41033/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f70726f643376336c6f7065722f73796e7461786f2e7376673f7374796c653d666c6174 "Code Size")](https://camo.githubusercontent.com/7ebc6747219d545831b43e0734382fdb677dadbbb43fa21d65380b4ef0a41033/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f70726f643376336c6f7065722f73796e7461786f2e7376673f7374796c653d666c6174)[![Github Release date](https://camo.githubusercontent.com/cb7ff9c2c222c6cc42e0f9f3bc24e28e58ef060323c366e4be71163385f7343e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f70726f643376336c6f7065722f73796e7461786f2e7376673f7374796c653d666c6174 "Github Release date")](https://camo.githubusercontent.com/cb7ff9c2c222c6cc42e0f9f3bc24e28e58ef060323c366e4be71163385f7343e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f70726f643376336c6f7065722f73796e7461786f2e7376673f7374796c653d666c6174)[![MIT License](https://camo.githubusercontent.com/e25a8c970a33ba815d45861daf2f82cc036a02c9e3a96a9b56124f68a6b8ac56/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f70726f643376336c6f7065722f73796e7461786f2e7376673f7374796c653d666c6174 "MIT License")](https://github.com/prod3v3loper/syntaxo/blob/master/LICENSE "MIT License")[![Website](https://camo.githubusercontent.com/fbcf47cfbe532da7b83a1f9295035aa8f46d77b501694307b407adc33177da02/68747470733a2f2f696d672e736869656c64732e696f2f776562736974652d75702d646f776e2d677265656e2d7265642f68747470732f7777772e746e61646f2e636f6d2f6f70656e2d736f757263652d70726f6a656374732d62792d70726f643376336c6f7065722e7376673f7374796c653d666c6174 "Website")](https://www.tnado.com/open-source-projects-by-prod3v3loper/ "Website")

**melabuai**

🔮 SYNTAXO
=========

[](#-syntaxo)

Multi Syntax Highlighter programmed with PHP. Immediately ready for use and can be used anywhere in seconds.

[Theme Page of this Site](https://prod3v3loper.github.io/syntaxo/)

[![Size](https://camo.githubusercontent.com/a5767e238814aef3ce37f5decaf532deb931a99088ce5b2f89a1de494783b1a4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73697a652f70726f643376336c6f7065722f73796e7461786f2f7372632f53796e7461786f2e7068702e737667 "Size")](https://camo.githubusercontent.com/a5767e238814aef3ce37f5decaf532deb931a99088ce5b2f89a1de494783b1a4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73697a652f70726f643376336c6f7065722f73796e7461786f2f7372632f53796e7461786f2e7068702e737667)

- HTML
- CSS
- LESS
- SASS
- JavaScript
- PHP
- MySQL
- Perl And many more...

Usage
=====

[](#usage)

Very easy to use and very easy to modify. All you have to do is to include the file, instantiate the class, and call the method method with the string.

Packagist with Composer
-----------------------

[](#packagist-with-composer)

This solution extends the vendor autoloader because it calls the files with certain criteria. The extension allows you to call classes wherever the Autloder is involved.

Download [Composer](https://getcomposer.org/) local or global. Check for more [Tutorial - NetBeans with Composer and Packagist](https://www.tnado.com/blog/netbeans-with-composer-and-packagist-the-php-package-manager/) for this one.

You found the package on [Packigist - Syntaxo](https://packagist.org/packages/prod3v3loper/syntaxo).

Add the Syntaxo dependencie to the **composer.json** and set the autoload.

```
{
    "autoload": {
        "psr-4": { "Syn\\": "src/" }
    },
    "require": {
        "prod3v3loper/syntaxo": ">=1.0"
    },
```

Now run the composer install command with php

```
php composer.phar install

```

`index.php`

```
require_once __DIR__ . '/vendor/autoload.php';
$HIGHLIGHT = new \Syn\Syntaxo();
echo $HIGHLIGHT->process('

    Highlight

');
```

Git Install
-----------

[](#git-install)

```
git clone https://github.com/prod3v3loper/syntaxo.git /Users/username/projects/

```

Get per [Git](https://git-scm.com/) or [download](https://github.com/prod3v3loper/syntaxo/archive/master.zip) and use it.

`index.php`

```
require_once './src/Syntaxo.php';
$HIGHLIGHT = new \Syn\Syntaxo();
echo $HIGHLIGHT->process('

    Highlight

');
```

REGEX MODIFY
============

[](#regex-modify)

Here's a snippet of Syntaxo regex for comments on each language. And you can modify them as needed and get even better results.

```
// HTML
"/(&lt;\!\-\-[[:space:]]*.*[[:space:]]*\-\-&gt;)/isU" => '\\1',
// JavaScript
"/(\/\/.*\n+)/isU" => '\\1',
// CSS
"/(?" => '\\1',
```

Preview
=======

[](#preview)

[![The index.php preview](https://camo.githubusercontent.com/a5b4f26c8eede3e0675f8ec53903de192bd52e75b4ddad8241ce5b5e2f7e4f5f/68747470733a2f2f70726f643376336c6f7065722e6769746875622e696f2f73796e7461786f2f696d672f73796e7461786f2d6d756c74692d73796e7461782d686967686c6967687465722e706e67 "The index.php preview")](https://camo.githubusercontent.com/a5b4f26c8eede3e0675f8ec53903de192bd52e75b4ddad8241ce5b5e2f7e4f5f/68747470733a2f2f70726f643376336c6f7065722e6769746875622e696f2f73796e7461786f2f696d672f73796e7461786f2d6d756c74692d73796e7461782d686967686c6967687465722e706e67)

Contribute
==========

[](#contribute)

Please read the [contributing](https://github.com/prod3v3loper/syntaxo/blob/main/CONTRIBUTING.md).

Authors
=======

[](#authors)

**Samet Tarim** [prod3v3loper](https://www.tnado.com/author/prod3v3loper/)

License
=======

[](#license)

[MIT](https://github.com/prod3v3loper/syntaxo/blob/master/LICENSE)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2642d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d0f88e369d286100ecbbd910d7c859d0c779651ee3f6082c56c764ed2fd2062?d=identicon)[prod3v3loper](/maintainers/prod3v3loper)

---

Top Contributors

[![prod3v3loper](https://avatars.githubusercontent.com/u/16712059?v=4)](https://github.com/prod3v3loper "prod3v3loper (42 commits)")

---

Tags

composercsshighlighterhighlightinghtmljavascriptlessmysqlpackigistperlphpsasssyntaxsyntax-highlightersyntax-highlightingsyntax-themesyntaxhighlighterSyntaxHighlighter

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/prod3v3loper-syntaxo/health.svg)

```
[![Health](https://phpackages.com/badges/prod3v3loper-syntaxo/health.svg)](https://phpackages.com/packages/prod3v3loper-syntaxo)
```

PHPackages © 2026

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