statickidz / php-google-translate-free

PHP class to use the Google Translator API for free.
GNU General Public License v3.0
271 stars 91 forks source link

Error Call to undefined method #30

Closed netwons closed 3 years ago

netwons commented 3 years ago
Error
Call to undefined method Statickidz\GoogleTranslate::translateGhost()

not work

PlusMa commented 3 years ago

@netwons do this:



include_once 'vendor/autoload.php';
use Statickidz\GoogleTranslate;

$source = 'fa';
$target = 'en';
$text = 'سلام';

$result = GoogleTranslate::translate($source, $target, $text);

echo $result;
statickidz commented 3 years ago

Updated to 1.2.0, check again with that version