PHPackages                             tmdan/yandex-php-library - 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. tmdan/yandex-php-library

ActiveLibrary

tmdan/yandex-php-library
========================

Official Yandex PHP library

3.0.4(6y ago)0141MITPHP

Since Aug 8Pushed 6y agoCompare

[ Source](https://github.com/tmdan/yandex-php-library)[ Packagist](https://packagist.org/packages/tmdan/yandex-php-library)[ RSS](/packages/tmdan-yandex-php-library/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (5)Versions (22)Used By (0)

PHP библиотека к API Яндекса
============================

[](#php-библиотека-к-api-яндекса)

[![Gitter](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/nixsolutions/yandex-php-library?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

[![Build Status](https://camo.githubusercontent.com/11a095ac2a82db5c41fdf5e387a798ab398a893a829e76d8a14cc5528ddf5bbd/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6e6978736f6c7574696f6e732f79616e6465782d7068702d6c6962726172792e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/nixsolutions/yandex-php-library)[![Latest Stable Version](https://camo.githubusercontent.com/2f32a0ff46264c1bbf232780b36caacd84b922a6134a5e277464be16c884e896/68747470733a2f2f706f7365722e707567782e6f72672f6e6978736f6c7574696f6e732f79616e6465782d7068702d6c6962726172792f762f737461626c652e706e67)](https://packagist.org/packages/nixsolutions/yandex-php-library)[![Total Downloads](https://camo.githubusercontent.com/65917e4081f44bba0738852e119a0e9955a6e3998d53d91240cc4c50f68fcc0a/68747470733a2f2f706f7365722e707567782e6f72672f6e6978736f6c7574696f6e732f79616e6465782d7068702d6c6962726172792f646f776e6c6f6164732e706e67)](https://packagist.org/packages/nixsolutions/yandex-php-library)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8727260e11fc6580b1890f5425595921fcee075ea8998fbb29866f6dc9e9c39e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e6978736f6c7574696f6e732f79616e6465782d7068702d6c6962726172792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/nixsolutions/yandex-php-library/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/67ab10e57194cfb3cb8ef1805a1661f88d9fb770819e2842305979068fb885b1/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6e6978736f6c7574696f6e732f79616e6465782d7068702d6c6962726172792f62616467652e706e67)](https://coveralls.io/r/nixsolutions/yandex-php-library)[![Dependency Status](https://camo.githubusercontent.com/b7b373b6a01a1773ea6bb2f00d30d11cda7a557f627cf6816801bfd68acbe66f/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3533613135343939383361646437326362393030303031342f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/53a1549983add72cb9000014)

[![License](https://camo.githubusercontent.com/29dd99551d7e7f08be1016bb989c8c4e5d7d83fb4093b1d79f5f3a9093b521ee/68747470733a2f2f706f7365722e707567782e6f72672f6e6978736f6c7574696f6e732f79616e6465782d7068702d6c6962726172792f6c6963656e73652e737667)](https://packagist.org/packages/nixsolutions/yandex-php-library)

Установка
---------

[](#установка)

### Версии

[](#версии)

В библиотеке для отправки запросов к API используется Guzzle. Причем следует иметь в виду что вплоть до 0.4.1 включительно использовался [Guzzle 3](https://github.com/guzzle/guzzle3) и соответственно поддерживался php 5.3.

Позже был сделан переход к php 5.4 и [Guzzle 5](https://github.com/guzzle/guzzle/tree/5.3). Эта версия php и Guzzle поддерживаются в версиях библиотеки &gt; 0.4.1 и &lt; 2.0.0 (из стабильных релизов это 1.0.0). Выпуск обновлений для этой версии под вопросом.

В 2.0.0 был сделан переход к php 5.5 и [Guzzle 6](https://github.com/guzzle/guzzle). Это последняя версия которая будет поддерживать php 5.5. Если ваше приложение работает на php 5.5 ограничьте версию в composer.json 2й версией (например так "~2.0")

В версии 3.0.0 будет убрана поддержка php 5.5.

### composer

[](#composer)

Установка с использованием менеджера пакетов [Composer](http://getcomposer.org):

```
composer require tmdan/yandex-php-library
```

use Yandex\\Disk\\DiskClient;

$disk = new DiskClient(); //Устанавливаем полученный токен $disk-&gt;setAccessToken(TOKEN);

//Получаем список файлов из директории $files = $disk-&gt;directoryContents();

```

## Использование

* [Yandex Disk](https://github.com/nixsolutions/yandex-php-library/wiki/Yandex-Disk)
* [Yandex Market for Partner](https://github.com/nixsolutions/yandex-php-library/wiki/Yandex-Market-for-Partner)
* [Yandex Market Content](https://github.com/nixsolutions/yandex-php-library/wiki/Yandex-Market-Content)
* [Yandex OAuth](https://github.com/nixsolutions/yandex-php-library/wiki/Yandex-OAuth)
* [Yandex Site Search Pinger](https://github.com/nixsolutions/yandex-php-library/wiki/Yandex-Site-Search-Pinger)
* [Yandex Safe Browsing](https://github.com/nixsolutions/yandex-php-library/wiki/Yandex-Safe-Browsing)
* [Yandex Metrica](https://github.com/nixsolutions/yandex-php-library/wiki/Yandex-Metrica)
* [Yandex Dictionary](https://github.com/nixsolutions/yandex-php-library/wiki/Yandex-Dictionary)
* [Yandex Speller](https://github.com/nixsolutions/yandex-php-library/wiki/Yandex-Speller)
* [Yandex DataSync](https://github.com/nixsolutions/yandex-php-library/wiki/Yandex-DataSync)

## Лицензия

Пакет `yandex-php-library` распространяется под лицензией MIT (текст лицензии вы найдёте в файле
[LICENSE](https://raw.github.com/nixsolutions/yandex-php-library/master/LICENSE)), данная лицензия
распространяется на код данной библиотеки и только на неё, использование сервисов Яндекс регулируются
документами, которые вы сможете найти на странице [Правовые документы](http://legal.yandex.ru/)

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

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.

###  Release Activity

Cadence

Every ~118 days

Recently: every ~145 days

Total

19

Last Release

2531d ago

Major Versions

0.4.1 → 1.0.02015-10-30

1.0.0 → 2.0.02015-11-09

2.0.4 → 3.0.02017-02-24

1.0.1 → 3.0.22018-03-21

PHP version history (2 changes)0.1.0PHP &gt;=5.3.3

1.0.0PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/c7d6f79846e0d7696d0c4b2d4ebe8e8913c82f382a7ceafb39f4b90c41c80a17?d=identicon)[tmdan](/maintainers/tmdan)

---

Top Contributors

[![loginwashere](https://avatars.githubusercontent.com/u/539001?v=4)](https://github.com/loginwashere "loginwashere (87 commits)")[![naxel](https://avatars.githubusercontent.com/u/1148505?v=4)](https://github.com/naxel "naxel (25 commits)")[![AntonShevchuk](https://avatars.githubusercontent.com/u/142057?v=4)](https://github.com/AntonShevchuk "AntonShevchuk (20 commits)")[![spytz](https://avatars.githubusercontent.com/u/3132868?v=4)](https://github.com/spytz "spytz (14 commits)")[![G1K](https://avatars.githubusercontent.com/u/12802312?v=4)](https://github.com/G1K "G1K (12 commits)")[![holdmann](https://avatars.githubusercontent.com/u/2150007?v=4)](https://github.com/holdmann "holdmann (11 commits)")[![hulan1](https://avatars.githubusercontent.com/u/39198396?v=4)](https://github.com/hulan1 "hulan1 (9 commits)")[![tiotDak](https://avatars.githubusercontent.com/u/14369967?v=4)](https://github.com/tiotDak "tiotDak (8 commits)")[![tmdan](https://avatars.githubusercontent.com/u/21098757?v=4)](https://github.com/tmdan "tmdan (8 commits)")[![Kolyunya](https://avatars.githubusercontent.com/u/2682768?v=4)](https://github.com/Kolyunya "Kolyunya (7 commits)")[![Baziak](https://avatars.githubusercontent.com/u/241709?v=4)](https://github.com/Baziak "Baziak (5 commits)")[![silverslice](https://avatars.githubusercontent.com/u/6722542?v=4)](https://github.com/silverslice "silverslice (3 commits)")[![evgeny-barinov](https://avatars.githubusercontent.com/u/6264719?v=4)](https://github.com/evgeny-barinov "evgeny-barinov (3 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (2 commits)")[![MaksSlesarenko](https://avatars.githubusercontent.com/u/1147978?v=4)](https://github.com/MaksSlesarenko "MaksSlesarenko (2 commits)")[![VFedyk](https://avatars.githubusercontent.com/u/489576?v=4)](https://github.com/VFedyk "VFedyk (1 commits)")[![CB9TOIIIA](https://avatars.githubusercontent.com/u/1074710?v=4)](https://github.com/CB9TOIIIA "CB9TOIIIA (1 commits)")[![diceRollSix](https://avatars.githubusercontent.com/u/3736046?v=4)](https://github.com/diceRollSix "diceRollSix (1 commits)")[![free6k](https://avatars.githubusercontent.com/u/1732637?v=4)](https://github.com/free6k "free6k (1 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (1 commits)")

---

Tags

sdkyandex

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/tmdan-yandex-php-library/health.svg)

```
[![Health](https://phpackages.com/badges/tmdan-yandex-php-library/health.svg)](https://phpackages.com/packages/tmdan-yandex-php-library)
```

PHPackages © 2026

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