Download the PHP package peterujah/php-google-translator without Composer
On this page you can find all versions of the php package peterujah/php-google-translator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download peterujah/php-google-translator
More information about peterujah/php-google-translator
Files in peterujah/php-google-translator
Package php-google-translator
Short Description PHP Google Javascript Website Translator Plugin
License MIT
Homepage https://github.com/peterujah/php-google-translator
Informations about the package php-google-translator
php-google-translator
Php wrapper for google javascript translator website plugin. It will create a dropdown option for languages.
Installation
Installation is super-easy via Composer:
USAGES
Initalize with page languages
Or without icon path
set selector design provider, you can choose between DEFAULT
, SELECT
or BOOTSTRAP.
The DEFAULT
is the default provider
Set languages icon path and icon type GTranslator::PNG || GTranslator::SVG
.
PNG
or SVG
to use icons download country language flag icon and set the Relative or Absolute path
Or set individually by first setting path and then type to override the default type
Adding additional language to translator
Or load your languages to override the default
Display select option for languages, it accepts optional width.
When your provider is GTranslator::SELECT
, button will return a html select option.
To use image button, your provider must be GTranslator::DEFAULT
Load translator javascript plugin
Sets dropdown contemner class name.
Sets dropdown items class name.
Set preferred language, this must be called after $translate->load();
Automatically detect browser language, this must be called after $translate->load();
Full usage on website to translate webpage