jorijn / ynab-bunq-connector-bundle
A Symfony 3.4 LTS compatible Bundle for uploading payments from the bunq Bundle to YNAB
Requires
- php: ^7.1
- guzzlehttp/guzzle: ~6
- jorijn/symfony-bunq-bundle: 1.0.x
- jorijn/ynab-sdk-php: >=1.0 <2.0.0
- symfony/framework-bundle: 3.4.*
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.11
- phpunit/phpunit: >=7.1 <8.0.0
This package is auto-updated.
Last update: 2024-02-26 04:40:25 UTC
README
A Symfony 3.4 LTS compatible Bundle for uploading payments from the bunq Bundle to YNAB
Realtime connection between bunq and YNAB
Uses symfony-bunq-bundle to subscribe to bank account mutation events and creates transactions in YNAB.
More documentation coming soon, work in progress
Instructions
Environment
I used to make this instructions an ubuntu machine from Amazon EC2.
Maybe you you need to change something to get it working.
Make sure you have SSH access to the machine you are trying to access. It will need a HTTPS web server with PHP installed (PHP-cli also). And you will need a DNS to allow Bunq to send you the notifications.
Steps
-
Install apache + php;
You can follow the instructions from: https://www.vultr.com/docs/how-to-install-apache-mysql-and-php-on-ubuntu-16-04
-
Enable HTTPS support:
Create a new certificate and follow the instructions from: https://www.sslforfree.com/
-
Create the symfony project that will hold the bundle:
$ composer create-project symfony/framework-standard-edition bunq-ynab
-
Require the bundle:
$composer require jorijn/ynab-bunq-connector-bundle
Maybe you will need to use --ignore-platform-reqs
-
Configure the symfony installation
Take care, maybe you will need to override some configuration and choose the best place to put it. Below the list of files that need to be updated and the key=>values.
-
/app/config/services.yml
parameters: router.request_context.host: 'www.your-url-here.com' router.request_context.scheme: 'https'
-
/app/config/routing.yml
symfony_bunq.callback_url: path: /bunq/callback defaults: { _controller: JorijnSymfonyBunqBundle:Bunq:callback }
-
/app/config/config.yml
jorijn_ynab_bunq_connector: connections: - bunq_account_id: **change_me** ynab_budget_id: **change_me** ynab_account_id: **change_me** api_key: **change_me**
-
-
Enable the symfony bundles:
/app/AppKernel.php :
<?php //Inside the method registerBundles() of the class AppKernel: $bundles[] = new \Jorijn\SymfonyBunqBundle\JorijnSymfonyBunqBundle; $bundles[] = new \Jorijn\YNAB\BunqConnectorBundle\JorijnYNABBunqConnectorBundle;
-
Run the bin/console commands to configure the bunq connector:
This first command you will have to inform the API key (get it into the Bunq app);
<project>$ php bin/console bunq:initialize
Set the callback url for bunq
<project>$ php bin/console bunq:callback-url
You can see other availables commands by running:
<project>$ php bin/console list
-
Done!