{"id":15107941,"url":"https://github.com/laravelrus/vk-client","last_synced_at":"2025-09-27T06:32:22.653Z","repository":{"id":62489085,"uuid":"63568621","full_name":"LaravelRUS/vk-client","owner":"LaravelRUS","description":"PHP client for Vk.com API","archived":true,"fork":false,"pushed_at":"2020-09-10T17:47:47.000Z","size":18,"stargazers_count":58,"open_issues_count":0,"forks_count":16,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-09-01T01:23:25.925Z","etag":null,"topics":["api","api-vk","client","php-client","vk","vkontakte","vkontakte-api","vkontakte-client"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LaravelRUS.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-07-18T03:52:29.000Z","updated_at":"2024-08-27T12:19:27.000Z","dependencies_parsed_at":"2022-11-02T11:15:21.352Z","dependency_job_id":null,"html_url":"https://github.com/LaravelRUS/vk-client","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/LaravelRUS/vk-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaravelRUS%2Fvk-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaravelRUS%2Fvk-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaravelRUS%2Fvk-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaravelRUS%2Fvk-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LaravelRUS","download_url":"https://codeload.github.com/LaravelRUS/vk-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaravelRUS%2Fvk-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277194709,"owners_count":25777176,"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-09-27T02:00:08.978Z","response_time":73,"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":["api","api-vk","client","php-client","vk","vkontakte","vkontakte-api","vkontakte-client"],"created_at":"2024-09-25T21:43:22.352Z","updated_at":"2025-09-27T06:32:22.375Z","avatar_url":"https://github.com/LaravelRUS.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP client for Vk.com API\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/atehnix/vk-client/master/LICENSE)\n[![Packagist Version](https://img.shields.io/packagist/v/atehnix/vk-client.svg)](https://packagist.org/packages/atehnix/vk-client)\n[![Packagist Stats](https://poser.pugx.org/atehnix/vk-client/downloads)](https://packagist.org/packages/atehnix/vk-client/stats)\n\n\n## Installation\n\nYou can get library and all of it dependencies through [composer](https://getcomposer.org/)\n\n`composer require atehnix/vk-client`\n\n## Usage\n\n### Simple example\n\n```php\n    $api = new Client;\n\n    $response = $api-\u003erequest('wall.get', ['owner_id' =\u003e 1]);\n```\n\n### Use Request class\n\n```php\n    $api = new Client;\n\n    $request = new Request('wall.get', ['owner_id' =\u003e 1]);\n    $response = $api-\u003esend($request);\n```\n\n### Use ExecuteRequest class\n\nSend multiple requests at once\n\n```php\n    $api = new Client;\n\n    $execute = ExecuteRequest::make([\n        new Request('wall.get', ['owner_id' =\u003e 1]),\n        new Request('wall.get', ['owner_id' =\u003e 2]),\n        // ... few requests\n        new Request('wall.get', ['owner_id' =\u003e 25]),\n    ]);\n\n    $response = $api-\u003esend($execute);\n```\n\n### Use a specific version of the API.\n```php\n  $api = new Client('5.60');\n```\n\n### Use with access token\n\nSet default token in client.\n\n```php\n    $api = new Client;\n\n    $api-\u003esetDefaultToken(\"some_token\");\n\n    // ...\n```\n\nOr set token for specific request.\n\n```php\n    $api = new Client;\n\n    // Token in the request is a higher priority than the default token.\n    $request = new Request('wall.get', ['owner_id' =\u003e 1], \"some_token\");\n\n    // ...\n```\n\n### Authorization\n\n```php\n    $auth = new Auth('client_id', 'client_secret', 'redirect_uri');\n\n    echo \"\u003ca href='{$auth-\u003egetUrl()}'\u003eClickMe\u003ca\u003e\";\n\n    // ...\n\n    $token = $auth-\u003egetToken($_GET['code']);\n```\n\n### License\n[MIT](https://raw.github.com/atehnix/vk-client/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaravelrus%2Fvk-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaravelrus%2Fvk-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaravelrus%2Fvk-client/lists"}