定制 teqbylyte/bims-connect 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

teqbylyte/bims-connect

最新稳定版本:v1.0.6

Composer 安装命令:

composer require teqbylyte/bims-connect

包简介

A Socialite extension to provide authentication functionality specific to BIMS - Beneficiary Identity Management Service by TETFund.

README 文档

README

A laravel package extending Laravel Socialite to provide authentication functionality specific to BIMS - Beneficiary Identity Management Service by TETFund. Visit bims.tetfund.gov.ng to know more.

Installation 💻

Install via composer

composer require teqbylyte/bims-connect

Configuration ⚙️

Your BIMS client credentials should be placed in your config/services.php as given below:

'bims' => [
    'client_id' => env('BIMS_CLIENT_ID'),
    'client_secret' => env('BIMS_CLIENT_SECRET'),
    'redirect' => 'https://yoursite.com/callback-url',
],

Usage ✨

To initiate a connection with your BIMS service, invoke the init method provided by the package, which is a direct & easy replacement for how one would use Laravel Socialite:

use Teqbylyte\BimsConnect\BimsConnect;

// Instead of Socialite::driver('bims'), use:
BimsConnect::init()

// Illustration 1:
Route::get('/oauth/redirect', function () {
    return BimsConnect::init()->redirect();
});
 
// Illustration 2:
Route::get('/oauth/callback', function () {
    $user = BimsConnect::init()->user();
 
    // $user->getEmail()
});

Visit Laravel Socialite Learn more about other available methods.

Contribution 🛠️

If you find any issue with this package, you're welcome to contribute 😄

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-30