PHPackages                             pkeidel/banktolaravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. pkeidel/banktolaravel

ActiveLibrary[Database &amp; ORM](/categories/database)

pkeidel/banktolaravel
=====================

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

v1.5.0(2y ago)3451[2 PRs](https://github.com/PKeidel/banktolaravel/pulls)MITPHPPHP ^8.1

Since Sep 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/PKeidel/banktolaravel)[ Packagist](https://packagist.org/packages/pkeidel/banktolaravel)[ RSS](/packages/pkeidel-banktolaravel/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (22)Used By (0)

README
======

[](#readme)

[![Build Status](https://camo.githubusercontent.com/d30e340492594bdbdf0846cbb85018e005d1a58b8c5248ac96c58a04219b9553/68747470733a2f2f7472617669732d63692e6f72672f504b656964656c2f62616e6b746f6c61726176656c2e737667)](https://travis-ci.org/PKeidel/banktolaravel)

What it is
----------

[](#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](#Usage) for more. This package supports HBCI/FinTS, a german standard for communicating with bank institutes.

Thank you
---------

[](#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!

Install
-------

[](#install)

First add the composer dependency:

```
composer require pkeidel/banktolaravel
```

Then publish and run the migration to create the 'bookings' table:

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

Now add this to a good protected route group:

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

Finally create a task scheduler as described [HERE](https://laravel.com/docs/5.5/scheduling#defining-schedules):

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

Usage
-----

[](#usage)

Append these values to your .env file:

```
# 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.

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.

```
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));
});
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 91.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~121 days

Recently: every ~91 days

Total

19

Last Release

983d ago

Major Versions

v0.1.2 → v1.0.02022-05-26

PHP version history (4 changes)v0.0.1PHP &gt;=7.1.0

v0.1.0PHP ^7.1.0

v0.1.1PHP ^7.2.0

v1.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/748433d40403823c295ae1e046e5b5f87f1557f49619acbeffc7260a0db62cd7?d=identicon)[PKeidel](/maintainers/PKeidel)

---

Top Contributors

[![PKeidel](https://avatars.githubusercontent.com/u/6698883?v=4)](https://github.com/PKeidel "PKeidel (33 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

---

Tags

fintshacktoberfesthbcilaravelphplaravelbanktolaravelbank2laravel

### Embed Badge

![Health badge](/badges/pkeidel-banktolaravel/health.svg)

```
[![Health](https://phpackages.com/badges/pkeidel-banktolaravel/health.svg)](https://phpackages.com/packages/pkeidel-banktolaravel)
```

###  Alternatives

[owen-it/laravel-auditing

Audit changes of your Eloquent models in Laravel

3.4k33.0M95](/packages/owen-it-laravel-auditing)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[cybercog/laravel-clickhouse

ClickHouse migrations for Laravel

163166.8k](/packages/cybercog-laravel-clickhouse)[yii2tech/illuminate

Yii2 to Laravel Migration Package

11315.1k](/packages/yii2tech-illuminate)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
