Download the PHP package datomatic/laravel-fatture-in-cloud without Composer
On this page you can find all versions of the php package datomatic/laravel-fatture-in-cloud. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download datomatic/laravel-fatture-in-cloud
More information about datomatic/laravel-fatture-in-cloud
Files in datomatic/laravel-fatture-in-cloud
Package laravel-fatture-in-cloud
Short Description Laravel wrapper for Fatture in Cloud API v2
License MIT
Homepage https://github.com/nocodelab/laravel-fatture-in-cloud
Informations about the package laravel-fatture-in-cloud
Laravel wrapper for Fatture in Cloud API v2
This Laravel wrapper allows you to integrate Fatture in Cloud using Api v2.
Requirements
- Laravel >= 8.37
- PHP >= 8.1
- ext-json
Installation
You can install the package via composer:
Optionally, you can publish the config file with:
This is the contents of the published config file:
PS: to obtain company_id please see this article.
Usage
Get FattureInCloud class from service container or using FattureInCloud
Facade.
Use the Fatture In Cloud utilities classes
$fic->clients()->create([... user array...]);
Please see the functionalities and the array to pass on Official Documentation.
The resources covered are:
- user()
- info()
- products()
- clients()
- suppliers()
- invoices()
- quotes()
- proformas()
- receipts()
- deliveryNotes()
- creditNotes()
- orders()
- selfOwnInvoices()
- selfSupplierInvoices()
- invoices()
- work_reports()
- supplierOrders()
- expenses()
- passiveCreditNotes()
- passiveDeliveryNotes()
- paymentAccounts()
- paymentMethods()
Each resource has the same methods available:
all(array $data = [])
create(array $data)
edit(int $id, array $data)
delete(int $id, array $data = [])
getById(int $id, array $data = [])
The methods will return an array with the response from Fatture in Cloud API (except for the delete method that may return null).
For example, to fetch all clients (according to Official Documentation) you should call:
Enums
To improve the use of api usage is included a comfortable list of utilities enums:
- DocumentStatus
- EntityType
- IssuedDocumentType
- ReceivedDocumentType
- PaymentStatus
Utilities
The Fatture in CLoud API accept only a fullname on country field 🤦♂️ so i add a Datomatic\FattureInCloud\Utilities\CountryConverter
utility class with fromAlpha2
and fromName
methods.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Alberto Peripolli
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-fatture-in-cloud with dependencies
datomatic/laravel-enum-helper Version ^1.0|^2.0
ext-json Version *
spatie/laravel-package-tools Version ^1.13.0
illuminate/contracts Version ^8.37||^9.0|^10.0|^11.0