Download the PHP package kouinkouin/php-coda-parser without Composer
On this page you can find all versions of the php package kouinkouin/php-coda-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kouinkouin/php-coda-parser
More information about kouinkouin/php-coda-parser
Files in kouinkouin/php-coda-parser
Package php-coda-parser
Short Description PHP parser for Belgian CODA banking files
License GPL-2.0-or-later
Homepage https://github.com/kouinkouin/php-coda-parser
Informations about the package php-coda-parser
php-coda-parser
PHP parser for Belgian CODA banking files
Installation
You can install Codelicious/Coda using Composer. You can read more about Composer and its main repository at
http://packagist.org. First install Composer for your project using the instructions on the
Packagist home page, then define your dependency on Codelicious/Coda in your composer.json
file.
Or you can execute the following command in your project root to install this library:
Demo / API
You can try the parser at https://eenvoudigfactureren.be/coda. An open API is also available at the same page if you don't feel like hosting the code yourself.
Usage
Statement structure
There are 2 structures available. 'raw' which resembles the original file structure and contains all information and 'simple' which is a simplified version only containing the most important information.
If you are unsure what to use you should use 'simple'.
Properties that are not supplied will be null
.
Codelicious\Coda\Data\Simple\Statement
date
Date of the supplied file (format YYYY-MM-DD)account
Account for which the statements were created. An object implementingCodelicious\Coda\Data\Simple\Account
original_balance
Balance of the account before the transactions were processed. Up to 3 decimals.new_balance
Balance of the account after the transactions were processed. Up to 3 decimals.free_messages
A list of text messages containing additional informationtransaction
A list of transactions implemented asCodelicious\Coda\Data\Simple\Transaction
Codelicious\Coda\Data\Simple\Account
name
Name of the holder of the accountbic
Bankcode of the accountcompany_id
Official Belgian company number of the account holdernumber
Banknumber of the accountcurrency
Currency of the accountcountry
Country of the account
Codelicious\Coda\Data\Simple\Transaction
account
Account of the other party of the transaction. An object implementingCodelicious\Coda\Data\Simple\Account
transaction_date
Date on which the transaction was requestedvaluta_date
Date on which the transaction was executed by the bankamount
Amount of the transaction. Up to 3 decimals. A negative number for credit transactions.message
Message of the transactionstructured_message
Structured messages of the transaction (if available)