tmdan / yandex-php-library
官方 Yandex PHP 库
3.0.4
2019-06-05 13:25 UTC
Requires
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phpunit/phpunit: ~5.0
- predis/predis: ^1.0
- satooshi/php-coveralls: ~1.0
- squizlabs/php_codesniffer: ~2.0
README
安装
版本
在发送请求到 API 的库中使用了 Guzzle。需要注意的是,在 0.4.1 及之前版本使用了 Guzzle 3,并相应地支持 php 5.3。
后来转向了 php 5.4 和 Guzzle 5。这个版本的 php 和 Guzzle 在库的版本 > 0.4.1 且 < 2.0.0(稳定版本为 1.0.0)中得到支持。这个版本的更新可能存在疑问。
在 2.0.0 中转向了 php 5.5 和 Guzzle 6。这是最后一个支持 php 5.5 的版本。如果你的应用程序运行在 php 5.5 上,请将 composer.json 中的版本限制在第二个版本(例如 "~2.0")。
在 3.0.0 版本中将会移除对 php 5.5 的支持。
composer
使用包管理器 Composer 安装
composer require tmdan/yandex-php-library
use Yandex\Disk\DiskClient;
$disk = new DiskClient(); // 设置获取到的令牌 $disk->setAccessToken(TOKEN);
// 获取目录中的文件列表 $files = $disk->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/)