bedita / i18n-deepl
BEdita I18n Deepl plugin supporting PHP >= 8.3
Installs: 1 241
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
pkg:composer/bedita/i18n-deepl
Requires
- php: >=8.3
- bedita/i18n: ^6.0.0
- cakephp/utility: ^5.0
- deeplcom/deepl-php: 1.11.1
- symfony/http-client: ^5.4
Requires (Dev)
- cakephp/cakephp: ^5.0
- cakephp/cakephp-codesniffer: ^5.0
- phpstan/phpstan: ^1.12
- phpunit/phpunit: ^11.1.3
README
Installation
You can install this plugin into your application using composer.
The recommended way to install composer packages is:
composer require bedita/i18n-deepl
Note: php version supported is >= 8.3.
DeepL Translator
This plugin uses DeepL Translator to translate texts, via deepl-php.
Usage example:
use BEdita\I18n\Deepl\Core\Translator; $translator = new Translator(); $translator->setup(['auth_key' => 'your-auth-key']); $result = $translator->translate(['Hello world!'], 'en', 'it'); // $result is an array, i.e ['translation' => ['Ciao mondo!']]