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

ActiveLibrary[API Development](/categories/api)

hmphu/fortnox
=============

Fortnox API Implement in PHP

1.0.0(10y ago)41732GNUPHPPHP &gt;=5.4.0

Since Feb 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/hmphu/fortnox)[ Packagist](https://packagist.org/packages/hmphu/fortnox)[ RSS](/packages/hmphu-fortnox/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Fortnox PHP SDK
===============

[](#fortnox-php-sdk)

Unofficial PHP wrapper for Fortnox API

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

[](#installation)

The preferred way to install this extension is through composer.

Either run

```
php composer.phar require --prefer-dist hmphu/fortnox

```

or add

```
"hmphu/fortnox": "*"

```

to the require section of your composer.json.

Get a developer account
-----------------------

[](#get-a-developer-account)

First of all you need to register as a developer.

To register you just need to fill out [this form](http://developer.fortnox.se/register/).

Get your Access Token
---------------------

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

You’ve got your Authorization-Code and your Client-Secret. These will be the keys to get the final Access-Token.

The Authorization-Code is valid for seven days before becoming invalid and can only be used once to retrieve the Access-Token.

If the Authorization-Code is used again after an Access-Token has been retrieved the Authorization-Code will become invalid and the integration will become deactivated.

The Access-Token combined with the Client-Secret is unique for your application and connects to a specific Fortnox account.

To retrieve your Access-Token you simply send a request to our API using the headers “Authorization-Code” and “Client-Secret”.

Here’s an example using cURL

```
curl -X "GET" "https://api.fortnox.se/3/" \
     -H "Authorization-Code: YOUR_AUTHORIZATION_CODE" \
     -H "Client-Secret: YOUR_CLIENT_SECRET" \
     -H "Content-Type: application/json" \
     -H "Accept: application/json"

```

Supported Apis
--------------

[](#supported-apis)

- Account API
- Account Charts API
- Archive API
- Article API
- Article File Connection API
- Article URL Connection API
- Customer API
- Invoice API
- Project API
- Supplier API

Authors and Contributors
------------------------

[](#authors-and-contributors)

Make with love to Fortnox

In 2016, PhuHM ([@hmphu](https://github.com/hmphu)), [http://hmphu.com](http://www.hnphu.com)

Support or Contact
------------------

[](#support-or-contact)

Having trouble? [contact me](mailto:me@hmphu.com)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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

Unknown

Total

1

Last Release

3781d ago

### Community

Maintainers

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

---

Top Contributors

[![kjostling](https://avatars.githubusercontent.com/u/1138012?v=4)](https://github.com/kjostling "kjostling (3 commits)")[![hmphu](https://avatars.githubusercontent.com/u/2835749?v=4)](https://github.com/hmphu "hmphu (2 commits)")

### Embed Badge

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

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M932](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k34](/packages/neuron-core-neuron-ai)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[fschmtt/keycloak-rest-api-client-php

PHP client to interact with Keycloak's Admin REST API.

49108.6k2](/packages/fschmtt-keycloak-rest-api-client-php)

PHPackages © 2026

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