inani/oxfordapi-wrapper
A PHP/Laravel Wrapper for oxford dictionary API
1,681
27
Larablocks Analysis
inani/oxfordapi-wrapper works with any PHP project: the latest release (1.1.0, Feb 22, 2017) doesn't depend on Laravel.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- No release in the last 12 months (last: Feb 22, 2017)
- 0 downloads a month (needs 10,000)
- 27 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Feb 22, 2017.
- No releases in the last 12 months.
- First released: Jan 19, 2017.
- 1 open issue on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.
| Install | |
|---|---|
composer require inani/oxfordapi-wrapper |
|
| Latest Version: | 1.1.0 |
| License: | MIT |
| Last Updated: | Feb 22, 2017 |
| Links: | GitHub · Packagist |
Maintainer: akiyamaSM
oxfordapi-wrapper
A PHP/Laravel Wrapper for oxford dictionary API
Installation
First, install the package through Composer.
composer require inani/oxfordapi-wrapper
Then include the service provider inside config/app.php.
'providers' => [
...
Inani\OxfordApiWrapper\OxfordWrapperServiceProvider::class,
...
];
At least set up in the env file
OXFORD_API_BASE_URI =
OXFORD_APP_ID =
OXFORD_APP_KEY =
make a new instance
// Make it or pass it as argument
$oxford = app(Inani\OxfordApiWrapper\OxfordWrapper::class);
How to use
Translation
// look for the translation from a language to an other, returns a parser
$parser =$oxford->lookFor('balablabla')
->from('en')
->to('es')
->translate();
// get array of translations
$translations = $parser->get();
// get array of [example => [translations]]
$examples = $parser->getExamples();
Definitions
// look for the definitions of a word, returns a parser
$parser =$oxford->lookFor('balablabla')
->define();
// get array of definitions
$definitions = $parser->get();
Examples
// look for the examples of a word, returns a parser
$parser =$oxford->lookFor('balablabla')
->examples();
// get array of examples
$definitions = $parser->get();
Thesaurus
// You can try all combinations
$res = $oxford->lookFor('happy')
->synonym()
->antonym()
->fetch();
// results will be related to (syno or anto)
// get synonyms and/or antonyms
$res->get();
// get only antonyms or null if not specfied in fetch
$res->antonyms();
//get only synonyms or null if not specfied in fetch
$res->synonyms();
Phonetics
$res = $oxford->lookFor('ace')
->talk();
// get the array of result
$res->get();
// get the link to the audio file of pronunciation
$res->speak();
//get the spelling
$res->spell();
//get the notation
$res->notation();
Related Packages
spondonit/zttp
A developer-experience focused HTTP client, optimized for most common use cases.
6,451
0
carsdotcom/php-request-class
Structure the logic around Guzzle API requests into object-oriented classes
32,433
2
Version History
| Version | Released | License |
|---|---|---|
| 1.1.0 | MIT | |
| 1.0 | MIT |