PHPackages                             nihilsen/laravel-boxbilling - 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. nihilsen/laravel-boxbilling

AbandonedArchivedLibrary[API Development](/categories/api)

nihilsen/laravel-boxbilling
===========================

A BoxBilling API bridge for Laravel.

v0.2.1(3y ago)12[3 PRs](https://github.com/Persaeus/laravel-boxbilling/pulls)MITPHPPHP ^8.1

Since Oct 10Pushed 2y agoCompare

[ Source](https://github.com/Persaeus/laravel-boxbilling)[ Packagist](https://packagist.org/packages/nihilsen/laravel-boxbilling)[ Docs](https://github.com/nihilsen/laravel-boxbilling)[ RSS](/packages/nihilsen-laravel-boxbilling/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (9)Versions (11)Used By (0)

A minimalist BoxBilling API bridge for Laravel.
===============================================

[](#a-minimalist-boxbilling-api-bridge-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9828748cf29fa81b3ec9838fd631b3f42f372516e56c649daf6dad169270d50f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6968696c73656e2f6c61726176656c2d626f7862696c6c696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nihilsen/laravel-boxbilling)[![GitHub Tests Action Status](https://camo.githubusercontent.com/94309d1088bbb3f533cd34214ef47337736b8810eb918c7e08288a8d2df54324/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6e6968696c73656e2f6c61726176656c2d626f7862696c6c696e672f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/nihilsen/laravel-boxbilling/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/53bd3e30f50bb10908ca0433dd944589cd38288e2a57d84921f328c687672e44/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6e6968696c73656e2f6c61726176656c2d626f7862696c6c696e672f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/nihilsen/laravel-boxbilling/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/6da6d0f08f1100454e5c99771c48b70a7a5881614d7613520469d34f0ff254dc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6968696c73656e2f6c61726176656c2d626f7862696c6c696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nihilsen/laravel-boxbilling)

This package adds a simple interface for interacting with the API of a [BoxBilling](https://github.com/BoxBilling/BoxBilling) instance.

Basic authentication via a token is supported for `Client` and `Admin` endpoints.

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

[](#installation)

You can install the package via composer:

```
composer require nihilsen/laravel-boxbilling
```

If you wish, you may publish the config file with:

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

In the published config file, you may configure the `url` for the BoxBilling instance as well as the `token` for authenticated requests:

```
return [

    /*
    |--------------------------------------------------------------------------
    | Url
    |--------------------------------------------------------------------------
    |
    | The base url for all BoxBilling API requests.
    |
    */

    'url' => env('BOXBILLING_API_URL'),

    /*
    |--------------------------------------------------------------------------
    | Token
    |--------------------------------------------------------------------------
    |
    | The authentication token for authenticated API requests.
    |
    */

    'token' => env('BOXBILLING_API_TOKEN'),

];
```

Alternatively, you may configure these options via your `.env` enviroment file:

```
BOXBILLING_API_URL='https://boxbilling.tld/api'
BOXBILLING_API_TOKEN='your_secret_boxbilling_token'
```

Usage
-----

[](#usage)

API calls follow a format similar to that used internally in BoxBilling.

The starting point should always be the `BoxBilling` facade.

Request parameters **MUST** be passed as *named parameters*.

```
use Nihilsen\BoxBilling\Facades\BoxBilling;

# Determine BoxBilling version (endpoint: guest/system/version)
$version = BoxBilling::guest()->system_version();

# Get client by id (endpoint: admin/client/get)
$client = BoxBilling::admin()->client_get(id: 42);

# Get profile of client by id (endpoint: client/profile/get)
$profile = BoxBilling::client(id: 42)->profile_get();
```

### Paginated results

[](#paginated-results)

Paginated results are collected into a `Nihilsen\BoxBilling\Collection` instance, which is subclass of `Illuminate\Support\LazyCollection`.

```
use Nihilsen\BoxBilling\Facades\BoxBilling;

/** @var Nihilsen\BoxBilling\Collection **/
$tickets = BoxBilling::admin()->support_ticket_get_list(page: 1, per_page: 10);

# Select a random ticket
$ticket = $tickets->random();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [nihilsen](https://github.com/nihilsen)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 67.4% 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 ~1 days

Total

4

Last Release

1304d ago

### Community

Maintainers

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

---

Top Contributors

[![Persaeus](https://avatars.githubusercontent.com/u/32091869?v=4)](https://github.com/Persaeus "Persaeus (29 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")[![nihilsen](https://avatars.githubusercontent.com/u/160070922?v=4)](https://github.com/nihilsen "nihilsen (2 commits)")

---

Tags

apiboxbillingfossbillinglaravelphplaravelnihilsenlaravel-boxbilling

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/nihilsen-laravel-boxbilling/health.svg)

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

###  Alternatives

[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.0k7.8M57](/packages/dedoc-scramble)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ryangjchandler/bearer

Minimalistic token-based authentication for Laravel API endpoints.

8129.8k](/packages/ryangjchandler-bearer)[combindma/laravel-facebook-pixel

Meta pixel integration for Laravel

4956.9k](/packages/combindma-laravel-facebook-pixel)[stechstudio/laravel-hubspot

A Laravel SDK for the HubSpot CRM Api

2971.0k](/packages/stechstudio-laravel-hubspot)[njoguamos/laravel-plausible

A laravel package for interacting with plausible analytics api.

208.8k](/packages/njoguamos-laravel-plausible)

PHPackages © 2026

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