0 votes
1.4k views
in Programming by (300 points)

Can anyone tell me how can I use google language translator in PHP, I am getting data from other website but that data is in another language so I want to convert data in English. Is there any script which helps I can convert data?
Thanks in advance!

 

1 Answer

0 votes
by

mostly google translate api in paid version but You can do this in two way first install packages for google translate or include google translate class file .

   install packages

  php-google-translate-free Package 

  phpProject is my folder run this command

  •  composer require statickidz/php-google-translate-free

 Use the class file of google translate.

  •         Go to your project folder and create a class file named with google_translate.class.php
  •         Copy this code and paste in your google_translate.class.php

for more information check out this link and get your solution  ShortTutorials

Not a Member yet?

Ask to Folks Login

My Account

Your feedback is highly appreciated