Download the PHP package razorpay/ifsc without Composer

On this page you can find all versions of the php package razorpay/ifsc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package 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.

Docker Image Version (latest semver) License: MIT npm version Gem Version PHP version

Dataset

If you are just looking for the dataset, go to the releases section and download the latest release.

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

Source

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

SWIFT

SWIFT/BIC codes are supported for a few banks.

SBI
PNB
HDFC

Installation

Ruby

Add this line to your application's Gemfile:

And then execute:

Or install it yourself as:

Inside of your Ruby program do:

...to pull it in as a dependency.

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. You can find a list of suported providers on packagist.

The minimum PHP version supported is 7.3. The package can be installed on PHP>=7.1 however.

Node.js

$ npm install ifsc

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

Only the latest version of each SDK is considered.

Language Validation API Client Sublet Support (Custom) Bank Constants
PHP ✅ (✅)
Ruby ✅ (✅)
Node.js ❎ (❎)
Go ✅ (✅)

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

Node.js

Ruby

Make sure you have require 'ifsc' in your code. Validating a code offline. (Remember to keep the gem up to date!)

Validate online and retrieve details from the server

If you call code.valid? before calling code.get, the validation will be performed offline.

Sublet Branches

You can use the code.bank_name method to get the bank name considering sublet branches.

This works offline, and doesn't need a network call. This information is stored across 2 files:

  1. src/sublet.json - Autogenerated from the NPCI website
  2. src/custom-sublets.json - Maintained manually. Coverage is not 100%. PRs are welcome.

Sublet (or Sub-Member) branches are IFSC codes belonging to a large bank, but leased out to smaller banks. In some cases, entire ranges are given to a specific bank. For eg, all IFSCs starting with YESB0TSS belong to Satara Shakari Bank. These are maintained manually in custom-sublets.json.

Error handling

Go

Code Notes

Both the packages ship with a 300kb JSON file, that includes the entire list of IFSC codes, in a compressed, but human-readable format.

The Bank Code and Names list is maintained manually, but verified with tests to be accurate as per the latest RBI publications. This lets us add older Bank codes to the name list, without worrying about them getting deleted in newer builds.

API Development

The IFSC API is maintained in a separate repository at https://github.com/razorpay/ifsc-api.

License

The code in this repository is licensed under the MIT License. License text is available in the LICENSE file. The dataset itself is under public domain.


All versions of ifsc with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1|^8.0
php-http/client-implementation Version ^1.0
php-http/discovery Version ^1.14
php-http/message-factory Version ^1.0
psr/http-message Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package razorpay/ifsc contains the following files

Loading the files please wait ....