vashona / api
VaShona API
Installs: 82
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/vashona/api
Requires
- php: >=5.5
- guzzlehttp/guzzle: ^6.2
This package is not auto-updated.
Last update: 2025-12-21 02:18:06 UTC
README
This library provides you with easy access to VaShona's API using PHP. Before you can do some tests you need to obtain a user from http://vashona.com/contacts
Tech
The API uses a Basic Auth to authenticate users:
Examples
The API requires Guzzle v6.2+ to run.
Download and extract the latest pre-built release.
It is recommended that you install via composer.
$ composer require vashona/api
API
// Translate 'child' from 'English' to 'Shona'. use vashona\api\TranslatorApi; $TranslatorApi = new TranslatorApi (); $TranslatorApi->setServerUrl('https://api.vashona.com/api1/translator/'); $TranslatorApi->setAuth('Username', 'password'); $json = $TranslatorApi->getTranslation('child', 'sna', 'en');