定制 stev/ninja-invoice-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

stev/ninja-invoice-bundle

最新稳定版本:v1.3.5

Composer 安装命令:

composer require stev/ninja-invoice-bundle

包简介

Symfony 2 Bundle for Ninja Invoice API

关键字:

README 文档

README

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

#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:

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


/* @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/

统计信息

  • 总下载量: 108
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-14