The best way to install this library is to use composer.
{
"require": {
"aiphilos/api-sdk-php": "1.*"
}
}
//create client
$c = new Aiphilos\Api\Semantics\Client();
//configurate default settings
$c->setAuthCredentials('user', 'pass');
$c->setDefaultLanguage('de-de');
//parses a single string
$res = $c->parseString('Ordner');
//parse multiple strings
$res = $c->parseStrings(array('Ordner leitz', 'tastatur'));
//or
$res = $c->parseStrings(array('example_1' => 'Ordner leitz', 'example_2' => 'tastatur'));
Aiphilos\Api\Semantics\LexemeFactory::setDefaultClass('My\Namespace\And\Classname'); //instance of Aiphilos\Api\Semantics\LexemeInterface
Aiphilos\Api\Semantics\SynsetFactory::setDefaultClass('My\Namespace\And\Classname'); //instance of Aiphilos\Api\Semantics\SynsetInterface
This library is available under the Apache 2.0 License.