{"id":20549833,"url":"https://github.com/robertgrubb/twitch-login-php","last_synced_at":"2025-03-06T05:41:11.724Z","repository":{"id":114631777,"uuid":"245742842","full_name":"RobertGrubb/twitch-login-php","owner":"RobertGrubb","description":"Simple class for handling Twitch TV authentication and retrieving user information","archived":false,"fork":false,"pushed_at":"2020-04-08T13:40:21.000Z","size":2,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-16T16:45:59.373Z","etag":null,"topics":["authentication","twitch","twitch-api","twitch-tv","user"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RobertGrubb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-08T03:04:08.000Z","updated_at":"2024-06-30T20:38:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b8d2218-76bd-4bd9-aaf3-94d48ee5872f","html_url":"https://github.com/RobertGrubb/twitch-login-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertGrubb%2Ftwitch-login-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertGrubb%2Ftwitch-login-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertGrubb%2Ftwitch-login-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertGrubb%2Ftwitch-login-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobertGrubb","download_url":"https://codeload.github.com/RobertGrubb/twitch-login-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242157178,"owners_count":20081036,"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":["authentication","twitch","twitch-api","twitch-tv","user"],"created_at":"2024-11-16T02:21:12.314Z","updated_at":"2025-03-06T05:41:11.701Z","avatar_url":"https://github.com/RobertGrubb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twitch Login\n\nThis is a simple PHP library that shows you how to handle authentication through Twitch by allowing access to your application, grabbing the access token, then grabbing the user information from there.\n\n# Usage\n\nTo instantiate:\n\n```\n$Twitch = new Twitch($credentials);\n```\n\n`$credentials` is an array with the following:\n\n```\n[\n  'CLIENT_ID'     =\u003e '',\n  'CLIENT_SECRET' =\u003e '',\n  'REDIRECT_URI'  =\u003e ''\n]\n```\n\nTo login echo the following on your page:\n\n```\n$Twitch-\u003eauthUrl();\n```\n\nThen, when the code is returned, you can get user information by the following:\n\n```\n$Twitch-\u003eaccessToken = $_GET['code'];\n$userInfo = $Twitch-\u003efetchUser('username');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertgrubb%2Ftwitch-login-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertgrubb%2Ftwitch-login-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertgrubb%2Ftwitch-login-php/lists"}