Skip to content

Latest commit

 

History

History
61 lines (38 loc) · 3.61 KB

README.md

File metadata and controls

61 lines (38 loc) · 3.61 KB

PHP Yandex.XML search API client

Latest Stable Version Total Downloads Latest Unstable Version composer.lock PHPPackages Rank PHPPackages Referenced By
Travis CI Build Status
Scrutinizer CI Build Status Scrutinizer Code Quality Code Coverage

Russian version of README you can find here: README_RU.md.

PHP Yandex.XML search API client

Examples

$yandexXmlUser = 'xmluser';
$yandexXmlKey = '12.12344:123443543534';

$client = new Client($yandexXmlUser, $yandexXmlKey);

$result = $client
    ->query('search query')
    ->page(2)
    ->l10n(Client::L10N_UKRAINIAN)
    ->get();

Installing

Install composer. Follow instructions on download page: https://getcomposer.org/download/

Next, run the Composer command to install the latest stable version of yandex-xml

php composer.phar require sokolnikov911/yandex-xml

After installing, you need to require Composer's autoloader:

require 'vendor/autoload.php';

You can then later update yandex-xml using composer:

composer.phar update

Requirements

This client requires at least PHP7.3 (yeahh, type hinting!) and Guzzle 7.

License

This library has licensed under the MIT License.