Download the PHP package deviddev/billingo-api-v3-wrapper without Composer
On this page you can find all versions of the php package deviddev/billingo-api-v3-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package billingo-api-v3-wrapper
Billingo API V3 Laravel and PHP Wrapper
This is a simple Laravel (PHP) wrapper for Billingo (billingo.hu) API V3 SwaggerHUB PHP SDK.
Compatible with: Laravel 8.x, 9.x and 10.x or PHP 8.1<=
You can use the wrapper easily with all type of PHP projects (not just Laravel) from 1.0.0 version without changing except downloadInvoice method.
Installation
You can install the package via composer or just download it:
Usage
Laravel
Publish config file:
php artisan vendor:publish --tag="billingo-config"
First set up your Billingo API V3 key in ./config/billingo-api-v3-wrapper.php config file.
Import wrapper with facade:
PHP
Import wrapper:
You must add your api key to BillingoApi object constructor:
Available methods
Make an api instance (eg.: BankAccount, Currency, Document, DocumentBlock, DocumentExport, Organization, Partner, Product, Util):
Add some data to model:
Make a model instance (eg: Address, BankAccount, Currency, Document, etc... - see in ./vendor/deviddev/billingo-api-v3-php-sdk/lib/model):
(if you don't want use make() method simply add necessary data as second parameter)
With http info (get http info (headers, response code, etc...)):
Get invoice, partner, product(call api class method with model instance):
Delete partner, product (call api class method with model instance):
Delete payment (call api class method with model instance):
Create model (call api class method with model instance):
Update model (call api class method with model instance and model id):
Cancel invoice:
Create invoice from proforma invoice:
Check tax number:
List model (call api class method with model instance):
*** All conditions is optional!
Download invoice to server:
Send invoice in email:
Get invoice public url response:
Get Billingo API response:
Get Billingo API response id (eg.: partner id, invoice id, etc.):
Method chaining:
All pulic methods are chainable, except getResponse() and getId() methods.
If you don't add some data to model(string $modelName, array $data = null)
method second array $data = null
parameter, you MUST use make(array $data)
method BEFORE model()
method, see in examples.
The withHttpInfo()
method MUST be called IMMEDIATELY AFTER the api()
, make()
or model()
methods.
Examples
Create partner example:
Partner array:
Laravel
Create partner and get response:
OR
Create partner with make and get response:
OR
Create partner and get partner id:
OR
Create partner with make and get partner id:
PHP
Create partner and get response:
OR
Create partner with make and get response:
OR
Create partner and get partner id:
OR
Create partner with make and get partner id:
Update partner example:
Partner array:
Laravel
Update partner and get response:
OR
Update partner with make and get response:
OR
Update partner and get partner id:
OR
Update partner with make and get partner id:
PHP
Update partner and get response:
OR
Update partner with make and get response:
OR
Update partner and get partner id:
OR
Update partner with make and get partner id:
Create invoice example:
Invoice array:
Laravel
Create invoice and get response:
OR
Create invoice with make and get response:
OR
Create invoice and get invoice id:
OR
Create invoice with make and get invoice id:
PHP
Create invoice and get response:
OR
Create invoice with make and get response:
OR
Create invoice and get invoice id:
OR
Create invoice with make and get invoice id:
List invoices, partners, blocks, etc example:
Laravel
List invoices:
List partners:
List partners with query string:
List blocks:
List banks accounts:
List products:
PHP
List invoices:
List partners:
List partners with query string:
List blocks:
List banks accounts:
List products:
Download invoice example:
Laravel
Default path is: ./storage/app/invoices
Default extension is: .pdf
File name is invoice id.
Return the path in the response, eg.:
Download invoice:
OR
Download to specified path and extension:
PHP
Come in version 1.1.
Send invoice in e-mail example:
Return the e-mails array where to send the invoce, eg.:
Laravel
Send invoice:
PHP
Send invoice:
Get invoice public url example:
Return the public url array, eg.:
Laravel
Get invoice public url:
PHP
Get invoice public url:
Cancel invoice example:
Laravel
Cancel invoice:
PHP
Cancel invoice:
Create invoice from proforma invoice example:
Laravel
Create invoice from proforma invoice:
PHP
Create invoice from proforma invoice:
Check tax number example:
First set up your NAV connection in your billingo account, because it always return "Invalid tax number!"
Laravel
Check tax number:
PHP
Check tax number:
Get invoice, product, partner example:
Laravel
Get invoice:
Get partner:
Get product:
PHP
Get invoice:
Get partner:
Get product:
Delete product, partner example:
Laravel
Delete partner:
Delete product:
PHP
Delete partner:
Delete product:
Delete payment example:
Laravel
Get partner:
PHP
Get partner:
With http info example:
Laravel
With http info:
PHP
With http info:
Testing
First set up your Billingo API V3 Key in config/config.php
file.
Linux, MAC OS
OR
Windows
OR
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- David Molnar
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.
All versions of billingo-api-v3-wrapper with dependencies
illuminate/support Version ^8|^9|^10|^11
deviddev/billingo-api-v3-php-sdk Version ^0.2.6