brocorp / qonto
Sync easily your Qonto bank account and transactions into your database
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.2
- guzzlehttp/guzzle: ^6.5
- illuminate/support: ^7.0
This package is auto-updated.
Last update: 2025-03-20 00:01:16 UTC
README
This package provide you a simple way to sync your Qonto bank account(s) and transaction(s) into your database, throught Qonto API and an artisan command.
Wait, Qonto?
Yep, Qonto is a neobank, the ideal business account for freelancers, startups and SMEs, in replacement or in addition to your business banking account.
Requirements
This package requires PHP 7.2, Laravel 7.0 or higher and a database already set up in your Laravel project.
Installation
Install this package via Composer:
$ composer require brocorp/qonto
Edit your .ENV file and add theses lines:
QONTO_LOGIN=your_qonto_login
QONTO_SECRET=your_qonto_secret_key
Obviously, we know you're a smart dev, but don't forget to replace your_qonto_login
and your_qonto_login
with your own Qonto credentials!
Wait! Where to find/generate them? Simply check the "Getting Started" page on Qonto API documentation website and follow instructions.
You're now ready to install the package with this magical command which run migration and init a first full sync:
$ php artisan qonto:install
That's all!
Usage and scheduling
Well, you can issue this artisan command to sync your latest 100 transactions for each bank accounts
$ php artisan qonto:sync
but in most cases you’ll probably want to schedule these commands because it's typicaly boring to type daily this command and it's totally normal, you're not weirdo. This command can be scheduled in app/Console/Kernel.php
:
protected function schedule(Schedule $schedule) { $schedule->command('qonto:sync')->daily()->at('12:00'); }
Of course, feel free to consult official Laravel documentation about scheduling to adjust it for your own need.
What's next?
As you can see, this package only fills your database and does not yet provide a blade directive. We are working on it.
However, you can use theses Eloquent models to deal with your freshly synchronized Qonto datas:
Brocorp/Qonto/Models/QontoAccount
Brocorp/Qonto/Models/QontoTransaction
Changelog
Please see the changelog for more information on what has changed recently.
Testing
Tests aren't writted yet, and we apologize.
Contributing
Please see contributing.md for details.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
License
Under MIT licence. Please see the license file for more information.