Download the PHP package cs278/bank-modulus without Composer

On this page you can find all versions of the php package cs278/bank-modulus. 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 bank-modulus

UK Bank Modulus Check Library

Main Build Status Latest Stable Version Total Downloads

This PHP library allows you to check the validity of UK bank account information. To perform this task it uses publicly available information and the specifications published by VocaLink.

You must be aware that this library cannot tell you that the account number and sort code associate to an active account, it only tells you that they could be assigned to an account. Neither does it cover all sort codes, some of which are outside the specification and you should assume those details are valid unless otherwise known.

Usage

Basics

This library provides a simple class to perform bank account validation and normalisation, through the BankModulus class.

By default the BankModulus class will use the current modulus specification issued by VocaLink, the default specification factory will pick the correct specification based on the date.

Result class

The Result class provides detailed information on the validation and normalisation results.

Specification Factory

The default specification factory (Spec\DefaultSpecFactory) picks the most appropriate specification for the current time.

If you need to test the validity of a sort code and account number at a particular point in time, you can use the withDate(\DateTimeInterface|string $date): self method to overload the currently used time reference. If you supply an object to this method it will convert it to the date in Europe/London, string date is used verbatim.

Exceptions

This library will throw exceptions implementing Exception\Exception if something unexpected occurs.

Modulus Algorithms

Currently this library implements 3 similar algorithms to perform modulus calculations, these are defined in the VocaLink specification.


All versions of bank-modulus with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6 || ^7.2 || ^8.0
webmozart/assert Version ^1.2.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 cs278/bank-modulus contains the following files

Loading the files please wait ....