Skip to content
Get related words through wikipedia.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
README.md
composer.json

README.md

RelatedWord

Get related words through wikipedia.

Demo

Installation

Execute the following composer command.

composer require sukohi/related-word:1.*

Usage

$related_word = new \Sukohi\RelatedWord\RelatedWord();
$related_word->setTag('PHP');       // Required
$related_word->setLocale('ja');     // Optional
$related_word->setLimit(15);        // Optional
$related_word->setMinCount(5);      // Optional
$keywords = $related_word->get();

Methods

  • setTag($keyword)

A keyword you'd like to get related words from.(Required)

  • setLocale($locale)

Your locale.(Default is en)(Optional)

  • setLimit($limit)

The number of keywords that you will get at most.(Optional)

  • setMinCount($count)

You can get keywords if each keyword appear over $count.(Optional)

License

This package is licensed under the MIT License.
Copyright 2016 Sukohi Kuhoh

You can’t perform that action at this time.