PHPackages                             revolution/socialite-wordpress - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. revolution/socialite-wordpress

ActiveLibrary[API Development](/categories/api)

revolution/socialite-wordpress
==============================

Socialite for WordPress

1.3.1(1y ago)412.8k↓26.4%3[2 issues](https://github.com/invokable/socialite-wordpress/issues)MITPHPPHP ^8.0CI passing

Since Feb 1Pushed 1w ago1 watchersCompare

[ Source](https://github.com/invokable/socialite-wordpress)[ Packagist](https://packagist.org/packages/revolution/socialite-wordpress)[ GitHub Sponsors](https://github.com/invokable)[ RSS](/packages/revolution-socialite-wordpress/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (4)Versions (9)Used By (0)

Socialite for WordPress
=======================

[](#socialite-for-wordpress)

WordPress.com and Self-hosted WordPress.

For Self-hosted WordPress
-------------------------

[](#for-self-hosted-wordpress)

You must install WP OAuth Server plugin.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.0

> No version restrictions. It may stop working in future versions.

Installation
------------

[](#installation)

```
composer require revolution/socialite-wordpress

```

### config/services.php

[](#configservicesphp)

```
    'wordpress' => [
        // Endpoint for WordPress.com
        // 'host'          => env('WORDPRESS_HOST', 'https://public-api.wordpress.com/oauth2'),
        // 'api_me'        => env('WORDPRESS_API_ME', 'https://public-api.wordpress.com/rest/v1.1/me'),

        // Endpoint for Self-hosted WordPress
        'host'   => env('WORDPRESS_HOST'),
        'api_me' => env('WORDPRESS_API_ME', env('WORDPRESS_HOST') . '/me/'),

        'client_id'     => env('WORDPRESS_CLIENT_ID'),
        'client_secret' => env('WORDPRESS_CLIENT_SECRET'),
        'redirect'      => env('WORDPRESS_REDIRECT'),
    ],
```

### .env

[](#env)

```
WORDPRESS_HOST=https://example.com/oauth
#WORDPRESS_API_ME=
WORDPRESS_CLIENT_ID=
WORDPRESS_CLIENT_SECRET=
WORDPRESS_REDIRECT=

```

Usage
-----

[](#usage)

routes/web.php

```
Route::get('login', [SocialiteController::class, 'login']);
Route::get('callback', [SocialiteController::class, 'callback']);
```

SocialiteController

```
namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Socialite;

class SocialiteController extends Controller
{
    public function login()
    {
        return Socialite::driver('wordpress')->redirect();
    }

    public function callback()
    {
        $user = Socialite::driver('wordpress')->user();
        dd($user);
    }
}
```

Demo
----

[](#demo)

LICENCE
-------

[](#licence)

MIT

Copyright kawax

###  Health Score

48

—

FairBetter than 93% of packages

Maintenance60

Regular maintenance activity

Popularity31

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 82.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~345 days

Recently: every ~437 days

Total

7

Last Release

640d ago

PHP version history (5 changes)1.0.0PHP &gt;=7.0.0

1.1.0PHP &gt;=7.1.3

1.2.0PHP ^7.2

1.2.2PHP ^7.2||^8.0

1.3.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/77618633?v=4)[Revolution](/maintainers/revolution)[@Revolution](https://github.com/Revolution)

---

Top Contributors

[![kawax](https://avatars.githubusercontent.com/u/1502086?v=4)](https://github.com/kawax "kawax (28 commits)")[![devin-ai-integration[bot]](https://avatars.githubusercontent.com/in/811515?v=4)](https://github.com/devin-ai-integration[bot] "devin-ai-integration[bot] (3 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

socialitelaravelwordpresssocialite

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/revolution-socialite-wordpress/health.svg)

```
[![Health](https://phpackages.com/badges/revolution-socialite-wordpress/health.svg)](https://phpackages.com/packages/revolution-socialite-wordpress)
```

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.5M36](/packages/mollie-laravel-mollie)[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)[revolution/laravel-bluesky

Bluesky(AT Protocol) for Laravel

4422.8k](/packages/revolution-laravel-bluesky)[madeitbelgium/wordpress-php-sdk

WordPress Laravel PHP SDK

4429.1k1](/packages/madeitbelgium-wordpress-php-sdk)[rickwest/laravel-wordpress-api

A Laravel read-only client for the WordPress REST API (v2)

3715.1k1](/packages/rickwest-laravel-wordpress-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
