Skip to content

kduma-OSS/LV-emSzmal-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

emSzmal Banking API Wrapper

Latest Stable Version Total Downloads License

PHP wrapper for the emSzmal banking API — enables fetching account data and transaction history from Polish banks.

Full documentation: opensource.duma.sh/libraries/php/emszmal

Requirements

  • PHP ^8.3
  • Laravel ^12.0 || ^13.0 (optional — also works as plain PHP)

Installation

composer require kduma/emszmal-api

Usage

$api = new \KDuma\emSzmalAPI\emSzmalAPI(
    api_id: $api_id,
    api_key: $api_key,
    cache_provider: new \KDuma\emSzmalAPI\CacheProviders\NoCacheProvider(),
);

$session = $api->SayHello();

$accounts = $api->GetAccountsList(
    session: $session,
    credentials: new \KDuma\emSzmalAPI\DTO\BankCredentials(
        provider: \KDuma\emSzmalAPI\Enums\Bank::PKOiPKO,
        login: 'login',
        password: 'password',
        user_context: '',
        token_value: '',
    ),
);

$api->SayBye(session: $session);

In Laravel, you can resolve the client from the container after adding credentials to .env:

$api = app(\KDuma\emSzmalAPI\emSzmalAPI::class);

About

emSzmal Banking API wrapper in PHP

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages