genkgo/camt
Composer 安装命令:
composer require genkgo/camt
包简介
Library to read CAMT files (XML containing bank statements).
README 文档
README
Library to read CAMT files. Currently only CAMT.052, CAMT.053 and CAMT.054 are supported.
Supported Versions
Camt 052
| Version | Supported |
|---|---|
| camt.052.001.01 | ✔️ |
| camt.052.001.02 | ✔️ |
| camt.052.001.03 | |
| camt.052.001.04 | ✔️ |
| camt.052.001.05 | |
| camt.052.001.06 | ✔️ |
| camt.052.001.08 | ✔️ |
| camt.052.001.10 | |
| camt.052.001.11 |
Camt 053
| Version | Supported |
|---|---|
| camt.053.001.01 | |
| camt.053.001.02 | ✔️ |
| camt.053.001.03 | ✔️ |
| camt.053.001.04 | ✔️ |
| camt.053.001.05 | |
| camt.053.001.06 | |
| camt.053.001.08 | ✔️ |
| camt.053.001.10 | |
| camt.053.001.11 |
Camt 054
| Version | Supported |
|---|---|
| camt.054.001.01 | |
| camt.054.001.02 | ✔️ |
| camt.054.001.03 | |
| camt.054.001.04 | ✔️ |
| camt.054.001.05 | |
| camt.054.001.06 | |
| camt.054.001.08 | ✔️ |
| camt.054.001.10 | |
| camt.054.001.11 |
Installation
It is installable and autoloadable via Composer:
composer require genkgo/camt
Getting Started
Read a CAMT file, and loop through its statements and entries.
<?php use Genkgo\Camt\Config; use Genkgo\Camt\Reader; $reader = new Reader(Config::getDefault()); $message = $reader->readFile('test/data/camt053.v2.minimal.xml'); $statements = $message->getRecords(); foreach ($statements as $statement) { $entries = $statement->getEntries(); }
XSD validation
This library provides a XSD validation for each supported CAMT format. The validation is executed by default. But in some cases, you might want to disable it.
<?php use Genkgo\Camt\Config; use Genkgo\Camt\Reader; $config = Config::getDefault(); $config->disableXsdValidation(); $reader = new Reader($config);
Contributing
- Found a bug? Please try to solve it yourself first and issue a pull request. If you are not able to fix it, at least give a clear description what goes wrong. We will have a look when there is time.
- Want to see a feature added, issue a pull request and see what happens. You could also file a bug of the missing feature and we can discuss how to implement it.
Quality
To check that everything is as it should be, run:
composer check
To fix code style, run:
composer check
How to release
- Create an annotated tag
git tag -a 1.2.3- Tag subject must be the version number, eg:
1.2.3 - Tag body must be a copy-paste of the changelog entries
- Push tag with
git push --tags, then GitHub Actions will create a GitHub release automatically
genkgo/camt 适用场景与选型建议
genkgo/camt 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.32M 次下载、GitHub Stars 达 97, 最近一次更新时间为 2015 年 03 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 genkgo/camt 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 genkgo/camt 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.32M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 98
- 点击次数: 22
- 依赖项目数: 5
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-11