translators/GoogleTranslator.php
public function detect($text)
    {
        $this->setUrl('https://www.googleapis.com/language/translate/v2/detect?'.http_build_query([
                'key' => $this->apiKey,
                'q' => $text,
        ]));
        if($this->execute()){
        
        }
    }
public function detect($text)
    {
        $this->setUrl('https://www.googleapis.com/language/translate/v2/detect?'.http_build_query([
                'key' => $this->apiKey,
                'q' => $text,
        ]));
        if($this->execute()){
        
        }
    }
Detect Language
@param string $text