Download the PHP package fractorysolutions/lhv-connect without Composer
On this page you can find all versions of the php package fractorysolutions/lhv-connect. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fractorysolutions/lhv-connect
More information about fractorysolutions/lhv-connect
Files in fractorysolutions/lhv-connect
Package lhv-connect
Short Description LHV bank's CONNECT service for Laravel 6+, fork of mihkullorg/lhv-connect
License MIT
Homepage https://github.com/fractorysolutions/lhv-connect
Informations about the package lhv-connect
LHV CONNECT API package for Laravel 6+
A fork of mihkelallorg/lhv-connect.
Quickstart
$ composer require fractorysolutions/lhv-connect
NB! Service provider Mihkullorg\LhvConnect\LaravelLhvConnectServiceProvider::class is automatically registered.
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->makeHeartbeatGetRequest();
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();
All versions of lhv-connect with dependencies
illuminate/config Version ^6.0 || ^7.0 || ^8.0
illuminate/support Version ^6.0 || ^7.0 || ^8.0
guzzlehttp/guzzle Version ^6.5 || ^7.0
ext-simplexml Version *