All Projects → nixsolutions → Yandex Php Library

nixsolutions / Yandex Php Library

Licence: mit
PHP библиотека к API Яндекса

Labels

Projects that are alternatives of or similar to Yandex Php Library

Yandex Music Api
Неофициальная Python библиотека для работы с API сервиса Яндекс.Музыка
Stars: ✭ 335 (-35.2%)
Mutual labels:  api, yandex
Tapi Yandex Metrika
Библиотека для всех API Яндекс Метрика
Stars: ✭ 74 (-85.69%)
Mutual labels:  api, yandex
Cms
Decoupled CMS for any Laravel app, gain control of: pages, blogs, galleries, events, images, custom modules and more.
Stars: ✭ 498 (-3.68%)
Mutual labels:  api
Qor
QOR is a set of libraries written in Go that abstracts common features needed for business applications, CMSs, and E-commerce systems.
Stars: ✭ 4,905 (+848.74%)
Mutual labels:  api
Search By Image
Browser extension for reverse image search, available for Edge, Chrome and Firefox
Stars: ✭ 500 (-3.29%)
Mutual labels:  yandex
Restful Api Specification
RESTful API 设计规范
Stars: ✭ 498 (-3.68%)
Mutual labels:  api
Koop
🔮 Transform, query, and download geospatial data on the web.
Stars: ✭ 505 (-2.32%)
Mutual labels:  api
Tinyfaces
Free stock avatars for everyone 👦🏼👨🏾👩🏻 (Built w/ Swift)
Stars: ✭ 498 (-3.68%)
Mutual labels:  api
Swell
Swell: API development tool that enables developers to test endpoints served over streaming technologies including Server-Sent Events (SSE), WebSockets, HTTP2, GraphQL, and gRPC.
Stars: ✭ 517 (+0%)
Mutual labels:  api
Redux Api
Flux REST API for redux infrastructure
Stars: ✭ 502 (-2.9%)
Mutual labels:  api
Mediumship
📚 Read all Medium stories for free!
Stars: ✭ 513 (-0.77%)
Mutual labels:  api
Apiv2 Graphql Docs
AniList API V2 GraphQL Documentation
Stars: ✭ 501 (-3.09%)
Mutual labels:  api
Instapy Cli
✨ Python library and CLI to upload photo and video on Instagram. W/o a phone!
Stars: ✭ 498 (-3.68%)
Mutual labels:  api
Acts as api
makes creating API responses in Rails easy and fun
Stars: ✭ 506 (-2.13%)
Mutual labels:  api
Cudatext
Cross-platform text editor, written in Lazarus
Stars: ✭ 498 (-3.68%)
Mutual labels:  api
Graphql Dotnet
GraphQL for .NET
Stars: ✭ 5,031 (+873.11%)
Mutual labels:  api
Snickers
🍫 An open source alternative to the video cloud encoding services.
Stars: ✭ 498 (-3.68%)
Mutual labels:  api
Zally
A minimalistic, simple-to-use API linter
Stars: ✭ 499 (-3.48%)
Mutual labels:  api
Apisix
The Cloud-Native API Gateway
Stars: ✭ 7,920 (+1431.91%)
Mutual labels:  api
Oas Kit
Convert Swagger 2.0 definitions to OpenAPI 3.0 and resolve/validate/lint
Stars: ✭ 516 (-0.19%)
Mutual labels:  api

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

Gitter

Build Status Latest Stable Version Total Downloads

Scrutinizer Code Quality Coverage Status Dependency Status

License

Deprecated

Поддержка SDK приостановлена 29.01.2019. Использование в продакшене исключительно на свой страх и риск, не гарантируется корректная работа всех методов, ввиду постоянных изменений со стороны Яндекс API.

Установка

Версии

В библиотеке для отправки запросов к 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й версией (например так "~2.0")

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

composer

Установка с использованием менеджера пакетов Composer:

$ curl -s https://getcomposer.org/installer | php

Теперь вносим изменения в ваш composer.json:

{
    "require": {
        "nixsolutions/yandex-php-library": "dev-master"
    }
}

phar-архив

Работа с phar архивом:

  1. Скачиваем по ссылке phar-файл или bz2-архив с ним, последней или конкретной версии.
  2. Сохраняем в папку с проектом.
  3. Используем!

Пример подключения и работа с библиотекой из phar-архива:

<?php
//Подключаем autoload.php из phar-архива
require_once 'phar://yandex-php-library_master.phar/vendor/autoload.php';

use Yandex\Disk\DiskClient;

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

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

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

Лицензия

Пакет yandex-php-library распространяется под лицензией MIT (текст лицензии вы найдёте в файле LICENSE), данная лицензия распространяется на код данной библиотеки и только на неё, использование сервисов Яндекс регулируются документами, которые вы сможете найти на странице Правовые документы

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].