Download the PHP package phpexperts/tempest-highlight-api without Composer
On this page you can find all versions of the php package phpexperts/tempest-highlight-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download phpexperts/tempest-highlight-api
More information about phpexperts/tempest-highlight-api
Files in phpexperts/tempest-highlight-api
Download phpexperts/tempest-highlight-api
More information about phpexperts/tempest-highlight-api
Files in phpexperts/tempest-highlight-api
Vendor phpexperts
Package tempest-highlight-api
Short Description A light-weight, dockerized API server for tempest/highlight.
License MIT
Package tempest-highlight-api
Short Description A light-weight, dockerized API server for tempest/highlight.
License MIT
Please rate this library. Is it a good library?
Informations about the package tempest-highlight-api
tempest/highlight API Server
This code is hosted at https://highlight.phpexperts.pro/
License: MIT
https://github.com/PHPExpertsInc/highlight.phpexperts.pro/
API Routes
POST: /highlight
{
"lang": "language",
"text": "JSON-encoded text"
}
Output: text/html
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
Pure JavaScript Client
PHP Client
First, composer require phpexperts/rest-speaker
. Then:
Copy [src/client.php] or copy this code directly.
All versions of tempest-highlight-api with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.3
ext-json Version *
tempest/highlight Version ^1.0
phpexperts/dockerize Version ^9.1
pecee/simple-router Version ^5.4
phpexperts/rest-speaker Version ^2.6
ext-json Version *
tempest/highlight Version ^1.0
phpexperts/dockerize Version ^9.1
pecee/simple-router Version ^5.4
phpexperts/rest-speaker Version ^2.6
The package phpexperts/tempest-highlight-api contains the following files
Loading the files please wait ....