Implement KUDA bank Open API in Laravel
Install kudaping with composer
composer require emiracle/kudaping
Publish the configuration file using this command:
php artisan vendor:publish --provider="eMiracle\Kudaping\KudapingServiceProvider"
To run this project, you will need to add the following environment variables to your .env file
KUDA_API_KEY
KUDA_EMAIL_ADDRESS
KUDA_ENVIRONMENT
Contributions are always welcome!
See contributing.md
for ways to get started.
Please adhere to this project's code of conduct
.
<?php
namespace App\Http\Controllers;
use eMiracle\Kudaping\Kudaping;
class KudaController extends Controller
{
private Kudaping $kuda;
public function __construct()
{
$this->kuda = new Kudaping();
}
public function getBankList(): array
{
return $this->kuda->getBankList();
}
}