定制 jwadin/php-coda-parser 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

jwadin/php-coda-parser

最新稳定版本:v1.0.1

Composer 安装命令:

composer require jwadin/php-coda-parser

包简介

PHP parser for Belgian CODA banking files

README 文档

README

PHP parser for Belgian CODA banking files

Build Status

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.

    {
        "require": {
            "codelicious/php-coda-parser": "^2.0"
        }
    }

Or you can execute the following command in your project root to install this library:

composer require codelicious/php-coda-parser:^2.0

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

<?php

use Codelicious\Coda\Parser;

$parser = new Parser();
$statements = $parser->parseFile('coda-file.cod');

foreach ($statements as $statement) {
    echo $statement->getDate()->format('Y-m-d') . "\n";

    foreach ($statement->getTransactions() as $transaction) {
        echo $transaction->getAccount()->getName() . ": " . $transaction->getAmount() . "\n";
    }

    echo $statement->getNewBalance() . "\n";
}

Ports

You can find a port of the library to C# at https://github.com/supervos/coda-parser

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 27
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2024-03-07