{"id":28517519,"url":"https://github.com/invokable/socialite-discord","last_synced_at":"2025-07-21T09:33:33.224Z","repository":{"id":62535286,"uuid":"155992713","full_name":"invokable/socialite-discord","owner":"invokable","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-21T10:07:06.000Z","size":40,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-23T06:45:44.392Z","etag":null,"topics":["discord","socialite"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/revolution/socialite-discord","language":"PHP","has_issues":false,"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/invokable.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["invokable"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2018-11-03T14:49:19.000Z","updated_at":"2025-06-21T10:07:09.000Z","dependencies_parsed_at":"2024-12-06T18:15:22.809Z","dependency_job_id":"f993bcc9-2ed6-4977-b67c-02f4aa660f77","html_url":"https://github.com/invokable/socialite-discord","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":0.07692307692307687,"last_synced_commit":"08dfd6b1135a0276718dab5e66a2a681d23b2169"},"previous_names":["kawax/socialite-discord"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/invokable/socialite-discord","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invokable%2Fsocialite-discord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invokable%2Fsocialite-discord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invokable%2Fsocialite-discord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invokable%2Fsocialite-discord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/invokable","download_url":"https://codeload.github.com/invokable/socialite-discord/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invokable%2Fsocialite-discord/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266276167,"owners_count":23903981,"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":["discord","socialite"],"created_at":"2025-06-09T05:08:43.575Z","updated_at":"2025-07-21T09:33:33.219Z","avatar_url":"https://github.com/invokable.png","language":"PHP","funding_links":["https://github.com/sponsors/invokable"],"categories":[],"sub_categories":[],"readme":"# Socialite for Discord\n\nhttps://discordapp.com/developers/docs/topics/oauth2\n\n## Overview\n\nThis package provides a Discord OAuth2 provider for Laravel Socialite. It allows Laravel applications to authenticate users via their Discord accounts by integrating with Discord's OAuth2 API.\n\n## Requirements\n- PHP \u003e= 8.0\n\n\u003e No version restrictions. It may stop working in future versions.\n\n## Installation\n```\ncomposer require revolution/socialite-discord\n```\n\n### config/services.php\n\n```php\n    'discord' =\u003e [\n        'client_id'     =\u003e env('DISCORD_CLIENT_ID'),\n        'client_secret' =\u003e env('DISCORD_CLIENT_SECRET'),\n        'redirect'      =\u003e env('DISCORD_REDIRECT'),\n    ],\n```\n\n### .env\n```\nDISCORD_CLIENT_ID=\nDISCORD_CLIENT_SECRET=\nDISCORD_REDIRECT=\n```\n\n## Usage\n\nroutes/web.php\n```php\nRoute::get('login', [SocialiteController::class, 'login']);\nRoute::get('callback', [SocialiteController::class, 'callback']);\n```\n\nSocialiteController\n\n```php\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\nuse Laravel\\Socialite\\Facades\\Socialite;\n\nclass SocialiteController extends Controller\n{\n    public function login()\n    {\n        return Socialite::driver('discord')-\u003eredirect();\n    }\n\n    public function callback()\n    {\n        $user = Socialite::driver('discord')-\u003euser();\n        dd($user);\n    }\n}\n```\n\n## Scopes\n\nhttps://discordapp.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes\n\n```php\n    public function login()\n    {\n        return Socialite::driver('discord')\n                        -\u003esetScopes(['identify', 'email', 'guilds', 'guilds.join'])\n                        -\u003eredirect();\n    }\n```\n\n## Demo\nhttps://github.com/invokable/socialite-project\n\n## LICENCE\nMIT\nCopyright kawax\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvokable%2Fsocialite-discord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finvokable%2Fsocialite-discord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvokable%2Fsocialite-discord/lists"}