{"id":29887723,"url":"https://github.com/sshilko/digitsoauth","last_synced_at":"2025-07-31T19:01:42.009Z","repository":{"id":57058692,"uuid":"43812285","full_name":"sshilko/digitsoauth","owner":"sshilko","description":"Validate users that are authenticated with phone numbers via Fabric.io / Digits (Twitter)","archived":false,"fork":false,"pushed_at":"2015-12-15T20:38:35.000Z","size":6,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-16T19:51:56.774Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/sshilko.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":"2015-10-07T11:56:05.000Z","updated_at":"2017-06-19T04:23:56.000Z","dependencies_parsed_at":"2022-08-24T14:53:22.134Z","dependency_job_id":null,"html_url":"https://github.com/sshilko/digitsoauth","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/sshilko/digitsoauth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshilko%2Fdigitsoauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshilko%2Fdigitsoauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshilko%2Fdigitsoauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshilko%2Fdigitsoauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sshilko","download_url":"https://codeload.github.com/sshilko/digitsoauth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshilko%2Fdigitsoauth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267758943,"owners_count":24139963,"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-07-29T02:00:12.549Z","response_time":2574,"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":[],"created_at":"2025-07-31T19:00:58.694Z","updated_at":"2025-07-31T19:01:41.961Z","avatar_url":"https://github.com/sshilko.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Digitsoauth (Verifying a User)\n=====\n\nValidate users that are authenticated with phone numbers via Fabric.io / Digits (Twitter).\nThe initial purpose is server-side validating Fabric tokens obtained from mobile client.\n\nClient has to send clientToken \u0026 clientTokenSecret for backend to validate them.\n\nBackend needs to know Consumer Key\u0026Secret for HMAC signing of oAuth request to [api.digits.com](https://api.digits.com/1.1/sdk/account.json)\n\nUses ZendFramework 1 Zend Oauth Client parts.\n\n#### Requirements\n\n* ZendFramework 1 [library](https://github.com/zendframework/zf1) for Zend_Oauth_Client \n* PHP 5.3.0 [namespaces](http://php.net/manual/en/language.namespaces.rationale.php)\n* [Fabric account](http://fabric.io) for CONSUMER KEY (API KEY), CONSUMER SECRET (API SECRET)\n\n#### Basic Usage (token server-side validation)\n\n```\n\n$account = new \\Digitsoauth\\Account($accessToken,\n                                    $accessTokenSecret,\n                                    $consumerKey,\n                                    $consumerSecret);\n\n#calls https://api.digits.com/1.1/sdk/account.json to verify $accessToken\n#returns user data (success)\n#or Zend_Http_Response (error)\n$result = $account-\u003everifyCredentials();\n\nif ($result instanceof \\Zend_Http_Response) {\n    #process errors (network, credentials, ...)\n    echo (string) $result;\n} else {\n    #got the response array with digits identifier \u0026 phone number\n    $digitsId    = $result['id_str'];\n    $digitsPhone = $result['phone_number'];\n}\n\n```\n\n#### References\n\n1. https://docs.fabric.io/ios/digits/oauth-echo.html\n2. [fabric.io](https://docs.fabric.io)\n3. [dev.twitter.com](https://dev.twitter.com/oauth/overview/authorizing-requests)\n4. https://dev.twitter.com/oauth/overview/creating-signatures\n5. https://docs.fabric.io/web/digits/getting-started.html#set-up-digits-authentication\n6. http://nouncer.com/oauth/signature.html\n7. http://framework.zend.com/manual/1.12/en/zend.oauth.introduction.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsshilko%2Fdigitsoauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsshilko%2Fdigitsoauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsshilko%2Fdigitsoauth/lists"}