2017 © Pedro Peláez
 

library banktolaravel

Reads booking informations from an bank account and saves it to a local table in the database

image

pkeidel/banktolaravel

Reads booking informations from an bank account and saves it to a local table in the database

  • Sunday, February 25, 2018
  • by PKeidel
  • Repository
  • 1 Watchers
  • 1 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

README

Build Status, (*1)

What it is

This package create a database table to store all bank bookings/statements. Also a artisan command for importing them directly from your bank is created with php artisan bank:import. New Entries are published as an event you can easily listen to, see Usage for more. This package supports HBCI/FinTS, a german standard for communicating with bank institutes., (*2)

Thank you

A ton of thanks to nemiah/fints-hbci-php for providing and maintaining such a nice library where I could easily put my work on top of it!, (*3)

Install

First add the composer dependency:, (*4)

composer require pkeidel/banktolaravel

Then publish and run the migration to create the 'bookings' table:, (*5)

php artisan vendor:publish --provider="PKeidel\BankToLaravel\Providers\BankToLaravelServiceProvider" --tag=migrations
php artisan migrate

Now add this to a good protected route group:, (*6)

Route::resource('bookings', '\PKeidel\BankToLaravel\Controllers\BookingsController');

Finally create a task scheduler as described HERE:, (*7)

$schedule->command('bank:import')->hourly();

Usage

Append these values to your .env file:, (*8)

# https://github.com/willuhn/hbci4java/blob/master/src/blz.properties
FHP_BANK_URL=
FHP_BANK_CODE=
FHP_ONLINE_REGISTRATIONNO=
FHP_ONLINE_BANKING_USERNAME=
FHP_ONLINE_BANKING_PIN_CMD="keyring get mybank.com myusername"
# OR use decrypted PIN
#FHP_ONLINE_BANKING_PIN=""
FHP_BANK_START="14 days ago"
FHP_BANK_ACCOUNT=

Every time a new Entry is added to the database, an PKeidel\BankToLaravel\Events\NewEntry Event is fired., (*9)

In some ServiceProvides boot() function you could simply listen to the events and add some own logic like sending an E-Mail or notify you via some other way., (*10)

Event::listen(\PKeidel\BankToLaravel\Events\Error::class, function (Error $error) {
    Log::error("BankToLaravel error: $error->exception");
});

Event::listen(\PKeidel\BankToLaravel\Events\NewEntry::class, function (NewEntry $entry) {
    optional(Users::where('iban', $entry->data['ref_iban'])->first())->notify(new NewBankaccountBooking($entry));
});

The Versions

25/02 2018

dev-master

9999999-dev

Reads booking informations from an bank account and saves it to a local table in the database

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar PKeidel

laravel5 banktolaravel bank2laravel

25/02 2018

v0.0.7

0.0.7.0

Reads booking informations from an bank account and saves it to a local table in the database

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar PKeidel

laravel5 banktolaravel bank2laravel

25/02 2018

v0.0.6

0.0.6.0

Reads booking informations from an bank account and saves it to a local table in the database

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar PKeidel

laravel5 banktolaravel bank2laravel

14/09 2017

v0.0.4

0.0.4.0

Reads booking informations from an bank account and saves it to a local table in the database

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar PKeidel

laravel5 banktolaravel bank2laravel

14/09 2017

v0.0.5

0.0.5.0

Reads booking informations from an bank account and saves it to a local table in the database

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar PKeidel

laravel5 banktolaravel bank2laravel

14/09 2017

v0.0.3

0.0.3.0

Reads booking informations from an bank account and saves it to a local table in the database

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar PKeidel

laravel5 banktolaravel bank2laravel

14/09 2017

v0.0.2

0.0.2.0

Reads booking informations from an bank account and saves it to a local table in the database

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar PKeidel

laravel5 banktolaravel bank2laravel

14/09 2017

v0.0.1

0.0.1.0

Reads booking informations from an bank account and saves it to a local table in the database

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar PKeidel

laravel5 banktolaravel bank2laravel