PHPackages                             alexz707/invoiceninja-module - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. alexz707/invoiceninja-module

ActiveLibrary[HTTP &amp; Networking](/categories/http)

alexz707/invoiceninja-module
============================

Laminas module that provides InvoiceNinja api functionality

0.1.6(2y ago)6127↓33.3%3MITPHPPHP ^8.1

Since Apr 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/alexz707/InvoiceNinjaModule)[ Packagist](https://packagist.org/packages/alexz707/invoiceninja-module)[ Docs](https://github.com/alexz707/InvoiceNinjaModule)[ RSS](/packages/alexz707-invoiceninja-module/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (14)Used By (0)

InvoiceNinjaModule
==================

[](#invoiceninjamodule)

Laminas Module to consume the InvoiceNinja V5 API ().

[![GitHub release](https://camo.githubusercontent.com/c233eae490440e32969b02c8d021aee223485ffad4a91d6488014a0c2ae83e56/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f616c65787a3730372f496e766f6963654e696e6a614d6f64756c652e737667)](https://github.com/alexz707/InvoiceNinjaModule/releases)[![CI](https://github.com/alexz707/InvoiceNinjaModule/actions/workflows/main.yml/badge.svg)](https://github.com/alexz707/InvoiceNinjaModule/actions/workflows/main.yml)[![Code Coverage](https://camo.githubusercontent.com/ca7b5e497fc7312ec55d7e9bd169f30e2f2ecafed1d1d4bb0b84c276ec8d3a8f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616c65787a3730372f496e766f6963654e696e6a614d6f64756c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/alexz707/InvoiceNinjaModule/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/02302b5cd99d33582a6a7aba95bcea5ea62e683616a4d302db049f0504429dd1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616c65787a3730372f496e766f6963654e696e6a614d6f64756c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/alexz707/InvoiceNinjaModule/?branch=master)[![Dependency Status](https://camo.githubusercontent.com/ac6200ccd04ee4af7976529405c58ea5c193468a836cf888f70634e44fcdce5a/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3539303235663061343564653662303034616237303365382f62616467652e737667)](https://www.versioneye.com/user/projects/59025f0a45de6b004ab703e8)[![Total Downloads](https://camo.githubusercontent.com/a319b04054bb353ff24d5e2152af80c102d3cf7222fa779566f1627d49fec17d/68747470733a2f2f706f7365722e707567782e6f72672f616c65787a3730372f696e766f6963656e696e6a612d6d6f64756c652f646f776e6c6f616473)](https://packagist.org/packages/alexz707/invoiceninja-module)[![Latest Stable Version](https://camo.githubusercontent.com/41d8dcfcd7bcee2c45d3d35188890841c98331b26ceb73611c81144ea16f58c3/68747470733a2f2f706f7365722e707567782e6f72672f616c65787a3730372f696e766f6963656e696e6a612d6d6f64756c652f762f737461626c652e706e67)](https://packagist.org/packages/alexz707/invoiceninja-module)

Description
-----------

[](#description)

Latest release can handle the following api services:

- Clients
- Invoices
- Products
- Tax rates

Can use `basic` or `digest` server authorization.

### Known issues

[](#known-issues)

- Invoice Ninja API V5 is (mostly) returning strings instead of the real data type but wants the real data types in the requests. If you find out about a field which behaves like this please open an issue!
- Not all endpoints are implemented -&gt; if you need one please send a PR or open an issue.
- Humbug is deprecated and should be changed to Infection

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

[](#installation)

The suggested installation method is via [composer](https://getcomposer.org/):

```
php composer.phar require alexz707/invoiceninja-module
```

### Configure module

[](#configure-module)

- Copy `/vendor/alexz707/invoiceninja-module/config/invoiceninja.global.php.dist` into your global autoload folder, remove the dist extension so that Laminas picks it up
- If you use your own instance of invoice ninja change the `host url`
- Replace the `token` with your generated invoice ninja token
- If you use `basic` or `digest` authorization uncomment the used method and fill in your credentials

```
    Module::INVOICE_NINJA_CONFIG => [
        Module::API_TIMEOUT     => 100,
        Module::TOKEN           => 'YOURTOKEN',
        Module::HOST_URL        => 'https://ninja.dev/api/v1',

        /*
         * If the api is protected by htaccess uncomment
         * ONE of the following code blocks and use your credentials.
         */
        Module::AUTHORIZATION   => [
            /*
             * BASIC authorization
             * \Zend\Http\Client::AUTH_BASIC => [
             *    Module::AUTH_USER => 'YOURUSER',
             *    Module::AUTH_PASS => 'YOURPASSWORD'
             * ]
             */

            /*
             * DIGEST authorization
             * \Zend\Http\ClientClient::AUTH_DIGEST => [
             *    Module::AUTH_USER => 'YOURUSER',
             *    Module::AUTH_PASS => 'YOURPASSWORD'
             * ]
             */
        ]
    ]
```

### Enable module

[](#enable-module)

Register as Laminas module inside your `config/application.config.php` file:

```
    'modules' => [
        'Laminas\Router',
        'InvoiceNinjaModule',
        'YourApplicationModule',
    ],
```

### Use the service managers

[](#use-the-service-managers)

```
        /** @var ClientManager $clientManager */
        $clientManager = $sm->get(ClientManager::class);
        $client = $clientManager->getClientById('1');
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity69

Established project with proven stability

 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 ~190 days

Recently: every ~119 days

Total

13

Last Release

1013d ago

PHP version history (4 changes)0.0.1PHP ^5.6 || ^7.0

0.0.2PHP ^7.1

0.1.0PHP ^8.0

0.1.4PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/77d82796cc29d922351001e9653d2950d663e171a552d7d7ba3966f8c7db2095?d=identicon)[alexz707](/maintainers/alexz707)

---

Top Contributors

[![alexz707](https://avatars.githubusercontent.com/u/562324?v=4)](https://github.com/alexz707 "alexz707 (60 commits)")

---

Tags

invoice-ninjalaminaslaminas-modulerest-clientlaminasrestmoduleinvoiceninja

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/alexz707-invoiceninja-module/health.svg)

```
[![Health](https://phpackages.com/badges/alexz707-invoiceninja-module/health.svg)](https://phpackages.com/packages/alexz707-invoiceninja-module)
```

###  Alternatives

[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[outeredge/swagger-module

Laminas Framework Module for Swagger resource file generation

23112.1k](/packages/outeredge-swagger-module)

PHPackages © 2026

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