payourself2 / monobank-bundle
Gives opportunity work with mono bank symfony api
Package info
github.com/payourself2/monobank-bundle
Type:symfony-bundle
pkg:composer/payourself2/monobank-bundle
Requires
- php: >=7.2.5
- ext-ctype: *
- ext-iconv: *
- ext-json: *
- ext-openssl: *
- jms/serializer: ^3.11
- nyholm/psr7: ^1.3
- psr/http-message: ^1.0
- symfony/config: ^5.2
- symfony/dependency-injection: ^5.2
- symfony/http-kernel: >5.1.5
Requires (Dev)
- phpstan/phpstan: ^0.12.68
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-master
- vimeo/psalm: ^4.4
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
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
sign
https://gist.github.com/Sominemo/64845669d6326f2f73d356f025656bdb#file-mono-corp-api-signing-ru-md