2017 © Pedro Peláez
 

symfony-bundle ninja-invoice-bundle

Symfony 2 Bundle for Ninja Invoice API

image

stev/ninja-invoice-bundle

Symfony 2 Bundle for Ninja Invoice API

  • Wednesday, August 1, 2018
  • by stevro
  • Repository
  • 1 Watchers
  • 0 Stars
  • 67 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 10 % Grown

The README.md

NinjaInvoiceBundle

Symfony 2 Bundle for Ninja Invoice API, (*1)

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., (*2)

Update notice 27.09.2017 - 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!, (*3)

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., (*4)

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

1. Installation:

Add this to composer.json, (*6)


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

Add this in app/AppKernel.php, (*7)


new Stev\NinjaInvoiceBundle\StevNinjaInvoiceBundle()

Add this in app/config.yml, (*8)


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

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 https://www.invoiceninja.com/api-documentation/, (*9)

The Versions

01/08 2018

dev-master

9999999-dev

Symfony 2 Bundle for Ninja Invoice API

  Sources   Download

MIT

The Requires

 

by Stefan Matei

ninja invoice

01/08 2018

1.3.1

1.3.1.0

Symfony 2 Bundle for Ninja Invoice API

  Sources   Download

MIT

The Requires

 

by Stefan Matei

ninja invoice

20/07 2018

v1.3

1.3.0.0

Symfony 2 Bundle for Ninja Invoice API

  Sources   Download

MIT

The Requires

 

by Stefan Matei

ninja invoice

20/07 2018

v1.2

1.2.0.0

Symfony 2 Bundle for Ninja Invoice API

  Sources   Download

MIT

The Requires

 

by Stefan Matei

ninja invoice

10/10 2017

v1.1

1.1.0.0

Symfony 2 Bundle for Ninja Invoice API

  Sources   Download

MIT

The Requires

 

by Stefan Matei

ninja invoice

10/10 2017

dev-fixing_currency_id

dev-fixing_currency_id

Symfony 2 Bundle for Ninja Invoice API

  Sources   Download

MIT

The Requires

 

by Stefan Matei

ninja invoice

27/09 2017

v1.0

1.0.0.0

Symfony 2 Bundle for Ninja Invoice API

  Sources   Download

MIT

The Requires

 

by Stefan Matei

ninja invoice