Download the PHP package friendsofapi/fortnox without Composer
On this page you can find all versions of the php package friendsofapi/fortnox. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download friendsofapi/fortnox
More information about friendsofapi/fortnox
Files in friendsofapi/fortnox
Package fortnox
Short Description An API client for Fortnox.se
License MIT
Informations about the package fortnox
FriendsOfApi Fortnox
Install
Via Composer
Usage
You need to follow the steps described on https://developer.fortnox.se/getting-started/ to get an access token. Once you got that token you can start playing with the API client.
Errors
See a list of error codes on Fortnox.
Develop
APIs are usually split into categories, called Resources.
In your implementation you should also reflect these categories, for example by having their own classes in Api/
.
Let's take a look at Api/Stats
in our case. The response of any call should be an object in Model/Stats/X
,
like Model/Stats/Total
.
Hydrator
The end user chooses which hydrator to use. The default one should return domain objects.
Request builder
The request builder creates a PSR-7 request with a multipart stream when necessary
If the API does not require multipart streams you should remove the RequestBuilder
and replace it with a RequestFactory
.
License
The MIT License (MIT). Please see License File for more information.
All versions of fortnox with dependencies
php-http/httplug Version ^1.0 || ^2.0
php-http/multipart-stream-builder Version ^1.0
php-http/client-common Version ^1.10 || ^2.0
php-http/discovery Version ^1.0