vcarreira/wordsapi
Composer 安装命令:
composer require vcarreira/wordsapi
包简介
A simple PHP WordsAPI wrapper. A dictionary and thesaurus for the English language.
README 文档
README
A wrapper around WordsAPI.
Installation
Add the following line to the require section of composer.json:
{
"require": {
"vcarreira/wordsapi": ">= 1.0"
}
}
Usage
In order to use the wrapper you must first get an API key from WordsAPI. The following examples show how to use the WordsService to fetch information regarding some word.
$service = new \WordsApi\WordService(API_KEY); $word = $service->word('effect'); var_dump($word->definitions()); var_dump($word->synonyms()); var_dump($word->rhymes()); var_dump($word->pronunciation());
Limitation
Version 1.0 does not support search requests.
Links
统计信息
- 总下载量: 20.09k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-02-12