Download the PHP package kfoobar/laravel-kivra without Composer
On this page you can find all versions of the php package kfoobar/laravel-kivra. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kfoobar/laravel-kivra
More information about kfoobar/laravel-kivra
Files in kfoobar/laravel-kivra
Package laravel-kivra
Short Description Laravel package for the Kivra Sender API
License MIT
Homepage https://github.com/kfoobar/laravel-kivra
Informations about the package laravel-kivra
Kivra API Client for Laravel
A lightweight Laravel package for interacting with the Kivra Sender API, supporting both live and sandbox environments.
Note: This package currently covers a limited subset of the Kivra API. Additional endpoints may be added in future releases.
Requirements
- PHP 8.0 or higher
- Laravel 9.0 or higher
Installation
Install the package via Composer:
Publish the configuration file:
This will create a kivra.php file in your config directory.
Configuration
Add the following variables to your .env file:
KIVRA_TEST_MODE is optional and defaults to false. Set it to true to route all requests to the Kivra sandbox API.
Usage
Authenticate
Authentication uses the OAuth 2.0 client credentials flow. Call auth() before any other method:
Find a Company
Look up a company by VAT number:
Returns an array with the company data, or an empty array if not found.
Contribution
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Make your changes and ensure tests pass.
- Submit a pull request with a detailed description of your changes.
License
This package is open-source and released under the MIT License. See LICENSE for more information.