{"id":28517523,"url":"https://github.com/invokable/socialite-wordpress","last_synced_at":"2025-07-10T12:15:52.999Z","repository":{"id":62535272,"uuid":"168630644","full_name":"invokable/socialite-wordpress","owner":"invokable","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-21T10:07:09.000Z","size":29,"stargazers_count":3,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-04T18:57:28.030Z","etag":null,"topics":["socialite"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/revolution/socialite-wordpress","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":"2019-02-01T02:32:25.000Z","updated_at":"2025-06-21T10:07:12.000Z","dependencies_parsed_at":"2025-06-13T17:04:44.004Z","dependency_job_id":null,"html_url":"https://github.com/invokable/socialite-wordpress","commit_stats":null,"previous_names":["kawax/socialite-wordpress"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/invokable/socialite-wordpress","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invokable%2Fsocialite-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invokable%2Fsocialite-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invokable%2Fsocialite-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invokable%2Fsocialite-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/invokable","download_url":"https://codeload.github.com/invokable/socialite-wordpress/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invokable%2Fsocialite-wordpress/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263626195,"owners_count":23490614,"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":["socialite"],"created_at":"2025-06-09T05:08:44.489Z","updated_at":"2025-07-10T12:15:52.993Z","avatar_url":"https://github.com/invokable.png","language":"PHP","funding_links":["https://github.com/sponsors/invokable"],"categories":[],"sub_categories":[],"readme":"# Socialite for WordPress\n\nWordPress.com and Self-hosted WordPress.\n\n## For Self-hosted WordPress\nYou must install WP OAuth Server plugin.\n\nhttps://wordpress.org/plugins/oauth2-provider/\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-wordpress\n```\n\n### config/services.php\n\n```php\n    'wordpress' =\u003e [\n        // Endpoint for WordPress.com\n        // 'host'          =\u003e env('WORDPRESS_HOST', 'https://public-api.wordpress.com/oauth2'),\n        // 'api_me'        =\u003e env('WORDPRESS_API_ME', 'https://public-api.wordpress.com/rest/v1.1/me'),\n\n        // Endpoint for Self-hosted WordPress\n        'host'   =\u003e env('WORDPRESS_HOST'),\n        'api_me' =\u003e env('WORDPRESS_API_ME', env('WORDPRESS_HOST') . '/me/'),\n\n        'client_id'     =\u003e env('WORDPRESS_CLIENT_ID'),\n        'client_secret' =\u003e env('WORDPRESS_CLIENT_SECRET'),\n        'redirect'      =\u003e env('WORDPRESS_REDIRECT'),\n    ],\n```\n\n### .env\n```\nWORDPRESS_HOST=https://example.com/oauth\n#WORDPRESS_API_ME=\nWORDPRESS_CLIENT_ID=\nWORDPRESS_CLIENT_SECRET=\nWORDPRESS_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 Socialite;\n\nclass SocialiteController extends Controller\n{\n    public function login()\n    {\n        return Socialite::driver('wordpress')-\u003eredirect();\n    }\n\n    public function callback()\n    {\n        $user = Socialite::driver('wordpress')-\u003euser();\n        dd($user);\n    }\n}\n\n```\n\n## Demo\nhttps://github.com/kawax/socialite-project\n\n## LICENCE\nMIT\n\nCopyright kawax\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvokable%2Fsocialite-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finvokable%2Fsocialite-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvokable%2Fsocialite-wordpress/lists"}