承接 diegoricardo/ofxparser 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

diegoricardo/ofxparser

最新稳定版本:1.0.4

Composer 安装命令:

composer require diegoricardo/ofxparser

包简介

Simple OFX file parser

README 文档

README

OFX Parser is a PHP library designed to parse an OFX file downloaded from a financial institution into simple PHP objects.

It supports multiple Bank Accounts, the required "Sign On" response, and recognises OFX timestamps.

##Installation

Simply require this package in your composer.json:

{
    "require": {
        "asgrim/ofxparser": "dev-master"
    }
}

Then update composer:

$ php composer.phar update asgrim/ofxparser

Usage

You can access the nodes in your OFX file as follows:

$OfxParser = new \OfxParser\Parser;
$Ofx = $OfxParser->loadFromFile('/path/to/your/bankstatement.ofx');

// Get the statement start and end dates
$startDate = $Ofx->BankAccount->Statement->startDate;
$endDate = $Ofx->BankAccount->Statement->endDate;

// Get the statements for the current bank account
$transactions = $Ofx->BankAccount->Statement->transactions;

Most common nodes are support. If you come across an inaccessible node in your OFX file, please submit a pull request!

Fork & Credits

This is a fork of grimfor/ofxparser made to be framework independent. The source repo was designed for Symfony 2 framework, so credit should be given where credit due! Heavily refactored by Oliver Lowe and loosely based on the ruby ofx-parser by Andrew A. Smith.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-20