PHPackages                             waithaw/deeplapitranslate - 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. waithaw/deeplapitranslate

ActiveLibrary[API Development](/categories/api)

waithaw/deeplapitranslate
=========================

To translate languages with Deep L Translator API in Laravel

v1.0.0(3y ago)429MITPHPPHP &gt;=7.3

Since Jun 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/waithawoo/laravel-deeplapi-translate)[ Packagist](https://packagist.org/packages/waithaw/deeplapitranslate)[ RSS](/packages/waithaw-deeplapitranslate/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Laravel DeepL API Translation Package
=====================================

[](#laravel-deepl-api-translation-package)

[![GitHub issues](https://camo.githubusercontent.com/13ed3fe0da2c8f8022b4828a128d08804d9a98365524fc6d511d503a64c50119/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f776169746861776f6f2f6c61726176656c2d646565706c6170692d7472616e736c617465)](https://github.com/waithawoo/laravel-deeplapi-translate/issues)[![GitHub stars](https://camo.githubusercontent.com/ad9951a553a956bdac404fac33e40bab7c03844c144482b17862212d4df7782a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f776169746861776f6f2f6c61726176656c2d646565706c6170692d7472616e736c617465)](https://github.com/waithawoo/laravel-deeplapi-translate/stargazers)[![GitHub forks](https://camo.githubusercontent.com/c89bb89aaf48869cc389fb7e9b9a17bcf1dd853b9aaae00e5d27d388b5d73a45/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f776169746861776f6f2f6c61726176656c2d646565706c6170692d7472616e736c617465)](https://github.com/waithawoo/laravel-deeplapi-translate/network)[![GitHub license](https://camo.githubusercontent.com/91416ee93b78d431842b6ce610c1315824de26b9667a009874c17537e8c23134/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f776169746861776f6f2f6c61726176656c2d646565706c6170692d7472616e736c617465)](https://github.com/waithawoo/laravel-deeplapi-translate/blob/main/LICENSE)

To translate languages with Deep L Translator API
-------------------------------------------------

[](#to-translate-languages-with-deep-l-translator-api)

Easy to use Deep L API for translation in Laravel projects

- **[Installation](#installation)**
- **[Usage](#usage)**

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

[](#installation)

Install this package via [Composer](https://getcomposer.org/).

```
composer require waithaw/deeplapitranslate

```

You can publish the config file using the following command:

```
php artisan vendor:publish --provider="WaiThaw\DeeplTranslate\DeeplTranslateServiceProvider"

```

This will create the package's config file called deepltranslate.php in the config directory. The contents of the published config file are as follows.

```
return [
    /*
      |-------------------------------------------------------------------------------
      | Api Key generated from Deep L account.
      |-------------------------------------------------------------------------------
      */
    'auth_key' => env('DEEPL_TRANSLATE_API_KEY'),

    /*
      |-------------------------------------------------------------------------------
      | Api Endpoint URL from Deep L account.
      |-------------------------------------------------------------------------------
      */
    'api_url' => env('DEEPL_TRANSLATE_API_ENDPOINT_URL'),
];
```

Usage
-----

[](#usage)

- After setting up the config file values in .env, you can use translation methods.

### Create DeeplTranslate object

[](#create-deepltranslate-object)

```
use WaiThaw\DeeplTranslate\DeeplTranslate;

$deepl = new DeeplTranslate();
```

### Translate

[](#translate)

```
// parameters are $text, $source_language, $target_language
$translated_text = $deepl->translate('are you hungry?', 'EN', 'JA'); // Output translated text string

echo $translated_text;
```

### Supported languages

[](#supported-languages)

```
$languages = $deepl->languages();
foreach($languages as $lang){
    echo $lang['language']."-".$lang['name'].'';
}
```

For supported Source-languages

```
$source_languages = $deepl->languages('source');
foreach($source_languages as $lang){
    echo $lang['language']."-".$lang['name'].'';
}
```

For supported Target-languages

```
$target_languages = $deepl->languages('target');
foreach($target_languages as $lang){
    echo $lang['language']."-".$lang['name'].'';
}
```

### Monitoring Usage

[](#monitoring-usage)

You can monitor the number of traslated characters and maximun limitations

```
$usage= $deepl->usage();
echo $usage['character_count'].' characters have been used. Maximum number of characters that can be translated in the current billing period are '.$usage['character_limit'];
```

### Setting for cURL timeout

[](#setting-for-curl-timeout)

You can setup a timeout to prevent waiting in case of api unreachable

```
$deepl->setTimeout(10);
```

Security
--------

[](#security)

If you discover any security related issues, please email them to  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see the [License File](LICENSE) for more information.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1114d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e4d5c98c73b03e0146a13de94e680697e25f1d2aac42ee5219f094412a89ba0?d=identicon)[waithawoo](/maintainers/waithawoo)

---

Top Contributors

[![waithawoo](https://avatars.githubusercontent.com/u/42320296?v=4)](https://github.com/waithawoo "waithawoo (22 commits)")

---

Tags

deepldeepl-translatedeepl-translation-apilaraveltranslatetranslate-api

### Embed Badge

![Health badge](/badges/waithaw-deeplapitranslate/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k13](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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