PHPackages                             textualization/ropherta - 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. textualization/ropherta

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

textualization/ropherta
=======================

Compute RoBERTa embeddings using ONNX framework.

v0.0.11(2y ago)41123[1 PRs](https://github.com/Textualization/Ropherta/pulls)1MITPHP

Since Aug 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Textualization/Ropherta)[ Packagist](https://packagist.org/packages/textualization/ropherta)[ Fund](https://ko-fi.com/textualization)[ RSS](/packages/textualization-ropherta/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (12)Used By (1)

Compute RoBERTa embeddings in PHP using ONNX framework.
=======================================================

[](#compute-roberta-embeddings-in-php-using-onnx-framework)

This brings the power of Transformers to the PHP world.

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

[](#installation)

Add this project to your dependencies

```
composer require textualization/ropherta
composer update

```

Before using it, you will need to install the ONNX framework:

```
composer exec -- php -r "require 'vendor/autoload.php'; OnnxRuntime\Vendor::check();"

```

and download the RoBERTa ONNX model (this takes a while, the model is 477Mb in size):

```
composer exec -- php -r "require 'vendor/autoload.php'; Textualization\Ropherta\Vendor::check();"

```

Computing embeddings
--------------------

[](#computing-embeddings)

```
$model = new RophertaModel();

$emb = $model->embeddings("Text");
```

Check `\Textualization\Ropherta\Distances` to check whether two embeddings are closer to each other.

Using custom embeddings
-----------------------

[](#using-custom-embeddings)

```
$model = new RophertaModel("/path/to/model.onnx");
$emb = $model->embeddings("Text");
```

To fine-tune a model you will need a large amount of in-domain text and use Python in a machine with a GPU. See [tuning](tuning/) for details.

Sponsors
--------

[](#sponsors)

We thank our sponsor:

[![](https://camo.githubusercontent.com/fa0fa4bf60ec8eeb4d2a15311000fc2b3767fb96f788f6bf502d1117a734a221/68747470733a2f2f65766f6c75646174612e636f6d2f646973706c6179323038)](https://evoludata.com/)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.4% 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 ~26 days

Recently: every ~19 days

Total

11

Last Release

741d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/970f356fe04869413a212efcf75d122352265e34d9cd35d85b0fe7d51ef25162?d=identicon)[textualization](/maintainers/textualization)

---

Top Contributors

[![DrDub](https://avatars.githubusercontent.com/u/315403?v=4)](https://github.com/DrDub "DrDub (17 commits)")[![benoitg](https://avatars.githubusercontent.com/u/709901?v=4)](https://github.com/benoitg "benoitg (1 commits)")

---

Tags

embeddingsmachine-learningnatural-language-processingphp-libraryroberta-model

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/textualization-ropherta/health.svg)

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

###  Alternatives

[yooper/php-text-analysis

PHP Text Analysis is a library for performing Information Retrieval (IR) and Natural Language Processing (NLP) tasks using the PHP language

539393.0k2](/packages/yooper-php-text-analysis)[recca0120/laravel-erd

Laravel ERD automatically generates Entity-Relationship Diagrams from your Laravel models and displays them using Vuerd.

36072.0k](/packages/recca0120-laravel-erd)[emulsify-ds/emulsify-drupal

The official Drupal base theme for Emulsify that generates custom themes with Storybook development + Webpack Build

96539.1k2](/packages/emulsify-ds-emulsify-drupal)[vanderlee/php-sentence

Simple text sentence splitting and counting. Supports at least english, german and dutch, possibly more.

84555.7k6](/packages/vanderlee-php-sentence)

PHPackages © 2026

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