2017 © Pedro Peláez
 

library knab-to-xero

A PHP script to convert Knab CSV files to Xero files

image

picqer/knab-to-xero

A PHP script to convert Knab CSV files to Xero files

  • Thursday, January 28, 2016
  • by cbakker
  • Repository
  • 2 Watchers
  • 2 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Knab to Xero CSV file converter

Knab is a Dutch bank where you can export your transactions to a CSV file. This script can convert this Knab CSV file to a file that is the right format for Xero to import as a bank transactions file., (*1)

Usage

You can use the provided index.php to convert files in your webbrowser, or use the classes to create your own converter., (*2)

Example

$knabExtractor = new \Picqer\KnabToXero\KnabExtractor();
$knabRecords = $knabExtractor->extractCSV(file_get_contents('example.csv'));

$converter = new \Picqer\KnabToXero\KnabToXeroConverter();
$xeroRecordCollection = $converter->convertArray($knabRecords);

$csvCreator = new \Picqer\KnabToXero\XeroCsvCreator();

header('Content-type: text/csv');
header('Content-Disposition: attachment; filename=XeroBankImport' . date('YmdHi') . '.csv');
header('Pragma: no-cache');
header('Expires: 0');
echo $csvCreator->createCsv($xeroRecordCollection);

The Versions

28/01 2016

dev-master

9999999-dev http://github.com/picqer/knab-to-xero

A PHP script to convert Knab CSV files to Xero files

  Sources   Download

MIT

by Casper Bakker

csv converter xero knab

24/02 2015

v1.0.0

1.0.0.0 http://github.com/picqer/knab-to-xero

A PHP script to convert Knab CSV files to Xero files

  Sources   Download

MIT

by Casper Bakker

csv converter xero knab