client-translator
Baidu, Youdao translation, search words
Environmental requirements
- PHP > = 5.6
- Composer
The installation
Global installation
$ composer global require jonasyeah/client-translator
Copy the code
Current Directory Installation
$ composer create-project jonasyeah/client-translator
Copy the code
use
$ ./path/client-translator/tsl "It's a nice day."
$ ./path/client-translator/tsl "It's a nice day." -f youdao,baidu
Copy the code
related
The command line is called PHP translation library, the aggregation of Youdao and Baidu Translation general translation API and translation page cracking API
Github
- gtihub client-translator
- gtihub translator
LICENSE
MIT