sukohi/related-word

There is no license information available for the latest version (1.0.1) of this package.

Get related words through wikipedia.

1.0.1 2016-11-10 17:20 UTC

This package is not auto-updated.

Last update: 2024-12-22 03:05:42 UTC


README

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