PHPackages                             kfoobar/laravel-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. [API Development](/categories/api)
4. /
5. kfoobar/laravel-fortnox

ActiveProject[API Development](/categories/api)

kfoobar/laravel-fortnox
=======================

Fortnox API Client for Laravel

v0.1.3(2y ago)01.8k3[1 issues](https://github.com/KFoobar/laravel-fortnox/issues)MITPHPPHP ^8

Since Feb 3Pushed 2y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

Fortnox API Client for Laravel
==============================

[](#fortnox-api-client-for-laravel)

Simplifies integration with the Fortnox API.

*Please notice! This package does not yet support all available resources in the Fortnox API*

Requirements
------------

[](#requirements)

- Laravel 6 or higher
- PHP 8.0 or higher
- Valid client id (from Fortnox)
- Valid client secret (from Fortnox)
- Valid refresh token (from Fortnox)

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

[](#installation)

You can install the package via Composer:

`composer require kfoobar/laravel-fortnox `

Settings for .env
-----------------

[](#settings-for-env)

```
FORTNOX_CLIENT_ID=
FORTNOX_CLIENT_SECRET=
FORTNOX_REFRESH_TOKEN=

```

Fortnox authorization
---------------------

[](#fortnox-authorization)

In order to use the Fortnox API, you need a valid refresh token. To get a refresh token, you need to grant access to the integration via Fortnox's OAuth2 authorization code flow. In that process, you are assigned an *authorization code*that you can use to exchange for a pair of token:

The **access token** - which is used to authenticate all API request - is only valid for 1 hour and needs to be refreshed using a refresh token. This package handles that process as long you have a valid refresh token.

The **refresh token** - which is used to renew the access token - is valid for 30 days. If it expires, you need to redo the OAuth2 authorization flow.

Every time you renew you access token, you will be assigned a new refresh token that is valid for another 30 days. It is therefore important that you regularly renew the tokens so that the refresh token does not expire.

You can renew your tokens with the following command:

```
php artisan fortnox:refresh

```

*Both the access token and the refresh token are stored in your application's cache. Keep this in mind when you purge the cache or changes cache driver.*

Instructions
------------

[](#instructions)

Coming soon...

Contributing
------------

[](#contributing)

Contributions are welcome!

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity38

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.

###  Release Activity

Cadence

Every ~100 days

Total

4

Last Release

893d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

apilaravelFortnoxbookkeep

### Embed Badge

![Health badge](/badges/kfoobar-laravel-fortnox/health.svg)

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

###  Alternatives

[mpociot/laravel-apidoc-generator

Generate beautiful API documentation from your Laravel application

3.5k3.1M12](/packages/mpociot-laravel-apidoc-generator)[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[specialtactics/l5-api

Dependencies for the Laravel API Boilerplate package

3672.8k2](/packages/specialtactics-l5-api)

PHPackages © 2026

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