Download the PHP package quicreatdev/vatflow-php without Composer
On this page you can find all versions of the php package quicreatdev/vatflow-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download quicreatdev/vatflow-php
More information about quicreatdev/vatflow-php
Files in quicreatdev/vatflow-php
Package vatflow-php
Short Description Official PHP wrapper for the VatFlow API (EU VAT validation & monitoring)
License MIT
Informations about the package vatflow-php
VatFlow PHP SDK
The official PHP client for the VatFlow - EU VAT & Company Monitor API on RapidAPI.
VatFlow allows you to instantly validate European VAT numbers via VIES, enrich French company profiles (financials, executives, UBOs), and set up webhooks to monitor businesses for critical status changes.
Requirements
- PHP 7.4 or higher
- Composer
- A RapidAPI account and API key
Installation
You can install the package via Composer:
Quick Start
To use the API, you need your RapidAPI key. You can find it in your RapidAPI Studio dashboard after subscribing to the VatFlow API.
Usage
All methods return a standard PHP array decoded from the JSON response. You can check the success key to determine if the API call was successful.
1. Validate and Enrich a VAT Number
The validate method checks a VAT number and retrieves the company data.
Built-in Auto-Retry: By default, this SDK includes a robust auto-retry mechanism. If the government server (VIES) or the network experiences a temporary failure (HTTP 5xx), the client will automatically wait and retry up to 3 times before failing.
2. Subscribe to Webhook Alerts
Register a webhook URL to be notified proactively if a company's status or data changes.
3. List Active Webhooks
Retrieve a list of all VAT numbers you are currently monitoring.
4. Delete a Webhook
Unsubscribe from alerts for a specific VAT number.
Error Handling
The client handles JSON decoding and basic network exceptions. If a request fails at the API level (e.g., invalid VAT format, missing parameters, or exceeding your RapidAPI quota), the method will return an array with success set to false and an error message.
License
This project is licensed under the MIT License.