<?php
$check_with_default_service = (array) (new SmartLangIdClient())->getLanguageConfidence('Your text to check goes here ...');
$check_with_custom_service = (array) (new SmartLangIdClient([ 'url' => 'http://langid.host:9008/detect', 'ssl' => '', 'auth-user' => '', 'auth-pass' => '' ]))->getLanguageConfidence('Your text to check goes here ...');
// #end php code
This class can be used just with the DEFAULT settings which must be set in etc/config.php: $configs['langid'] or can be used with CUSTOM settings.