{"id":16673714,"url":"https://github.com/svenbw/bankcsvreader","last_synced_at":"2025-08-25T05:18:00.029Z","repository":{"id":150422564,"uuid":"200272066","full_name":"svenbw/bankcsvreader","owner":"svenbw","description":"Reads CSV files with bank statements from Belgian banks.","archived":false,"fork":false,"pushed_at":"2019-08-02T18:54:18.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-21T17:46:06.612Z","etag":null,"topics":["banking","belgium","csv-import","iban"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/svenbw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-02T17:16:43.000Z","updated_at":"2020-12-09T12:09:50.000Z","dependencies_parsed_at":"2023-05-17T22:30:21.003Z","dependency_job_id":null,"html_url":"https://github.com/svenbw/bankcsvreader","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/svenbw/bankcsvreader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenbw%2Fbankcsvreader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenbw%2Fbankcsvreader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenbw%2Fbankcsvreader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenbw%2Fbankcsvreader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svenbw","download_url":"https://codeload.github.com/svenbw/bankcsvreader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenbw%2Fbankcsvreader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272008783,"owners_count":24857658,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["banking","belgium","csv-import","iban"],"created_at":"2024-10-12T12:27:52.612Z","updated_at":"2025-08-25T05:17:59.981Z","avatar_url":"https://github.com/svenbw.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bankcsvreader\r\nReads CSV files with bank statements from Belgian banks.\r\nSupports (BNP Paribas / KBC / Rabobank)\r\n\r\n## Installation\r\n\r\nFor now this is only a github repository.\r\nOne should import the repository code using composer.\r\n\r\n```terminal\r\ncomposer install\r\n```\r\n\r\n## Usage\r\n\r\nUse Composer's autoloader in the application to automatically load the dependencies.\r\nTo use the package in the application one should use the following code:\r\n\r\n```php\r\nrequire 'vendor/autoload.php';\r\nuse Byteworks\\BankCsvReader\\Reader;\r\nuse Byteworks\\BankCsvReader\\BankCodes;\r\n```\r\n\r\nTo import the bankstatements:\r\n\r\n```php\r\n// Using the autodetect feature\r\n$reader = Reader::createFromFile(__DIR__ . '/bank-statements-as-csv.csv');\r\n$transactions = $reader-\u003egetTransactions();\r\n\r\n// Now, one can loop trough the individual transactions:\r\nforeach ($transactions as $transaction)\r\n{\r\n  echo \"Counterpart: \".$transaction-\u003ecounterpart_account_iban.\" \".$transaction-\u003ecounterpart_name.\"\\n\";\r\n  echo \"Date . . . : \".$transaction-\u003edate.\" Valuta date:\".$transaction-\u003evaluta_date.\"\\n\";\r\n  echo \"Amount . . : \".$transaction-\u003eamount.\"\\n\";\r\n  echo \"Message. . : \".$transaction-\u003emessage.\" / \".$transaction-\u003emessage_ogm.\"\\n\";\r\n};\r\n```\r\n\r\n### Additional Info\r\n\r\nBNP Paribas Fortis puts all data in one field in the CSV, the library tries to parse and split the\r\ninfo in different fields to provide better feedback, filtering.\r\nThe tests contain a wrapper class which exposes the protected functions that parse the description field,\r\nso they can be tested.\r\n\r\n\r\n## Contribute\r\n\r\nFeel free to contribute in any way. As an example you may: \r\n* Trying out the code\r\n* Create a PR\r\n* Create issues if you find problems\r\n* Reply to other people's issues\r\n* Fix issues\r\n\r\n### Running the test code\r\n\r\nTo test the code phpunit is used.\r\n\r\n```terminal\r\ncomposer test\r\n```\r\n\r\nor:\r\n\r\n```terminal\r\n./vendor/bin/phpunit\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvenbw%2Fbankcsvreader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvenbw%2Fbankcsvreader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvenbw%2Fbankcsvreader/lists"}