willis84/socialite-ravelry 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

willis84/socialite-ravelry

Composer 安装命令:

composer require willis84/socialite-ravelry

包简介

Ravelry OAuth2 Provider for Laravel Socialite

README 文档

README

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

统计信息

  • 总下载量: 72
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固