idez / laravel-bankly-sdk
This is my package laravel-bankly-sdk
dev-main
2023-07-03 20:22 UTC
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.4
- illuminate/console: ^8.73|^9.0
- illuminate/contracts: ^8.73|^9.0
- illuminate/http: ^8.73|^9.0
- illuminate/support: ^8.73|^9.0
- psr/http-message: ^1.0
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- nunomaduro/collision: ^5.0|^6.0
- nunomaduro/larastan: ^1.0|^2.0
- orchestra/testbench: ^6.23|^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-faker: ^1.0
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
- symfony/http-foundation: ^5.3|^6.0
- symfony/process: ^5.3|^6.0
- symfony/psr-http-message-bridge: ^2.1
This package is not auto-updated.
Last update: 2024-04-26 11:51:24 UTC
README
Unnofficial PHP class to access Bankly (by Acesso) API.
Installation
You can install the package via composer:
composer require idez/laravel-bankly-sdk
You can publish and run the migrations with:
php artisan vendor:publish --tag="laravel-bankly-sdk-migrations"
You can publish the config file with:
php artisan vendor:publish --tag="laravel-bankly-sdk-config"
This is the contents of the published config file:
return [ 'client' => env('BANKLY_CLIENT'), /* @deprecated */ 'secret' => env('BANKLY_SECRET'), /* @deprecated */ 'env' => env('APP_ENV', 'staging'), 'webhooks' => [ 'public_key' => env('BANKLY_WEBHOOK_PUBLIC_KEY'), 'hmac_salt' => env('BANKLY_WEBHOOK_HMAC_SALT'), ], 'branch' => env('BANKLY_BRANCH', '0001'), 'default_scopes' => env('BANKLY_SCOPES', []), 'company_key' => env('BANKLY_COMPANY_KEY'), 'mTls' => [ 'certificate_path' => env('BANKLY_MTLS_CERT_PATH'), 'private_key_path' => env('BANKLY_MTLS_PRIVATE_KEY_PATH'), 'passphrase' => env('BANKLY_MTLS_PASSPHRASE'), ], 'oauth2' => [ 'client_id' => env('BANKLY_OAUTH2_CLIENT_ID'), ] ];
Usage
$bankly = new Idez\Bankly(); $qrCodeObject = $bankly->pix()->createStaticQrCode( keyType: 'evp', keyValue: 'd8b3c33f-9bc9-4444-8716-d7a6d243e55e', amount: 100.00, conciliationId: 'kE7nFQCy5YCFRuQ4', recipientName: 'Idez', locationCity: 'Porto Alegre', locationZip: '57499335', singlePayment: false );
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.