PHPackages                             otis22/reverso - 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. otis22/reverso

ActiveLibrary[API Development](/categories/api)

otis22/reverso
==============

Library for working with reverso context api

0.0.6(1y ago)01001MITPHP

Since Aug 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/otis22/reverso)[ Packagist](https://packagist.org/packages/otis22/reverso)[ RSS](/packages/otis22-reverso/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (6)Versions (7)Used By (0)

otis22/reverso
==============

[](#otis22reverso)

[![EO badge](https://camo.githubusercontent.com/5c7a27b75a8da4be52680df944abec4ccc4d0151df036e0793b8c9b16cbe3d1e/68747470733a2f2f7777772e656c6567616e746f626a656374732e6f72672f62616467652e737667)](https://camo.githubusercontent.com/5c7a27b75a8da4be52680df944abec4ccc4d0151df036e0793b8c9b16cbe3d1e/68747470733a2f2f7777772e656c6567616e746f626a656374732e6f72672f62616467652e737667)

Library for working with [context.reverso.net](https://context.reverso.net/) api

[![GitHub CI](https://github.com/otis22/reverso/workflows/CI/badge.svg)](https://github.com/otis22/reverso/workflows/CI/badge.svg)[![Coverage Status](https://camo.githubusercontent.com/832bddf25197cfd14126d341b84dec8ecc7adb12153bb270792c168df7e9d2c1/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6f74697332322f7265766572736f2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/otis22/reverso?branch=master)

How to use
----------

[](#how-to-use)

```
composer require otis22/reverso

```

**Be careful library can translate only one a single word**

**Available language list:** en, fr, es, de, it, pt, ru, ro, cz, zh

```
use Otis22\Reverso\Context;

$context = Context::fromLanguagesAndWord("ru", "en", "пример");

$context->original(); # return "пример"

$context->firstInDictionary(); # return "example" word, because it is the most popular variant in the reverso.net

$context->dictionary(); #return synonyms array ['example', 'sample', 'case', ...]

$context->examples(); #return examples sentences
/**
    [
        [
            'source' => 'Красивый пример - прошлогодняя эпидемия свиного гриппа.',
            'target' => 'So a nice example of this came from last year and swine flu.'
        ],
        ...
    ]
*/
```

[Why it looks so?(In Russian)](https://otis22.github.io/unit/testing/2021/08/07/for-interns.html)

Contributing
------------

[](#contributing)

For run all tests

```
make all
```

or connect to terminal

```
make exec
```

*Dafault php version is 7.4*. Use PHP\_VERSION= for using custom version.

```
make all PHP_VERSION=8.0
# run both
make all PHP_VERSION=7.4 && make all PHP_VERSION=8.0
```

all commands

```
# composer install
make install
# composer install with --no-dev
make install-no-dev
# check code style
make style
# fix code style
make style-fix
# run static analyze tools
make static-analyze
# run unit tests
make unit
#  check coverage
make coverage
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95% 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 ~216 days

Recently: every ~270 days

Total

6

Last Release

656d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/61097a8108512dbb04c61cea2c5e2291b31dacc2404e882b2aa12688e587b088?d=identicon)[vromanichev](/maintainers/vromanichev)

---

Top Contributors

[![otis22](https://avatars.githubusercontent.com/u/378373?v=4)](https://github.com/otis22 "otis22 (19 commits)")[![devgaucho](https://avatars.githubusercontent.com/u/119246170?v=4)](https://github.com/devgaucho "devgaucho (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/otis22-reverso/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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