abinash/ifsc-validator

v1.1.1 2025-03-27 05:03 UTC

This package is auto-updated.

Last update: 2025-05-27 05:24:32 UTC


README

Latest Version License

📌 Introduction

Laravel IFSC Validator is a simple package that allows you to fetch details of an Indian bank IFSC code using Razorpay's IFSC API.

🚀 Installation

You can install the package via Composer:

composer require abinash/ifsc-validator

📌 Publish Configuration (Optional)

Edit your app/config/app.php and add the Service Provider

'providers' => [
    // Other service providers...
    Abinash\IFSCValidator\IFSCValidatorServiceProvider::class,
],
 'aliases' => [
    'IFSC' => Abinash\IFSCValidator\Facades\IFSC::class,
]

🔧 Usage

Using the Facade

use IFSC;

$ifscDetails = IFSC::getBankDetails('SBIN0007500');
print_r($ifscDetails);

Using Dependency Injection

use Abinash\IFSCValidator\Services\IFSCService;

class BankController {
    public function getIFSC(IFSCService $ifscService) {
        return $ifscService->getBankDetails('SBIN0007500');
    }
}

🔗 API Source

This package uses the free Razorpay IFSC API to fetch bank details.

🏷 License

This package is open-source software licensed under the MIT license.

👤 Author

Abinash Bhatta
📧 abinash889@gmail.com
🚀 Follow me on GitHub: Abinash

⭐ Contribute & Support

If you find this package helpful, please ⭐ star the repository and contribute via pull requests! 🙌