PHPackages                             srinivasprabhu794/oauth2-fortnox - 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. srinivasprabhu794/oauth2-fortnox

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

srinivasprabhu794/oauth2-fortnox
================================

A Fortnox provider for league/oauth2-client

v1.0.1(1y ago)07MITPHPPHP &gt;=7.0

Since Apr 25Pushed 1y agoCompare

[ Source](https://github.com/SrinivasPrabhu794/oauth2-fortnox)[ Packagist](https://packagist.org/packages/srinivasprabhu794/oauth2-fortnox)[ RSS](/packages/srinivasprabhu794-oauth2-fortnox/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

Fortnox provider for league/oauth2-client
=========================================

[](#fortnox-provider-for-leagueoauth2-client)

This is a package to integrate [Fortnox](https://developer.fortnox.se/general/authentication/) authentication with the OAuth2 client library by [The League of Extraordinary Packages](https://github.com/thephpleague/oauth2-client).

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

[](#installation)

```
composer require srinivasprabhu794/oauth2-fortnox
```

Usage
-----

[](#usage)

### Create instance of the provider

[](#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

[](#get-authorization-url)

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

### Get the access token

[](#get-the-access-token)

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

### Refresh access token

[](#refresh-access-token)

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance49

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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 ~4 days

Total

2

Last Release

378d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7cb13699e3a761bf4cca83160ffca2349266868ea0a5fb3bb2246dd3400e3a39?d=identicon)[srinivasprabhu794](/maintainers/srinivasprabhu794)

---

Top Contributors

[![robbanl](https://avatars.githubusercontent.com/u/922250?v=4)](https://github.com/robbanl "robbanl (6 commits)")[![SrinivasPrabhu794](https://avatars.githubusercontent.com/u/817112?v=4)](https://github.com/SrinivasPrabhu794 "SrinivasPrabhu794 (4 commits)")[![stromgren](https://avatars.githubusercontent.com/u/971993?v=4)](https://github.com/stromgren "stromgren (2 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/srinivasprabhu794-oauth2-fortnox/health.svg)

```
[![Health](https://phpackages.com/badges/srinivasprabhu794-oauth2-fortnox/health.svg)](https://phpackages.com/packages/srinivasprabhu794-oauth2-fortnox)
```

###  Alternatives

[league/oauth2-google

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

41721.2M118](/packages/league-oauth2-google)[knpuniversity/oauth2-client-bundle

Integration with league/oauth2-client to provide services

83416.7M61](/packages/knpuniversity-oauth2-client-bundle)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2509.6M48](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-keycloak

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

2275.9M27](/packages/stevenmaguire-oauth2-keycloak)[patrickbussmann/oauth2-apple

Sign in with Apple OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1132.5M6](/packages/patrickbussmann-oauth2-apple)[microsoft/kiota-authentication-phpleague

Authentication provider for Kiota using the PHP League OAuth 2.0 client to authenticate against the Microsoft Identity platform

153.2M7](/packages/microsoft-kiota-authentication-phpleague)

PHPackages © 2026

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