seinoxygen/laravel-contabilium

A Laravel wrapper for Contabilium

v1.0.0 2022-11-18 10:49 UTC

This package is auto-updated.

Last update: 2024-04-18 13:57:01 UTC


README

Donate Packagist Downloads

A Laravel wrapper for Contabilium.

Installation

Add Laravel Contabilium as a dependency using the composer CLI:

composer require seinoxygen/laravel-contabilium

Basic Usage

Add the following to your config/services.php and add the correct values to your .env file

'contabilium' => [
    'client_id' => env('CONTABILIUM_CLIENT_ID'),
    'client_secret' => env('CONTABILIUM_CLIENT_SECRET'),
    'country' => env('CONTABILIUM_COUNTRY', 'ar'),
],

If using < Laravel 5.5, add the ContabiliumServiceProvider to the providers array

'providers' => [
    ...
    SeinOxygen\Contabilium\ContabiliumServiceProvider::class,
    ...
],

Next, in config/app.php, add the Contabilium to the aliases array

'aliases' => [
    ...
    'Contabilium' => SeinOxygen\Contabilium\Facades\Contabilium::class,
    ...
],

License

The MIT License (MIT). Please see License File for more information.