PHPackages                             spalax/kwt-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. spalax/kwt-client

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

spalax/kwt-client
=================

Client for the keyword tool.

5173PHP

Since Jul 31Pushed 9y ago1 watchersCompare

[ Source](https://github.com/spalax/keywordtool-client)[ Packagist](https://packagist.org/packages/spalax/kwt-client)[ RSS](/packages/spalax-kwt-client/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/cdc9f22db402cf3de723150fc9f6781465ea79e84f06252a158eb0d31346e561/68747470733a2f2f7472617669732d63692e6f72672f7370616c61782f6b6579776f7264746f6f6c2d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/spalax/keywordtool-client)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/adb582001a9952928054e8a4fa206d6c8283e9b8aff422b7e21bd798854334d0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7370616c61782f6b6579776f7264746f6f6c2d636c69656e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/spalax/keywordtool-client/?branch=master)[![Code Climate](https://camo.githubusercontent.com/989a63404158b8957d0b95314ccad7cb6d81ac63c7a5b3f92e87900cb77d45ea/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7370616c61782f6b6579776f7264746f6f6c2d636c69656e742f6261646765732f6770612e737667)](https://codeclimate.com/github/spalax/keywordtool-client)[![Coverage Status](https://camo.githubusercontent.com/1ed07767a8d427032adbbeac52c08f1d47f68b08f6de30045fc388ab5d9e9cb5/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7370616c61782f6b6579776f7264746f6f6c2d636c69656e742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/spalax/keywordtool-client?branch=master)[![Dependency Status](https://camo.githubusercontent.com/eea782636d5bdd700e26d70b577cde4550e6d75bdf4e21dacad7b0a972c8c71b/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3536633232333530313862323731303032633639613262312f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/56c2235018b271002c69a2b1)[![Total Downloads](https://camo.githubusercontent.com/bcd6d4b105f2e10e203545eea02eb7abae4b52b711413c5af2e2c0737178ac34/68747470733a2f2f706f7365722e707567782e6f72672f7370616c61782f6b77742d636c69656e742f646f776e6c6f616473)](https://packagist.org/packages/spalax/kwt-client)

Object Oriented keywordtool.io API Client
=========================================

[](#object-oriented-keywordtoolio-api-client)

It is implementation of public API for the keywordtool.io, it can be reviewed here

To start you will need to have an API key, which will be send to your EMAIL or you will be able to get it after login in tab API.

Quick start
-----------

[](#quick-start)

Example using google keywords:

```
require './vendor/autoload.php';

// Keyword which you want to research
$keyword = 'iOS';

// Trying to get all keywords related to the keyword with volume metrics
// usage country is United States (google.com) and language English
// full list of available countries and languages you can found http://keywordtool.io/api/documentation
$request = \KWTClient\RequestFactory::google($keyword)->metrics(true)->country('us')->language('en');

$client = new \KWTClient\Client('[YOUR-API-KEY]');
$response = $client->research($request);

// will display
// Array
// (
//     [0] => Array
//         (
//             [kw] => ios
//             [vol] => 74000
//         )
//    ....

print_r($response->getKeywords());
```

But service provide you possibilities to get youtube, appstore and bing keywords suggestions.

For youtube:

```
....
$request = \KWTClient\RequestFactory::youtube('iOS');
....
```

For appstore:

```
....
$request = \KWTClient\RequestFactory::appstore('iOS');
....
```

For bing:

```
....
$request = \KWTClient\RequestFactory::bing('iOS');
....
```

Supported params for request returned from RequestFactory
---------------------------------------------------------

[](#supported-params-for-request-returned-from-requestfactory)

#### country($countryCode = 'us')

[](#countrycountrycode--us)

Country to looking for keyword suggestions. On example, if you will declare $countryCode = 'ar' for Argentina, it will looks for keywords searched via google.com.ar List of country codes for different services available here  - Supported values for "country" parameter

#### language($language = 'en')

[](#languagelanguage--en)

Language of the keyword suggestions. List of language codes for different services available here  - Supported values for "language" parameter

#### excludeKeywords(array $keywords = \[\])

[](#excludekeywordsarray-keywords--)

Use this parameter to specify negative keywords, i.e. the keywords that you want to exclude from your results. For example, an API call that contains "keyword=iphone&amp;exclude=case|game|price" will return keyword suggestions for the keyword "iphone" but there will be no keyword suggestions that contain words "case", "game", or "price". Meaning the keyword suggestion "best iphone price" will not show up in the results.

#### metrics($flag = false)

[](#metricsflag--false)

Allows to get Search Volume, CPC and AdWords Competition data for keywords in English language if this parameter is set to "true".

#### type($type = 'suggestions')

[](#typetype--suggestions)

Type of search query. Available types are: "suggestions" and "questions".

#### complete($flag = false)

[](#completeflag--false)

Allows to get the full set of autocomplete results. Please note that certain percent of requests might return an error if this parameter is set to "true".

Contribution
------------

[](#contribution)

Wellcome to add anything you want to this Client. You just need to run unit tests, to make sure that your commit will not brake Client. And please write unit tests for your pull requests.

```
composer install --dev
./vendor/bin/phpunit --testsuite=unit

```

References
----------

[](#references)

Full API documentation can be located

License
-------

[](#license)

Use this guide. Attributions are appreciated.

Copyright
---------

[](#copyright)

Copyright (c) 2014-2016 Oleksii Mylotskyi

(The MIT License) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1273733?v=4)[Oleksii Mylotskyi](/maintainers/Spalax)[@spalax](https://github.com/spalax)

---

Top Contributors

[![spalax](https://avatars.githubusercontent.com/u/1273733?v=4)](https://github.com/spalax "spalax (16 commits)")

### Embed Badge

![Health badge](/badges/spalax-kwt-client/health.svg)

```
[![Health](https://phpackages.com/badges/spalax-kwt-client/health.svg)](https://phpackages.com/packages/spalax-kwt-client)
```

###  Alternatives

[pingpong/menus

Laravel Menus

68228.0k13](/packages/pingpong-menus)[ryangjchandler/laravel-bunny-fonts

Manage Bunny Fonts programatically in your Laravel projects.

171.1k](/packages/ryangjchandler-laravel-bunny-fonts)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
