stancl/gpc-parser 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

stancl/gpc-parser

Composer 安装命令:

composer require stancl/gpc-parser

包简介

README 文档

README

Simple GPC parser and generator, specifically designed around Fio bank's format https://www.fio.cz/docs/cz/struktura-gpc.pdf

For usage, see example.php.

Executable

Also see bin/gpc-parser. Can be nice to add to PATH. It just converts file_get_contents($argv[1]) into JSON, making it universally machine readable. Pairs very nicely with nushell. It can be annoying to work with gpc files otherwise when you cannot quickly view their contents.

$ bin/gpc-parser tests/etc/sample.gpc
[{"localAccount":"123456789","foreignAccount":"987654321","transactionId":"12345678","amount":"12300","type":"1","variableSymbol":"1234","foreignBankCode":"0000","constantSymbol":"","specificSymbol":"","valuta":"200723","message":"Objedn\u00e1vka \u010d. 1234","currencyCode":"0203","date":"200723"},{"localAccount":"123456789","foreignAccount":"987654321","transactionId":"18345678","amount":"12300","type":"1","variableSymbol":"1235","foreignBankCode":"0000","constantSymbol":"","specificSymbol":"","valuta":"200723","message":"Objedn\u00e1vka 1235","currencyCode":"0203","date":"200723"},{"localAccount":"123456789","foreignAccount":"987654321","transactionId":"","amount":"12300","type":"1","variableSymbol":"12","foreignBankCode":"0000","constantSymbol":"","specificSymbol":"","valuta":"200723","message":"Platba kartou","currencyCode":"0203","date":"200723"},{"localAccount":"123456789","foreignAccount":"987654321","transactionId":"24345678","amount":"12300","type":"1","variableSymbol":"1236","foreignBankCode":"0000","constantSymbol":"","specificSymbol":"","valuta":"200723","message":"Objednavka 1236","currencyCode":"0203","date":"200723"},{"localAccount":"123456789","foreignAccount":"987654321","transactionId":"","amount":"12300","type":"1","variableSymbol":"12","foreignBankCode":"0000","constantSymbol":"","specificSymbol":"","valuta":"200723","message":"Platba kartou","currencyCode":"0203","date":"200723"}]
$ bin/gpc-parser tests/etc/sample.gpc | from json
╭────┬───────────────┬─────────────────┬────────────────┬─────────┬───────┬─────────────────┬──────────────────┬─────────────────┬─────────────────┬─────────┬─────────────────────┬───────────────┬────────╮
│  # │ localAccount  │ foreignAccount  │ transactionId  │ amount  │ type  │ variableSymbol  │ foreignBankCode  │ constantSymbol  │ specificSymbol  │ valuta  │       message       │ currencyCode  │  date  │
├────┼───────────────┼─────────────────┼────────────────┼─────────┼───────┼─────────────────┼──────────────────┼─────────────────┼─────────────────┼─────────┼─────────────────────┼───────────────┼────────┤
│  0 │ 123456789     │ 987654321       │ 12345678       │ 12300   │ 1     │ 1234            │ 0000             │                 │                 │ 200723  │ Objednávka č. 1234  │ 0203          │ 200723 │
│  1 │ 123456789     │ 987654321       │ 18345678       │ 12300   │ 1     │ 1235            │ 0000             │                 │                 │ 200723  │ Objednávka 1235     │ 0203          │ 200723 │
│  2 │ 123456789     │ 987654321       │                │ 12300   │ 1     │ 12              │ 0000             │                 │                 │ 200723  │ Platba kartou       │ 0203          │ 200723 │
│  3 │ 123456789     │ 987654321       │ 24345678       │ 12300   │ 1     │ 1236            │ 0000             │                 │                 │ 200723  │ Objednavka 1236     │ 0203          │ 200723 │
│  4 │ 123456789     │ 987654321       │                │ 12300   │ 1     │ 12              │ 0000             │                 │                 │ 200723  │ Platba kartou       │ 0203          │ 200723 │
╰────┴───────────────┴─────────────────┴────────────────┴─────────┴───────┴─────────────────┴──────────────────┴─────────────────┴─────────────────┴─────────┴─────────────────────┴───────────────┴────────╯

stancl/gpc-parser 适用场景与选型建议

stancl/gpc-parser 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 22 次下载、GitHub Stars 达 1, 最近一次更新时间为 2023 年 07 月 20 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 stancl/gpc-parser 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 stancl/gpc-parser 我们能提供哪些服务?
定制开发 / 二次开发

基于 stancl/gpc-parser 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 22
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 23
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-20