定制 srinivasprabhu794/oauth2-fortnox 二次开发

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

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

srinivasprabhu794/oauth2-fortnox

最新稳定版本:v1.0.1

Composer 安装命令:

composer require srinivasprabhu794/oauth2-fortnox

包简介

A Fortnox provider for league/oauth2-client

README 文档

README

This is a package to integrate Fortnox authentication with the OAuth2 client library by The League of Extraordinary Packages.

Installation

composer require srinivasprabhu794/oauth2-fortnox

Usage

Create instance of the provider

$provider = new \Codepeak\OAuth2\Client\Provider\Fortnox([
    'clientId' => "YOUR_CLIENT_ID",
    'clientSecret' => "YOUR_CLIENT_SECRET",
    'redirectUri' => "https://your.redirect.uri/full/url/path/here"
]);

Get authorization URL

$authorizationUrl = $provider->getAuthorizationUrl(['scope' => ['companyinformation', 'profile']]);

Get the access token

$token = $provider->getAccessToken("authorization_code", [
    'code' => $_GET['code']
]);

Refresh access token

$token = $provider->getAccessToken("refresh_token", [
    'refresh_token' => $refreshToken
]);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-25