{"id":18367853,"url":"https://github.com/photon/oauth2-server","last_synced_at":"2025-08-18T07:04:27.497Z","repository":{"id":57039269,"uuid":"75652074","full_name":"photon/oauth2-server","owner":"photon","description":"Wrapper for bshaffer/oauth2-server-php","archived":false,"fork":false,"pushed_at":"2017-02-19T12:53:42.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-17T12:16:18.178Z","etag":null,"topics":["oauth2-server","photon","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/photon.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-05T18:01:17.000Z","updated_at":"2017-02-18T13:03:41.000Z","dependencies_parsed_at":"2022-08-23T23:31:02.544Z","dependency_job_id":null,"html_url":"https://github.com/photon/oauth2-server","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/photon/oauth2-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/photon%2Foauth2-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/photon%2Foauth2-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/photon%2Foauth2-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/photon%2Foauth2-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/photon","download_url":"https://codeload.github.com/photon/oauth2-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/photon%2Foauth2-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270956437,"owners_count":24674934,"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-08-18T02:00:08.743Z","response_time":89,"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":["oauth2-server","photon","php"],"created_at":"2024-11-05T23:23:43.803Z","updated_at":"2025-08-18T07:04:27.467Z","avatar_url":"https://github.com/photon.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"oauth2-server\n=============\n\n[![Build Status](https://travis-ci.org/photon/oauth2-server.svg?branch=master)](https://travis-ci.org/photon/oauth2-server)\n\n\nQuick start\n-----------\n\n1) Add the module in your project\n\n    composer require \"photon/oauth2-server:dev-master\"\n\nor for a specific version\n\n    composer require \"photon/oauth2-server:1.0.0\"\n\n\n2) Create a OAuth2 server class \n\nYou need to extends the abstract class \"Server\".\nThis class perform automatics convertion for $request and $response object.\n\n    class MyOAuth2Server extends \\photon\\auth\\oauth2\\Server\n    {\n        protected function initializeServer(\u0026$server)\n        {\n            $storage = new \\OAuth2\\Storage\\Mongo();\n            $server-\u003eaddStorage($storage);\n            $server-\u003eaddGrantType(new \\OAuth2\\GrantType\\AuthorizationCode($storage));\n            ...\n        }\n    }\n\nYou can use this class like the original \"\\OAuth2\\Server\".\n\n3) Define your oauth server class in the project configuration\n\n    'oauth_server' =\u003e '\\foo\\bar\\MyOAuth2Server'\n\n4) Enjoy !\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphoton%2Foauth2-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphoton%2Foauth2-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphoton%2Foauth2-server/lists"}