PHPackages                             besrourms/tnrib-php - 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. besrourms/tnrib-php

ActiveLibrary

besrourms/tnrib-php
===================

1.0.0(2y ago)24MITPHP

Since Jun 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/BesrourMS/tnrib-php)[ Packagist](https://packagist.org/packages/besrourms/tnrib-php)[ RSS](/packages/besrourms-tnrib-php/feed)WikiDiscussions main Synced 1mo ago

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

TNRIB PHP
=========

[](#tnrib-php)

[![GitHub license](https://camo.githubusercontent.com/2967667a66d1c5956935261f5a985b52ab5f80553815e2a326ffe89d443be442/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f426573726f75724d532f746e7269622d7068703f7374796c653d666c61742d737175617265)](https://github.com/BesrourMS/tnrib-php/blob/main/LICENSE)

BBAN Checker Tunisia, PHP implementation for [TNRIB.js](https://github.com/McZen-Technologies/TNRIB) (Vérificateur de RIB Tunisie)

The TNRIB PHP Package is a library for validating and retrieving information from Tunisian National Bank numbers. It provides a set of utility methods to validate BBAN numbers, extract IBAN, BIC, Account Number, and Bank Name associated with a valid BBAN.

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

[](#installation)

You can install the TNRIB PHP Package using Composer. Run the following command in your project directory:

```
composer require besrourms/tnrib-php
```

Usage
-----

[](#usage)

```
include './vendor/autoload.php';
use besrourms\tnrib\TNRIB;

$tnrib = new TNRIB('07040005810111129653');
if ($tnrib->isValid()) {
	echo 'IBAN: ' . $tnrib->iban() . '';
	echo 'BIC: ' . $tnrib->bic() . '';
	echo 'Account Number: ' . $tnrib->accountNumber() . '';
	echo 'Bank Name: ' . $tnrib->bankName() . '';
} else {
	echo 'Invalid BBAN';
}
```

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

1077d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/576fdb8287176b4aa4e95554570c5e427deb13719814b3ff980975626d2aa310?d=identicon)[BesrourMS](/maintainers/BesrourMS)

---

Top Contributors

[![BesrourMS](https://avatars.githubusercontent.com/u/12979318?v=4)](https://github.com/BesrourMS "BesrourMS (6 commits)")

---

Tags

php-librarytunisia

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/besrourms-tnrib-php/health.svg)

```
[![Health](https://phpackages.com/badges/besrourms-tnrib-php/health.svg)](https://phpackages.com/packages/besrourms-tnrib-php)
```

PHPackages © 2026

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