{"id":33974653,"url":"https://github.com/gladyshev/yandex-direct-client","last_synced_at":"2025-12-13T01:48:56.257Z","repository":{"id":48917138,"uuid":"76112273","full_name":"gladyshev/yandex-direct-client","owner":"gladyshev","description":"Lightweight and useful Yandex Direct API version 5 client","archived":false,"fork":false,"pushed_at":"2024-12-17T13:52:45.000Z","size":224,"stargazers_count":18,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"v4.x","last_synced_at":"2025-09-19T14:01:34.714Z","etag":null,"topics":["php","yandex","yandex-direct"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gladyshev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-10T12:50:58.000Z","updated_at":"2025-04-26T08:21:54.000Z","dependencies_parsed_at":"2022-09-24T00:00:20.844Z","dependency_job_id":null,"html_url":"https://github.com/gladyshev/yandex-direct-client","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/gladyshev/yandex-direct-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gladyshev%2Fyandex-direct-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gladyshev%2Fyandex-direct-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gladyshev%2Fyandex-direct-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gladyshev%2Fyandex-direct-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gladyshev","download_url":"https://codeload.github.com/gladyshev/yandex-direct-client/tar.gz/refs/heads/v4.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gladyshev%2Fyandex-direct-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27697957,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-12T02:00:06.775Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php","yandex","yandex-direct"],"created_at":"2025-12-13T01:48:55.653Z","updated_at":"2025-12-13T01:48:56.252Z","avatar_url":"https://github.com/gladyshev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Yandex Direct API v5 PHP client\n===============================\n\nСовременный и удобный PHP-клиент [Yandex.Direct API](https://tech.yandex.ru/direct/doc/dg/concepts/about-docpage/). \n\n[![Build Status](https://travis-ci.org/gladyshev/yandex-direct-client.svg?branch=v4.x)](https://travis-ci.org/gladyshev/yandex-direct-client)\n[![Scrutinizer Code Coverage](https://scrutinizer-ci.com/g/gladyshev/yandex-direct-client/badges/coverage.png?b=v4.x)](https://scrutinizer-ci.com/g/gladyshev/yandex-direct-client/?branch=v4.x)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/gladyshev/yandex-direct-client/badges/quality-score.png?b=v4.x)](https://scrutinizer-ci.com/g/gladyshev/yandex-direct-client/?branch=v4.x)\n\n## Требования\n * PHP 7.2 и выше\n\n## Установка  \n```bash\n$ composer require gladyshev/yandex-direct-client\n```\n\n## Использование\n\n```php\n$credentials = \\Gladyshev\\Yandex\\Direct\\Credentials::client(\n    getenv('_TOKEN_')\n); \n\n$httpClient = new \\GuzzleHttp\\Client(); // Guzzle 7 или любой другой PSR-18 HTTP-клиент\n\n$client = new \\Gladyshev\\Yandex\\Direct\\Client(\n    $credentials,\n    $httpClient\n);\n\n$response = $client-\u003ecampaigns-\u003eget(\n    ['Ids' =\u003e [123545345, 23423234]],  // SelectionCriteria\n    ['Status', 'Currency', 'Funds']    // FieldNames\n);\n\nprint_r($response);\n\n// [\n//     'request_id' =\u003e 8695244274068608439,\n//     'units_used_login' =\u003e 'ttt-agency',\n//     'units' =\u003e [\n//         'debit' =\u003e 10, \n//         'rest' =\u003e 20828,\n//         'limit' =\u003e 64000\n//     ],\n//     'result' =\u003e [...]\n// ]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgladyshev%2Fyandex-direct-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgladyshev%2Fyandex-direct-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgladyshev%2Fyandex-direct-client/lists"}