PHPackages                             lingvanex/php-translator-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. lingvanex/php-translator-api

ActiveLibrary[API Development](/categories/api)

lingvanex/php-translator-api
============================

Lingvanex Translator, a cutting-edge cloud-based neural machine translation service

00PHP

Since Oct 21Pushed 1y agoCompare

[ Source](https://github.com/lingvanex-mt/php-api-translator)[ Packagist](https://packagist.org/packages/lingvanex/php-translator-api)[ RSS](/packages/lingvanex-php-translator-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Translation API
===================

[](#php-translation-api)

Discover the Power of Lingvanex Translator Service

Unlock the potential of your applications with Lingvanex Translator, a cutting-edge cloud-based neural machine translation service. Compatible with any operating system, Lingvanex Translator enables the creation of intelligent, multi-lingual solutions for all supported languages. Whether you are looking for a PHP translation API, or need to translate text efficiently, Lingvanex offers a powerful solution for developers.

With Lingvanex, you can effortlessly translate both text and HTML pages, enhancing your global reach and communication capabilities. Our free translation API for PHP allows you to start integrating translation functionality into your projects quickly and easily. Additionally, our PHP library for translation ensures smooth integration with minimal setup. You can also explore a specialized PHP language translation library, making it easy to build language tools.

Explore the capabilities of the [Lingvanex Cloud API](https://lingvanex.com/en/translationapi/) and learn more about our [Secure On-Premise Machine Translation](https://lingvanex.com/). This versatile tool provides developers with a PHP library to translate text, offering a robust way to handle translations in your application. For those seeking a free PHP translation API, Lingvanex offers solutions that meet all levels of demand.

How to get the authentication key
=================================

[](#how-to-get-the-authentication-key)

Before using the API you need to create the [account](https://lingvanex.com/registration/) and then generate the API key at the bottom of the page. You must use this authorization key to authorize requests.

Installation
============

[](#installation)

You can install the library using this command:

```
composer require lingvanex/php-translator-api

```

Requirements
============

[](#requirements)

- PHP version &gt;= 8.2

Getting the list of languages
=============================

[](#getting-the-list-of-languages)

To retrieve the list of languages, perform a GET request with the authentication key as follows:

```

```

Options:

- `url`:
- `platform`: api
- `Authorization`: The key must be obtained in advance
- `code`: the language code in the format “language code\_code of the country”, which is used to display the names of the languages. The language code is represented only in lowercase letters, the country code only in uppercase letters (example en\_GB, es\_ES, ru\_RU etc). If this option is not present, then English is used by default.

Translate PHP Text
==================

[](#translate-php-text)

This POST method translates text and HTML single string or arrays with the authentication key. Also it performs transliteration, language auto detection.

```

```

Options:

- `url`:
- `platform`: api
- `Authorization`: The key must be obtained in advance
- `from`: the language code in the format “language code\_code of the country” from which the text is translated. The language code is represented only in lowercase letters, the country code only in uppercase letters (example en\_GB, es\_ES, ru\_RU and etc.). If this parameter is not present, the auto-detect language mode is enabled.
- `to`: language code in the format “language code\_code of the country” to which the text is translated (required)
- `data`: data for translation.
- `translateMode`: Describe the input text format. Possible value is "html" for translating and preserving html structure. If the value is not specified or is other than "html" then plain text is translating.
- `enableTransliteration`: If true response includes sourceTransliteration and targetTransliteration fields.

Issues
======

[](#issues)

If you are having problems using the library, please [contact](https://lingvanex.com/en/contact-us/) us.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/77388aedbc54c8824e04beb572872a1eb9400733118aab25d5027da97e170add?d=identicon)[Olga1998](/maintainers/Olga1998)

---

Top Contributors

[![Olga1998-power](https://avatars.githubusercontent.com/u/183480600?v=4)](https://github.com/Olga1998-power "Olga1998-power (18 commits)")

### Embed Badge

![Health badge](/badges/lingvanex-php-translator-api/health.svg)

```
[![Health](https://phpackages.com/badges/lingvanex-php-translator-api/health.svg)](https://phpackages.com/packages/lingvanex-php-translator-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/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

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

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)

PHPackages © 2026

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