PHPackages                             stev/ninja-invoice-bundle - 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. stev/ninja-invoice-bundle

ActiveSymfony-bundle[API Development](/categories/api)

stev/ninja-invoice-bundle
=========================

Symfony 2 Bundle for Ninja Invoice API

v1.3.5(7y ago)0112↓50%MITPHPPHP &gt;=5.3

Since Sep 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/stevro/NinjaInvoiceBundle)[ Packagist](https://packagist.org/packages/stev/ninja-invoice-bundle)[ RSS](/packages/stev-ninja-invoice-bundle/feed)WikiDiscussions master Synced 1mo ago

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

NinjaInvoiceBundle
==================

[](#ninjainvoicebundle)

Symfony 2 Bundle for Ninja Invoice API

\#Use the invoice ninja sdk outside of Symfony Simply download only the NinjaInvoice.php from Lib folder. It has no dependency on Symfony Make sure you have Guzzle library installed as well.

Update notice 27.09.2017 - Breaking Changes
-------------------------------------------

[](#update-notice-27092017---breaking-changes)

\#I have updated this bundle on 27.09.2017 to support the upgrade of invoice ninja from v2.4.3 to v2.9.5. If you have are using this bundle for older versions do not upgrade it!

There is also an official php-sdk but I do not recommend it yet. It has some bugs that can be very annoying, so for the moment you are better of writing your own integration.

If anyone has the time, I'm sure the guys from invoice ninja will apreciate any help in improving the sdk and API.

1. Installation:
----------------

[](#1-installation)

Add this to composer.json

```

"stev/ninja-invoice-bundle": "0.1.*@dev"

```

Add this in app/AppKernel.php

```

new Stev\NinjaInvoiceBundle\StevNinjaInvoiceBundle()

```

Add this in app/config.yml

```

stev_ninja_invoice:
    apiKey: YOUR_API_KEY
    baseUri: OPTIONAL. ONLY SET IT IF YOU USE THE SELF HOSTED VERSION OF NINJA INVOICE

```

2. Usage
--------

[](#2-usage)

```

/* @var $ninjaInvoice \Stev\NinjaInvoiceBundle\Lib\NinjaInvoice */
        $ninjaInvoice = $this->get('stev.ninja_invoice');
        $response = $ninjaInvoice->createClient();

```

Ninja Invoice API documentation can be found at

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Recently: every ~3 days

Total

8

Last Release

2843d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/672e7c6f90e2b0fbc11b73af48ece5b8e536fd2475170b84f93683c0ed24b2b3?d=identicon)[stevro](/maintainers/stevro)

---

Top Contributors

[![stevro](https://avatars.githubusercontent.com/u/4375675?v=4)](https://github.com/stevro "stevro (11 commits)")

---

Tags

ninja invoice

### Embed Badge

![Health badge](/badges/stev-ninja-invoice-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/stev-ninja-invoice-bundle/health.svg)](https://phpackages.com/packages/stev-ninja-invoice-bundle)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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