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. [Utility &amp; Helpers](/categories/utility)
4. /
5. besrourms/tnrib-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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

1.0.0(3y 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 2w 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 17% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

1171d 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)
```

###  Alternatives

[rappasoft/laravel-livewire-tables

A dynamic table component for Laravel Livewire

2.0k3.0M31](/packages/rappasoft-laravel-livewire-tables)[szeidler/composer-patches-cli

28263.9k4](/packages/szeidler-composer-patches-cli)[wa72/html-pretty-min

HTML minifier and indenter that works on the DOM tree

22234.6k8](/packages/wa72-html-pretty-min)[veewee/reflecta

Unleash the Power of Optics in your code!

13477.2k7](/packages/veewee-reflecta)[apen/additional_reports

Useful information in the reports module : xclass, ajax, cliKeys, eID, general status of the system (encoding, DB, php vars...), hooks, compare local and TER extension (diff), used content type, used plugins, ExtDirect... It can really help you during migration or new existing project (to have a global reports of the system).

13170.7k](/packages/apen-additional-reports)[antistatique/swisstopo

Convert GPS (WGS84) to Swiss (LV03 and LV95) coordinates (and vice versa)

1481.8k](/packages/antistatique-swisstopo)

PHPackages © 2026

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