- coswat translater is php package to translate langauges easily without having any Api Key.
- it uses a free open source api url to translate langauges
- Install via Composer
composer require coswat/translater
- English
- Spanish
- Russian
- Arabic
- Portuguese
- German
- Hindi
- French
- Italian
- Indoneasian
- Vietnamese
Example of translating english to spanish
<?php
require_once 'vendor/autoload.php';
use Coswat\Translater\Translate;
$t = new Translate();
$translated = $t->string('Hello')->convert('en','es');
echo $translated; // show Hola.
The translater package is open-sourced software licensed under the MIT license.