PHPackages                             razorpay/ifsc - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. razorpay/ifsc

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

razorpay/ifsc
=============

Razorpay IFSC Codes Library

v2.0.57(1mo ago)382201.9k↓12.5%146[34 PRs](https://github.com/razorpay/ifsc/pulls)MITHTMLPHP ^7.1|^8.0CI passing

Since Apr 29Pushed 1mo ago197 watchersCompare

[ Source](https://github.com/razorpay/ifsc)[ Packagist](https://packagist.org/packages/razorpay/ifsc)[ RSS](/packages/razorpay-ifsc/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (18)Versions (245)Used By (0)

ifsc
====

[](#ifsc)

This is part of the IFSC toolset released by Razorpay. You can find more details about the entire release at [ifsc.razorpay.com](https://ifsc.razorpay.com).

[![Docker Image Version (latest semver)](https://camo.githubusercontent.com/b9d528af21309c622b3a74ce7d3d308e391cfb2966a95e4295acc0a1e17cf2f2/68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f762f72617a6f727061792f69667363)](https://camo.githubusercontent.com/b9d528af21309c622b3a74ce7d3d308e391cfb2966a95e4295acc0a1e17cf2f2/68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f762f72617a6f727061792f69667363) [![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](https://opensource.org/licenses/MIT) [![npm version](https://camo.githubusercontent.com/0df3a400a1d2ba73b9b6290804087ca2cf26c1a8e91edeaa997d1831bcb0261f/68747470733a2f2f62616467652e667572792e696f2f6a732f696673632e737667)](https://badge.fury.io/js/ifsc) [![Gem Version](https://camo.githubusercontent.com/9c8bbe429177f54f1f21a4bc7e4d5eab028bb475d839827639fd4b2ce34ba3d9/68747470733a2f2f62616467652e667572792e696f2f72622f696673632e737667)](https://badge.fury.io/rb/ifsc) [![PHP version](https://camo.githubusercontent.com/ea7402658e9a861d68e2226487e85bba66e7914f7c96469085d38a6864d256ec/68747470733a2f2f62616467652e667572792e696f2f70682f72617a6f72706179253246696673632e737667)](https://badge.fury.io/ph/razorpay%2Fifsc)

Dataset
-------

[](#dataset)

If you are just looking for the dataset, go to the [releases](https://github.com/razorpay/ifsc/releases) section and download the latest release.

The latest `scraper` workflow on GitHub should publish a `release-artifact` as well.

### Source

[](#source)

Various official sources are linked below, with the ones currently used marked with a †

- List of NEFT IFSCs from [RBI website](https://rbidocs.rbi.org.in/rdocs/content/docs/68774.xlsx)†
- List of RTGS IFSCs from [RBI website](https://rbidocs.rbi.org.in/rdocs/RTGS/DOCs/RTGEB0815.xlsx)†
- RBI maintains several lists:
- [List of banks in India](https://www.rbi.org.in/commonman/english/scripts/banksinindia.aspx)
- [Websites of banks in India](https://www.rbi.org.in/scripts/banklinks.aspx).
- [Bankwise Volumes in ECS/NEFT/RTGS/Mobile](https://www.rbi.org.in/Scripts/NEFTUserView.aspx?Id=166)
- [List of Banks permitted to provide Mobile Banking](https://www.rbi.org.in/Scripts/bs_viewcontent.aspx?Id=2463)
- NPCI website has several lists:
    - [NACH Live Members](https://www.npci.org.in/what-we-do/nach/live-members/live-banks)†
    - [RuPay Live Members](https://www.npci.org.in/what-we-do/rupay/live-members)
    - [IMPS Live members](https://www.npci.org.in/what-we-do/imps/live-members)
    - [Banks and Apps live on AutoPay](https://www.npci.org.in/what-we-do/autopay/list-of-banks-and-apps-live-on-autopay)
    - [Sub member banks IFSC and MICR Codes](https://www.npci.org.in/PDF/npci/ifsc-and-micr-codes/Submember-banks-IFSC-and-MICR.xlsx)
    - [Merged banks IFSC and MICR Codes](https://www.npci.org.in/PDF/npci/ifsc-and-micr-codes/Merged-banks-IFSC-and-MICR.xlsx)
    - [Routing codes used in API E-Mandates](https://www.npci.org.in/PDF/nach/live-members-e-mandates/Routing%20codes%20to%20be%20used%20in%20API%20E-Mandates_11_7_19.pdf)
    - [Merged Banks on NACH](https://www.npci.org.in/what-we-do/nach/live-members/merged-banks)
    - [Blocked Banks on NACH](https://www.npci.org.in/what-we-do/nach/live-members/blocked-banks)

#### SWIFT

[](#swift)

SWIFT/BIC codes are supported for a few banks.

##### SBI

[](#sbi)

-  †
- [https://sbi.co.in/documents/16012/263663/sbinri\_merged\_bran\_swfcodet.xlsx](https://sbi.co.in/documents/16012/263663/sbinri_merged_bran_swfcodet.xlsx) †
- Branch codes from above are checked against the [SBI Branch Locator](https://www.sbi.co.in/web/home/locator/branch) to get the IFSC.

##### PNB

[](#pnb)

-  †
- [https://www.pnbindia.in/document/PNB-helpdesk/bic\_code.pdf](https://www.pnbindia.in/document/PNB-helpdesk/bic_code.pdf) †

##### HDFC

[](#hdfc)

-  †

Installation
------------

[](#installation)

Ruby
----

[](#ruby)

Add this line to your application's Gemfile:

```
gem "ifsc"
```

And then execute:

```
$ bundle
```

Or install it yourself as:

```
$ gem install ifsc
```

Inside of your Ruby program do:

```
require "ifsc"
```

...to pull it in as a dependency.

PHP
---

[](#php)

`composer require php-http/curl-client razorpay/ifsc`

The PHP package has a dependency on the virtual package `php-http/client-implementation` which requires you to install an adapter, but we do not care which one. That is an implementation detail in your application. You do not have to use the `php-http/curl-client` if you do not want to. You may use the `php-http/guzzle6-adapter`. Read more about the virtual packages, why this is a good idea and about the flexibility it brings at the [HTTPlug docs](http://docs.php-http.org/en/latest/httplug/users.html). You can find a list of suported providers on [packagist](https://packagist.org/providers/php-http/client-implementation).

The minimum [PHP version supported is 7.3](https://endoflife.date/php). The package can be installed on PHP&gt;=7.1 however.

Node.js
-------

[](#nodejs)

`$ npm install ifsc`

Go
--

[](#go)

This package is compatible with modern Go releases in module mode, with Go installed:

`go get github.com/razorpay/ifsc/v2`

will resolve and add the package to the current development module, along with its dependencies.

Alternatively the same can be achieved if you use import in a package:

`import "github.com/razorpay/ifsc/v2/src/go"`

and run go get without parameters.

Finally, to use the top-of-trunk version of this repo, use the following command:

`go get github.com/razorpay/ifsc/v2@master`

Support Matrix
--------------

[](#support-matrix)

Only the latest version of each SDK is considered.

LanguageValidationAPI ClientSublet Support (Custom)Bank ConstantsPHP✅✅✅ (✅)✅Ruby✅✅✅ (✅)✅Node.js✅✅❎ (❎)✅Go✅✅✅ (✅)✅API Documentation
-----------------

[](#api-documentation)

This repository also hosts the source code for 5 modules: PHP/Node.js/Ruby/Go as of now. The API is documented below:

### PHP

[](#php-1)

```
