PHPackages                             starkeen/yandex-search-api - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. starkeen/yandex-search-api

ActiveLibrary[HTTP &amp; Networking](/categories/http)

starkeen/yandex-search-api
==========================

Library for using Yandex Search API

v3.0.0(3w ago)1826↓58.3%[1 PRs](https://github.com/starkeen/yandex-search-api/pulls)MITPHPPHP ^8.1CI passing

Since Dec 18Pushed 3w ago1 watchersCompare

[ Source](https://github.com/starkeen/yandex-search-api)[ Packagist](https://packagist.org/packages/starkeen/yandex-search-api)[ RSS](/packages/starkeen-yandex-search-api/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (7)Dependencies (15)Versions (11)Used By (0)

yandex-search-api
=================

[](#yandex-search-api)

Library for Yandex Search API

[![Packagist Version (custom server)](https://camo.githubusercontent.com/f204d0fb22f18a45b09eb4e61bede5c10a409155de17dd41028e4df5f6a04ef4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737461726b65656e2f79616e6465782d7365617263682d617069)](https://camo.githubusercontent.com/f204d0fb22f18a45b09eb4e61bede5c10a409155de17dd41028e4df5f6a04ef4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737461726b65656e2f79616e6465782d7365617263682d617069)[![Packagist PHP Version Support (specify version)](https://camo.githubusercontent.com/97d5359e35dbaf9777346f4e845fbcb6c599fd38d836bd860c27d14c39de48d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f737461726b65656e2f79616e6465782d7365617263682d617069)](https://camo.githubusercontent.com/97d5359e35dbaf9777346f4e845fbcb6c599fd38d836bd860c27d14c39de48d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f737461726b65656e2f79616e6465782d7365617263682d617069)[![GitHub](https://camo.githubusercontent.com/1ed3b093795ded6686f8f4eb27d00d039bd01ae96e4f3c50bcb156531f3686f1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f737461726b65656e2f79616e6465782d7365617263682d617069)](https://camo.githubusercontent.com/1ed3b093795ded6686f8f4eb27d00d039bd01ae96e4f3c50bcb156531f3686f1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f737461726b65656e2f79616e6465782d7365617263682d617069)[![codecov](https://camo.githubusercontent.com/4a27768b72beb9aaf9a8e60e64d03ab83eabfff45bec49c4da6067da93a586db/68747470733a2f2f636f6465636f762e696f2f67682f737461726b65656e2f79616e6465782d7365617263682d6170692f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/starkeen/yandex-search-api)[![Quality Gate Status](https://camo.githubusercontent.com/2131cd7b77da60cd37787b8fc74b171e9114c2070c53f33866578fd16491cad6/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d737461726b65656e5f79616e6465782d7365617263682d617069266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/summary/new_code?id=starkeen_yandex-search-api)[![Codacy Badge](https://camo.githubusercontent.com/a2740bf1d918619a94e578bb0f8c20588029171230590b66ebf50144cdae5dac/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3661393134343261336134343430366239643136663763396333613265633234)](https://app.codacy.com/gh/starkeen/yandex-search-api/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)

Description
-----------

[](#description)

This library is a convenient way to interact with the Yandex Search API (the XML interface). It allows for easy integration of Yandex search functionality into your PHP projects. The library encapsulates the complex logic of interacting with the API and provides a simple and understandable interface for executing search queries.

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- `ext-simplexml`
- `ext-libxml`
- A PSR-18 HTTP client (`psr/http-client: ^1.0`)
- A PSR-17 HTTP factory implementing both `RequestFactoryInterface` and `StreamFactoryInterface` (`psr/http-factory: ^1.0`)
- A PSR-3 logger (`psr/log: ^3.0`)

Installation
------------

[](#installation)

To install the library, add it to your project using Composer:

```
composer require starkeen/yandex-search-api
```

Usage
-----

[](#usage)

To use the library, you need to get an API key. You can get it on the [Yandex Search API](https://console.cloud.yandex.ru/) page.

```
