Skip to content

Latest commit

 

History

History
66 lines (42 loc) · 2.12 KB

README.md

File metadata and controls

66 lines (42 loc) · 2.12 KB

Bankly Laravel API Wrapper

Latest Version on Packagist Build Status Quality Score Total Downloads

This package is an UNOFFICIAL API Wrapper for Bankly/Acesso API.

Requirements

PHP >= 7.2 Laravel >= 7.x

Installation

You can install the package via composer:

composer require wedevbr/bankly-laravel

After install, just publish your config files:

php artisan vendor:publish --provider="WeDevBr\Bankly\BanklyServiceProvider"

Usage

First you need to set up your credentials. Define yours BANKLY_CLIENT_SECRET and BANKLY_CLIENT_ID at .env file.

You can also define scopes for your credentials, just define BANKLY_TOKEN_SCOPE or enter them in config/bankly.php. See more: Bankly Scopes

Tip: If you are running on Staging, you can set up Bankly endpoints also. Just define BANKLY_LOGIN_URL and BANKLY_API_URL variables.

Then, finally use:

//This is your statement
$statement = \Bankly::getStatement('0001', '123456');

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.