PHP code example of enes / tureng
1. Go to this page and download the library: Download enes/tureng library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
enes / tureng example snippets
use enesgur\Tureng;
// Tekil kelime örneği
$sozluk = new Tureng();
$sozluk->word('home');
var_dump($sozluk->translate());
$sozluk->clear();
// Çoklu kelime örneği
$sozluk->word(['home', 'car']);
var_dump($sozluk->translate());
bash
./vendor/bin/phpunit --bootstrap vendor/autoload.php tests/TurengTest