Skip to content

DerRidda/api-sdk-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Installation

The best way to install this library is to use composer.

{
    "require": {
        "aiphilos/api-sdk-php": "1.*"
    }
}

Usage

Semantics

Creating, configuring and using the default client

//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'));

Using custom implementations for Lexemes and Synsets

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

License

This library is available under the Apache 2.0 License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%