https://github.com/sokolnikov911/yandex-xml
PHP client for Yandex XML API (https://yandex.ru/dev/xml/)
https://github.com/sokolnikov911/yandex-xml
api search xml yandex
Last synced: 9 months ago
JSON representation
PHP client for Yandex XML API (https://yandex.ru/dev/xml/)
- Host: GitHub
- URL: https://github.com/sokolnikov911/yandex-xml
- Owner: sokolnikov911
- License: mit
- Created: 2020-10-26T13:05:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-04-29T14:55:18.000Z (about 4 years ago)
- Last Synced: 2025-10-05T14:54:52.720Z (9 months ago)
- Topics: api, search, xml, yandex
- Language: PHP
- Homepage:
- Size: 18.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PHP Yandex.XML search API client
=====================================
| | |
|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| | [](https://packagist.org/packages/sokolnikov911/yandex-xml) [](https://packagist.org/packages/sokolnikov911/yandex-xml) [](https://packagist.org/packages/sokolnikov911/yandex-xml) [](https://packagist.org/packages/sokolnikov911/yandex-xml) [](http://phppackages.org/p/sokolnikov911/yandex-xml) [](http://phppackages.org/p/sokolnikov911/yandex-xml) |
| Travis CI | [](https://travis-ci.org/sokolnikov911/yandex-xml) |
| Scrutinizer CI | [](https://scrutinizer-ci.com/g/sokolnikov911/yandex-xml/build-status/master) [](https://scrutinizer-ci.com/g/sokolnikov911/yandex-xml/?branch=master) [](https://scrutinizer-ci.com/g/sokolnikov911/yandex-xml/?branch=master) |
Russian version of README you can find here: [README_RU.md](https://github.com/sokolnikov911/yandex-xml/blob/master/README_RU.md).
PHP Yandex.XML search API client
## Examples
```php
$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**
```bash
php composer.phar require sokolnikov911/yandex-xml
```
After installing, you need to require Composer's autoloader:
```php
require 'vendor/autoload.php';
```
You can then later update **yandex-xml** using composer:
```bash
composer.phar update
```
## Requirements
This client requires at least PHP7.3 (yeahh, type hinting!) and [Guzzle](https://github.com/guzzle/guzzle) 7.
## License
This library has licensed under the MIT License.