PHPackages                             partitech/php-tei-client - 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. partitech/php-tei-client

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

partitech/php-tei-client
========================

Simple php client for text embeddings inference from Hugging face

0.0.1(1y ago)1731MITPHP

Since Jul 19Pushed 1y ago2 watchersCompare

[ Source](https://github.com/partITech/php-tei-client)[ Packagist](https://packagist.org/packages/partitech/php-tei-client)[ RSS](/packages/partitech-php-tei-client/feed)WikiDiscussions main Synced 1mo ago

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

PHP TEI Client
==============

[](#php-tei-client)

This is a very simple PHP client for the [Text Embeddings Inference (TEI)](https://github.com/huggingface/text-embeddings-inference) server from Huggingface , which is a blazing fast inference solution for text embeddings models. This client allows you to easily interact with the TEI server's API endpoints for embedding, reranking, and prediction.

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

[](#installation)

You can install this package via Composer:

```
composer require partitech/php-tei-client
```

Usage
-----

[](#usage)

Here's a basic example of how to use the TEI client:

### Embedding

[](#embedding)

```
