{"id":21838267,"url":"https://github.com/steeinru/steein-sdk-php","last_synced_at":"2026-05-19T03:51:55.233Z","repository":{"id":57059363,"uuid":"87462569","full_name":"SteeinRu/steein-sdk-php","owner":"SteeinRu","description":"Steein SDK for PHP - client library.","archived":false,"fork":false,"pushed_at":"2018-03-21T10:49:52.000Z","size":112,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T00:10:31.317Z","etag":null,"topics":["php","php7","rest-api","sdk","steein","steein-php-sdk"],"latest_commit_sha":null,"homepage":"https://www.steein.ru/developers/docs/steein-api.overview","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SteeinRu.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":"2017-04-06T18:38:01.000Z","updated_at":"2018-03-21T10:49:53.000Z","dependencies_parsed_at":"2022-08-24T14:53:27.389Z","dependency_job_id":null,"html_url":"https://github.com/SteeinRu/steein-sdk-php","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteeinRu%2Fsteein-sdk-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteeinRu%2Fsteein-sdk-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteeinRu%2Fsteein-sdk-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteeinRu%2Fsteein-sdk-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SteeinRu","download_url":"https://codeload.github.com/SteeinRu/steein-sdk-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244819802,"owners_count":20515646,"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","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","php7","rest-api","sdk","steein","steein-php-sdk"],"created_at":"2024-11-27T21:09:41.590Z","updated_at":"2026-05-19T03:51:55.202Z","avatar_url":"https://github.com/SteeinRu.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Steein SDK for PHP\n\n***Welcome to Steein PHP SDK.*** This repository contains Steein's PHP SDK and samples for REST API.\n\n\n\n## Installation\n\nThe preferred method is via composer. Follow the installation instructions if you do not already have composer installed.\nOnce composer is installed, execute the following command in your project root to install this library:\n\n```\ncomposer require steein/steein-sdk\n```\nFinally, be sure to include the autoloader:\n\n```php\nrequire_once '/path/to/your-project/vendor/autoload.php';\n```\n\n\n## SDK Documentation\n\n * [Documentation](https://www.steein.ru/developers/docs/steein-api.overview)\n * [API Reference](https://www.steein.ru/developers/docs/api-reference.common-objects)\n * [Samples](https://github.com/SteeinRu/steein-api-samples)\n * [Installation](https://www.steein.ru/developers/docs/sdk-quickstart-guide.install)\n * [Make your First SDK Call](https://www.steein.ru/developers/docs/steein-api.make-your-first-call)\n\n## Usage\n\nSimple GET example of a user's account.\n\n### Version 1\n\n***sdk-config.ini***\n\n```ini\n[Account]\nacct1.ClientId = {id}\nacct1.ClientSecret = {secret_key}\nacct1.VersionApi = v2.0\n```\n\n***index.php***\n```php\ndefine('STEEIN_CONFIG_PATH', __DIR__);\n$steein = new Steein();\n```\n\n### Version 2\n\n```php\n$steein = new Steein([\n    'client_id'             =\u003e  '{id}',\n    'client_secret'         =\u003e '{secret_key}',\n    'default_api_version'   =\u003e  'v2.0'\n]);\n$steein-\u003esetDefaultAccessToken('{access_token}');\n\n$get = $steein-\u003eget('/users/show'); //$steein-\u003eget('/users/show',['id' =\u003e 1]);\n$user = $get-\u003egetUserModel(); //$get-\u003egetDecodedBody()\n\necho 'ID: '. $user-\u003egetId(); //or $user-\u003eall();\n```\n\nComplete documentation, installation instructions, and examples are available [here](https://www.steein.ru/developers/docs/php/getting_started).\n\n### License\n\nPlease see the [license file](https://github.com/SteeinRu/steein-sdk-php/blob/master/LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteeinru%2Fsteein-sdk-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteeinru%2Fsteein-sdk-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteeinru%2Fsteein-sdk-php/lists"}