PHPackages                             mattitjaab/bokio-api-laravel - 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. mattitjaab/bokio-api-laravel

ActiveLibrary[API Development](/categories/api)

mattitjaab/bokio-api-laravel
============================

A Laravel wrapper for the Bokio API

01[4 PRs](https://github.com/MattitjaAB/bokio-api-laravel/pulls)PHPCI passing

Since Oct 13Pushed 2mo agoCompare

[ Source](https://github.com/MattitjaAB/bokio-api-laravel)[ Packagist](https://packagist.org/packages/mattitjaab/bokio-api-laravel)[ RSS](/packages/mattitjaab-bokio-api-laravel/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (6)Used By (0)

Bokio API Wrapper for Laravel
=============================

[](#bokio-api-wrapper-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c44a48a52f25ba6540d07fb0e50b27cec01bea216d5326e1cec5043d68f34c96/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d61747469746a6161622f626f6b696f2d6170692d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mattitjaab/bokio-api-laravel)[![Tests](https://camo.githubusercontent.com/853ae7dd1ce38e65f7924b64fce6ff4bcf6ef88435f20c193d03c6d5122c7b6b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d61747469746a6161622f626f6b696f2d6170692d6c61726176656c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/mattitjaab/bokio-api-laravel/actions?query=workflow%3Arun-tests+branch%3Amain)[![Code Style](https://camo.githubusercontent.com/35d212933548b41e467536e0474dc790c5ac7a725109d7e3e87ca58c351c06eb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d61747469746a6161622f626f6b696f2d6170692d6c61726176656c2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/mattitjaab/bokio-api-laravel/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/5751032f0a7707e04b93e14e694fe68b809ff5e1a29fb0f34b99c89799b05446/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d61747469746a6161622f626f6b696f2d6170692d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mattitjaab/bokio-api-laravel)

A simple and elegant Laravel wrapper for the [Bokio API](https://bokio.se). This package allows you to interact with Bokio programmatically using clean, Laravel-friendly syntax.

Features
--------

[](#features)

- Handles authentication using integration token and company ID
- Easily fetch customers, create invoices, and more
- Extensible and testable design using Laravel's HTTP client

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

[](#installation)

Install the package via Composer:

```
composer require mattitjaab/bokio-api-laravel
```

Publish the configuration file:

```
php artisan vendor:publish --tag="bokio-api-laravel-config"
```

This will create a `config/bokio.php` file where you can define:

```
return [
    'token' => env('BOKIO_TOKEN'),
    'company_id' => env('BOKIO_COMPANY_ID'),
];
```

Make sure to set your `.env` file accordingly:

```
BOKIO_TOKEN=your-token-here
BOKIO_COMPANY_ID=your-company-id
```

Usage
-----

[](#usage)

You can resolve the Bokio client using the service container:

```
$bokio = app(\Mattitja\BokioApiLaravel\Bokio::class);

// Fetch all customers
$customers = $bokio->customers()->all();

// Create a customer
$bokio->customers()->create([
    'name' => 'New Company AB',
    'type' => 'company',
    'address' => [
        'line1' => 'Main Street 1',
        'city' => 'Stockholm',
        'postalCode' => '11122',
        'country' => 'SE',
    ],
]);
```

Testing
-------

[](#testing)

Run the test suite with:

```
composer test
```

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

[](#contributing)

Contributions are welcome! Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover a security vulnerability, please follow [our security policy](../../security/policy).

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance57

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9047940?v=4)[Matze Matratze](/maintainers/Mattitja)[@mattitja](https://github.com/mattitja)

---

Top Contributors

[![mathiaspalmqvist](https://avatars.githubusercontent.com/u/51116221?v=4)](https://github.com/mathiaspalmqvist "mathiaspalmqvist (23 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

### Embed Badge

![Health badge](/badges/mattitjaab-bokio-api-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/mattitjaab-bokio-api-laravel/health.svg)](https://phpackages.com/packages/mattitjaab-bokio-api-laravel)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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