Package Data | |
---|---|
Maintainer Username: | Mihkullorg |
Maintainer Contact: | mihkel.allorg@gmail.com (Mihkel Allorg) |
Package Create Date: | 2016-05-16 |
Package Last Update: | 2023-04-19 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 15:04:01 |
Package Statistics | |
---|---|
Total Downloads: | 5,469 |
Monthly Downloads: | 3 |
Daily Downloads: | 0 |
Total Stars: | 10 |
Total Watchers: | 2 |
Total Forks: | 8 |
Total Open Issues: | 7 |
$ composer require mihkelallorg/lhv-connect
Then register the ServiceProvider in config/app.php
Mihkullorg\LhvConnect\LaravelLhvConnectServiceProvider::class
In terminal run
$ php artisan vendor:publish
Open file config/lhv-connect.php and fill out the config. You can fill in info about several bank accounts and certifications.
Now you can create new LhvConnect object. The Config::get parameter lhv-connect.test means that the file lhv-connect.php and the array with the key 'test' is passed on.
$lhv = new LhvConnect(Config::get('lhv-connect.test'));
Test the connection. If there's no connection, Exception with 503 should be thrown.
$lhv->makeHeartheatGetRequest();
Retrieve a message from LHV inbox
$message = $lhv->makeRetrieveMessageFromInboxRequest();
Delete the message from LHV inbox
$lhv->makeDeleteMessageInInboxRequest($message);
Retrieve all messages. This gets you all the messages but it also deletes all the messages from the inbox.
$messages = $lhv->getAllMessages();