PHPackages                             phpexperts/tempest-highlight-api - 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. phpexperts/tempest-highlight-api

ActiveProject[API Development](/categories/api)

phpexperts/tempest-highlight-api
================================

A light-weight, dockerized API server for tempest/highlight.

v1.5.0(2y ago)34MITPHPPHP ^8.3

Since Mar 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/PHPExpertsInc/highlight.phpexperts.pro)[ Packagist](https://packagist.org/packages/phpexperts/tempest-highlight-api)[ RSS](/packages/phpexperts-tempest-highlight-api/feed)WikiDiscussions trunk Synced 1mo ago

READMEChangelogDependencies (7)Versions (3)Used By (0)

tempest/highlight API Server
----------------------------

[](#tempesthighlight-api-server)

This code is hosted at

License: MIT

### API Routes

[](#api-routes)

```
POST: /highlight
{
    "lang":  "language",
    "text":  "JSON-encoded text"
}

Output: text/html

```

### Installation Instructions

[](#installation-instructions)

**Via Composer + Docker:**

```
composer create-project phpexperts/tempest-highlight-api
cd tempest-highlight-api
# Edit the desired HTTP port in `docker-compose.yml`.
docker compose up -d

```

**Via Git + Nginx:**

Running natively requires PHP v8.3 or higher with ext-json.

```
sudo -s
cd /var/www
git clone https://github.com/PHPExpertsInc/highlight.phpexperts.pro
cd highlight.phpexperts.pro/

# Add a new virtualhost:
cp docker/web/sites/001_default.conf  /etc/nginx/sites-available/999_my-highlighter.conf
# Edit it and add a `server_name my.url;` directive.
systemctl restart nginx

```

Clients
-------

[](#clients)

### Pure JavaScript Client

[](#pure-javascript-client)

```

    console.log("Hello, World!");

```

### PHP Client

[](#php-client)

First, `composer require phpexperts/rest-speaker`. Then:

Copy \[src/client.php\] or copy this code directly.

```
    use PHPExperts\RESTSpeaker\NoAuth;
    use PHPExperts\RESTSpeaker\RESTSpeaker;

    $url = 'https://highlight.phpexperts.pro';
    $highlighter = new class(new NoAuth(), $url) extends RESTSpeaker {
        public function highlight(string $language, string $text): string
        {
            $result = $this->post('/highlight', [
                'lang' => $language,
                'text' => $text
            ]);

            if ($this->getLastStatusCode() === 400) {
                throw new \RuntimeException($result);
            }

            return $result;
        }
    };

    echo $highlighter->highlight('PHP', 'echo "Hello, World!\n";');
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Every ~0 days

Total

2

Last Release

772d ago

### Community

Maintainers

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

---

Top Contributors

[![hopeseekr](https://avatars.githubusercontent.com/u/1125541?v=4)](https://github.com/hopeseekr "hopeseekr (5 commits)")

### Embed Badge

![Health badge](/badges/phpexperts-tempest-highlight-api/health.svg)

```
[![Health](https://phpackages.com/badges/phpexperts-tempest-highlight-api/health.svg)](https://phpackages.com/packages/phpexperts-tempest-highlight-api)
```

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)

PHPackages © 2026

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