PHPackages                             brocc/se-bank-account - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. brocc/se-bank-account

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

brocc/se-bank-account
=====================

Swedish bank account details and validation for PHP

v1.1.0(2y ago)364.4k↓14.5%2[1 issues](https://github.com/brocc-ab/se-bank-account-php/issues)MITPHPPHP ^7.1 || ^8

Since Sep 23Pushed 2y ago3 watchersCompare

[ Source](https://github.com/brocc-ab/se-bank-account-php)[ Packagist](https://packagist.org/packages/brocc/se-bank-account)[ RSS](/packages/brocc-se-bank-account/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

Swedish Bank Account for PHP
============================

[](#swedish-bank-account-for-php)

[![Build Status](https://camo.githubusercontent.com/fd5c01a8c5dda5efcb179a49437e68e063b5dfa4ee3201deac48258700fd8d74/68747470733a2f2f7472617669732d63692e6f72672f62726f63632d61622f73652d62616e6b2d6163636f756e742d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/brocc-ab/se-bank-account-php)[![Latest Version](https://camo.githubusercontent.com/d4e4f5aef82cd468a34bcfccc9cc86ec3bd4cd2927c674d5be28cd926e8743e5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f62726f63632d61622f73652d62616e6b2d6163636f756e742d7068702e7376673f7374796c653d666c61742d737175617265)](https://github.com/brocc-ab/se-bank-account-php/releases)[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)

This package easily validates and returns details about Swedish bank account numbers using PHP. The details and validation rules are based on the documentation provided by Bankgirot, which can be found [here](https://www.bankgirot.se/globalassets/dokument/anvandarmanualer/bankernaskontonummeruppbyggnad_anvandarmanual_sv.pdf).

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

[](#installation)

Installing the Swedish Bank Account for PHP can be done using Composer.

```
composer require brocc/se-bank-account
```

Usage
-----

[](#usage)

Usage is very straight forward, just create a new instance of `Brocc\SeBankAccount\Account` which takes a string or an integer as argument and returns the details about the given number such as clearing number, account number and the name of the bank (if valid).

```
