payourself2/monobank-bundle

Gives opportunity work with mono bank symfony api

Installs: 61

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

v0.1.22 2021-03-30 06:27 UTC

README

Packagist Packagist Code Coverage Psalm coverage

Installation

Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.

Applications that use Symfony Flex

Open a command console, enter your project directory and execute:

 composer require payourself2/monobank-bundle 

Applications that don't use Symfony Flex

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

composer require payourself2/monobank-bundle 

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the config/bundles.php file of your project:

// config/bundles.php

return [
    // ...
    Payourself2\Bundle\MonobankBundle\MonobankBundle::class => ['all' => true],
];

Configuration

Add parameters

If you are going to use personal api:

monobank:
    personal_key: '%env(PAYOURSELF2_MONOBANK_PERSONAL_KEY)%'

If you are going to use corporate api:

monobank:
    pub_key: '%env(PAYOURSELF2_MONOBANK_PUB_KEY)%'
    priv_key: '%env(PAYOURSELF2_MONOBANK_PRIV_KEY)%'

redefine your payourself2_monobank.send_request_adapter

services:
    payourself2_monobank.send_request_adapter:
        class: Payourself2\Bundle\MonobankBundle\Adapter\SymfonyClientAdapter
        autowire: true
        autoconfigure: true

Docs

main

https://api.monobank.ua/docs

sign

https://gist.github.com/Sominemo/64845669d6326f2f73d356f025656bdb#file-mono-corp-api-signing-ru-md