PHPackages                             willis84/socialite-ravelry - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. willis84/socialite-ravelry

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

willis84/socialite-ravelry
==========================

Ravelry OAuth2 Provider for Laravel Socialite

072PHP

Since Dec 15Pushed 4mo agoCompare

[ Source](https://github.com/willis84/socialite-ravelry)[ Packagist](https://packagist.org/packages/willis84/socialite-ravelry)[ RSS](/packages/willis84-socialite-ravelry/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Socialite Ravelry Oauth2 Provider
=================================

[](#socialite-ravelry-oauth2-provider)

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

[](#installation)

`composer require willis84/socialite-ravelry`

Add your Ravelry credentials to your `config/services.php` array / `.env` file

```
    'ravelry' => [
        'client_id' => env('RAVELRY_CLIENT_ID'),
        'client_secret' => env('RAVELRY_CLIENT_SECRET'),
        'redirect' => env('RAVELRY_REDIRECT_URI'),
    ],
```

Add the service provider to your `bootstrap/providers.php` file

```
return [
    // ...
    SocialiteRavelry\ServiceProvider::class
];
```

Use the driver as follows

```
$socialite = Socialite::driver('ravelry');

// get the redirect request to authenticate
$socialite->scopes(['offline'])->redirect();

// get the user when the user has approved your connection
$user = $socialite->user();

// refresh the oauth2 token, fetch the refresh token from your database
$socialite->scopes(['offline'])->refreshToken($refreshToken);
```

Please note, Ravelry does not provide the users email address, and in order to get the refresh token you will need to request the offline scope. Requesting additional scopes are done space delimited: `$socialite->scopes(['offline patternstore-read'])`

Many thanks to Cassidy at Ravelry for all her help in understanding the Ravelry Oauth2 flow.

Ravelry API documentation can be found at [www.ravelry.com/api](https://www.ravelry.com/api)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance50

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a50a420c370371456efbc34dec1a910b083b34f3d2d870d79a53ded06c62bd81?d=identicon)[willis84](/maintainers/willis84)

---

Top Contributors

[![willis84](https://avatars.githubusercontent.com/u/244052902?v=4)](https://github.com/willis84 "willis84 (4 commits)")

### Embed Badge

![Health badge](/badges/willis84-socialite-ravelry/health.svg)

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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