Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jongotlin/bankaccountbundle

Symfony bundle to validate (and format) swedish bank account numbers
https://github.com/jongotlin/bankaccountbundle

Last synced: 15 days ago
JSON representation

Symfony bundle to validate (and format) swedish bank account numbers

Awesome Lists containing this project

README

        

# BankAccountBundle

This Symfony Bundle uses [github.com/byrokrat/banking](https://github.com/byrokrat/banking) to validate swedish bank account numbers.

## Install

Via Composer

```bash
$ composer require jongotlin/bank-account-bundle
```

```php
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new JGI\BankAccountBundle\BankAccountBundle(),
}
}
}
```

## Usage
```php
use JGI\BankAccountBundle\Validator\Constraints as BankAccountAssert;

/**
* @BankAccountAssert\BankAccount
*/
private $bankAccount;
```