idez/laravel-cnab

Laravel Cnab

v1.0.8 2022-05-25 14:02 UTC

This package is auto-updated.

Last update: 2024-04-25 18:12:08 UTC


README

GitHub Tests Action Status Latest Version on Packagist Total Downloads

A Laravel package to handle cnab files.

Installation

You can install the package via composer:

composer require idez/laravel-cnab

You can publish and run the migrations with:

php artisan vendor:publish --provider="Idez\Cnab\Providers\CnabServiceProvider" --tag="cnab-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --provider="Idez\Cnab\Providers\CnabServiceProvider" --tag="cnab-config"

This is the contents of the published config file:

return [
    //
];

Usage

// Parse
$parsedFile = cnab()->parse(
    type: '',
    layout: 400,
    bank: 0,
    file: ''
);

// Generate
$cnabFile = cnab()->generate(
    type: '',
    layout: 400,
    bank: 0,
    data: []
);

Testing

composer test

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.

License

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