Download the PHP package offline-agency/laravel-fatture-in-cloud-v2 without Composer
On this page you can find all versions of the php package offline-agency/laravel-fatture-in-cloud-v2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download offline-agency/laravel-fatture-in-cloud-v2
More information about offline-agency/laravel-fatture-in-cloud-v2
Files in offline-agency/laravel-fatture-in-cloud-v2
Package laravel-fatture-in-cloud-v2
Short Description A wrapper plugin with Fatture in Cloud Api V2 written in Laravel PHP
License MIT
Homepage https://github.com/offline-agency/laravel-fatture-in-cloud-v2
Informations about the package laravel-fatture-in-cloud-v2
Laravel Fatture in Cloud v2
π This is the documentation for the API v2. You can find the package for the API v1 here.
Warning for integrators
- Keep your copy up to date: Check the official laravel-fatture-in-cloud-v2 package and update your local dependency (e.g. run
composer update offline-agency/laravel-fatture-in-cloud-v2or pull the latest from the repository). - Response variables are camelCase: Entity properties use camelCase (e.g.
amountGross,amountNet,amountVat), not snake_case (amount_gross,amount_net,amount_vat). If you have existing code that reads response data, update it to use the new property names. Use the entity classes in this package as the referenceβfor example,IssuedDocumentfor issued documents. Examples:amount_grossβamountGross,amount_netβamountNet,created_atβcreatedAt. - Config: Check the package config
config/fatture-in-cloud-v2.phpand update your projectβs config to match, especiallybaseUrl. Use the root API URL only (no extra path segments).
Requirements
- PHP ^8.4 (includes 8.5)
- Laravel ^11.0|^12.0|^13.0
| PHP | Laravel 11 | Laravel 12 | Laravel 13 |
|---|---|---|---|
| 8.4 | β | β | β |
| 8.5 | β | β | β |
API Granularization (Breaking Changes)
The monolithic Settings and Setting classes have been split into granular resources to improve maintainability and strictly follow the Single Responsibility Principle:
Settings-> Split intoVatType,PaymentAccount, andPaymentMethod.ArchiveDocument-> Renamed toArchive.Cashbooks-> Renamed toCashbook.- New classes added:
Email,Situation,PriceList, andWebhook.
Strictly Typed & Readonly Entities
All entities (e.g., Client, IssuedDocument, PriceList) have been refactored to be readonly classes with strict types.
- Properties are now immutable.
- Usage of
mixedtypes has been minimized in favor of strictstring,int,float,bool, etc. - Constructors ensure safe data mapping from API responses.
Modern testing suite
- Switched from PHPUnit to Pest PHP for a more expressive and modern testing experience.
- Automated code styling with Laravel Pint.
Architecture
- The package now utilizes a central
FattureInCloudconnector for better state management. - API interactions are handled via the native Laravel
Httpclient.
Documentation, Installation, and Usage Instructions
This package provides a simple Laravel integration with Fatture in Cloud APIs v2.
See the documentation for detailed installation and usage instructions.
Features
All [
]()
This package provide all() method that allow you to get an array of all results without pagination. It's implemented for all endpoint that provide a list method with pagination. Let's see an example:
Pagination
This package provides a pagination system that allow you to move between pages using simple methods:
Bin [
]()
This package provides bin() method for deleted issued documents that allow you to get its detail. This is very useful, for example, when you convert a proforma into an invoice (deleting the proforma) and you need old document's detail. Let's see an example:
Rate limit [
]()
This package provides a method to intercept throttle errors (403, 429) and automatically retry. You can specify limits on your config, remember to use milliseconds to indicate time:
API coverage
We are currently work on this package to implement all endpoints. Enable notifications to be notified when new API are released.
β User
β Companies
β Clients
β Suppliers
β Products
β Issued Documents
β Issued e-invoices
β Received Documents
β Receipts
β Taxes
β Archive
β Cashbook
β Info
β Price Lists
β Webhooks
β Situation
β Emails
β Stock
β Payment Accounts
β Payment Methods
β VAT Types
Testing
Unit and Feature tests use mocked HTTP. To run integration tests (real HTTP calls to Fatture in Cloud), set in .env:
FCV2_DEFAULT_IDβ company IDFCV2_DEFAULT_BEARERβ API bearer token
Then run:
If these env vars are not set, integration tests are skipped.
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
About us
Offline Agency is a web design agency based in Padua, Italy. You'll find an overview of our projects on our website.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-fatture-in-cloud-v2 with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^7.9
illuminate/container Version ^11.0|^12.0|^13.0
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
