PHPackages                             todorowww/banking-srb - 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. todorowww/banking-srb

ActiveLibrary

todorowww/banking-srb
=====================

Helper library for use with Serbian financial system. Account number validation, reference number generation, etc.

1.0.0(7y ago)04MITPHPPHP &gt;=5.5.0

Since Sep 11Pushed 7y ago1 watchersCompare

[ Source](https://github.com/todorowww/banking-srb)[ Packagist](https://packagist.org/packages/todorowww/banking-srb)[ Docs](https://github.com/todorowww/banking-srb)[ RSS](/packages/todorowww-banking-srb/feed)WikiDiscussions master Synced 2mo ago

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

Banking SRB [![TravisCI build](https://camo.githubusercontent.com/960fd98a310cd4537eb577b08a95c066e27b8ea12283b9f4bc023e89d639af73/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f746f646f726f7777772f62616e6b696e672d7372622f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/960fd98a310cd4537eb577b08a95c066e27b8ea12283b9f4bc023e89d639af73/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f746f646f726f7777772f62616e6b696e672d7372622f6d61737465722e7376673f7374796c653d666c61742d737175617265)[![License](https://camo.githubusercontent.com/fd63b34e8fc8e7a8c843daedd38dc1a9ae6bd2437b6415b96f012227ef22a548/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f746f646f726f7777772f62616e6b696e672d7372622e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/fd63b34e8fc8e7a8c843daedd38dc1a9ae6bd2437b6415b96f012227ef22a548/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f746f646f726f7777772f62616e6b696e672d7372622e7376673f7374796c653d666c61742d737175617265)[![PHP](https://camo.githubusercontent.com/ed8de6b9cab495cfcc2ce6b7ca613fbfb374563fd0f4c03976be8b8384d77908/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7068702d762f746f646f726f7777772f62616e6b696e672d7372622e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/ed8de6b9cab495cfcc2ce6b7ca613fbfb374563fd0f4c03976be8b8384d77908/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7068702d762f746f646f726f7777772f62616e6b696e672d7372622e7376673f7374796c653d666c61742d737175617265)[![Packagist Version](https://camo.githubusercontent.com/62e55d3215a764ec517cc1dca2666b87c7e08f51d4f9a6e046cae24be1e25779/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f646f726f7777772f62616e6b696e672d7372622e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/62e55d3215a764ec517cc1dca2666b87c7e08f51d4f9a6e046cae24be1e25779/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f646f726f7777772f62616e6b696e672d7372622e7376673f7374796c653d666c61742d737175617265)[![GitHub release](https://camo.githubusercontent.com/6727a486c514bd54debf35ef726dba33ab1e237bafd76d24c4a0eaeeaaa70756/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f746f646f726f7777772f62616e6b696e672d7372622e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/6727a486c514bd54debf35ef726dba33ab1e237bafd76d24c4a0eaeeaaa70756/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f746f646f726f7777772f62616e6b696e672d7372622e7376673f7374796c653d666c61742d737175617265)
====================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#banking-srb)

This library contains useful banking functions in use by banks in Serbia. By the order of the Governor of National Bank of Serbia, account numbers are structured in the following manner:

- 3 digits represent bank ID Fixed value, assigned by the NBS. List, as of 16 April 2018 [PDF](https://www.nbs.rs/internet/latinica/20/plp/pu_jedinstveni_id_brojevi.pdf)
- 13 digits represent account number, bank manages this number
- 2 digits represent checksum number, calculated using ISO 7064 MOD 97-10

When payment reference numbers are generated, checksum goes to the front of the number, It is calculated using the same ISO 7064 MOD 97-10 algorithm as bank account number checksum. Reference number must consist only of digits, and if it should include a letter, that letter is transformed into a number, to generate checksum. Conversion follows this pattern: A=10, B=11, C=12, ..., Y = 34, Z = 35.

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

[](#installation)

Using Composer, install the latest version of this library by issuing this command

```
composer require todorowww/banking-srb

```

If you wish to use clean install, without Composer, you can clone this repo:

```
git clone https://github.com/todorowww/banking-srb.git

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2797d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9db1eff7b129b7defaf250c3c23a19a2e39bb6b4ca704d26a911d83335142e36?d=identicon)[todorowww](/maintainers/todorowww)

---

Top Contributors

[![todorowww](https://avatars.githubusercontent.com/u/4169512?v=4)](https://github.com/todorowww "todorowww (15 commits)")

---

Tags

ReferenceBankingaccountnbsserbiapoziv na broj

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/todorowww-banking-srb/health.svg)

```
[![Health](https://phpackages.com/badges/todorowww-banking-srb/health.svg)](https://phpackages.com/packages/todorowww-banking-srb)
```

###  Alternatives

[digitick/sepa-xml

Creates Single Euro Payments Area (SEPA) XML files for the Direct Debit and Credit Transfer operations.

2836.0M12](/packages/digitick-sepa-xml)[abcaeffchen/sephpa

Generates SEPA files for credit transfers (pain.001.001.03, pain.001.002.03, pain.001.003.03, pain.001.001.09) and direct debit (pain.008.001.02, pain.008.002.02, pain.008.003.02, pain.008.001.08)

711.7M](/packages/abcaeffchen-sephpa)[cs278/bank-modulus

UK Bank Modulus Check Library

32572.8k](/packages/cs278-bank-modulus)[kmukku/php-iso11649

ISO 11649 creditor reference library for php

122.0M1](/packages/kmukku-php-iso11649)[mhujer/fio-api-php

Fio API PHP implemention

37199.1k1](/packages/mhujer-fio-api-php)[dmitrirussu/php-sepa-xml-generator

Creates an XML file for a Single Euro Payments Area (SEPA) Direct Debit Payment.

5644.0k](/packages/dmitrirussu-php-sepa-xml-generator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
