Skip to content
/ banks Public

Librería PHP para la gestión de ficheros bancarios (Norma 43, SEPA, etc.)

Notifications You must be signed in to change notification settings

ideatic/banks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Banks

Sencilla librería para la gestión de ficheros relacionados con bancos, (Cuaderno 43, SEPA, etc.)

Ejemplo de uso

<?php

$file = new Banks_N43();
$file->parse($content);

$entries = [];

foreach ($file->accounts as $account) {
    foreach ($account->entries as $entry) {
        $entries[] = [
            'date'     => $entry->date,
            'name'     => trim("{$entry->refererence_1} {$entry->refererence_2}"),
            'amount'   => $entry->type == Banks_N43::TYPE_DEBIT ? (-1 * $entry->amount) : $entry->amount,
            'subjects' => array_filter(array_filter($entry->concepts,'trim'))
        ];
    }
}

About

Librería PHP para la gestión de ficheros bancarios (Norma 43, SEPA, etc.)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages