PHPackages                             fynduck/isin - 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. fynduck/isin

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

fynduck/isin
============

A Laravel package for generate and validating an ISIN (International Securities Identification Number / ISO 6166)

v1.0.2.1(6y ago)034MITPHPPHP &gt;=5.4

Since Feb 28Pushed 6y agoCompare

[ Source](https://github.com/fynduck/isin)[ Packagist](https://packagist.org/packages/fynduck/isin)[ Docs](https://github.com/fynduck/isin)[ RSS](/packages/fynduck-isin/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (3)Dependencies (2)Versions (7)Used By (0)

Isin
====

[](#isin)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Latest Version on Packagist](https://camo.githubusercontent.com/49d93281a8d218c54fab2db19b7a3a85d6b546869fd69afc1148ed8d44efbae7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66796e6475636b2f6973696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fynduck/isin)[![Total Downloads](https://camo.githubusercontent.com/765b374c22993d483dc7b2293a9f5b5232ec81c25c79c29eb92ebff3ea5487cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66796e6475636b2f6973696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fynduck/isin)

A Laravel package for generate and validating an ISIN (International Securities Identification Number / ISO 6166).

ISINs will be checked against the checksum as detailed at \[[https://en.wikipedia.org/wiki/International\_Securities\_Identification\_Number](https://en.wikipedia.org/wiki/International_Securities_Identification_Number)\]

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

[](#installation)

The library can be installed via composer

```
composer require fynduck/isin

```

Usage
-----

[](#usage)

You can instantiate an ISIN object by passing in a string

```
use fynduck\Isin;

$number = 'GB00B3W23161';
$isin = new Isin($number);
```

If the value passed in was not a valid ISIN it will throw a `fynduck\Isin\Exception\InvalidISINException`To get the value back out you can do

```
$isin->getValue();
return GB00B3W23161

```

If you want to get hold of just the check digit you can use

```
$isin->getCheckDigit();
return 1

```

### Generate ISINs

[](#generate-isins)

```
Isin::generateDigit('GB00B3W2316');
return: 1

```

### Validating ISINs

[](#validating-isins)

There are some helper static functions for simple validation.

```
Isin::isValid('GB00B3W23161');
return true

```

This will return true if the value was a valid ISIN, false otherwise.

```
Isin::validate('gb00b3w23161');
return GB00B3W23161

```

```
$number = Isin::validate('ABC');
return InvalidISINException

```

This will return the properly formatted ISIN (whitespace trimmed and converted to uppercase). It will throw a `fynduck\Isin\Exception\InvalidISINException` if the input was not valid.

Development
-----------

[](#development)

This project is open source. Feedback and pull requests are welcome. To develop the code:

Checkout the project. Run `composer install`

### Running Tests

[](#running-tests)

PHPUnit

```
vendor/bin/phpunit

```

Code Sniffer

```
vendor/bin/phpcs

```

Both must be run successfully before code can be submitted. Code coverage must also be 100%.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

Every ~283 days

Recently: every ~354 days

Total

6

Last Release

2314d ago

Major Versions

v0.0.2 → v1.0.02016-02-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/c1e2c914b6acaa6610e8b07da82484a27c57e7787a15c978104a05bc295f33a7?d=identicon)[fynduck](/maintainers/fynduck)

---

Top Contributors

[![djmarland](https://avatars.githubusercontent.com/u/105991?v=4)](https://github.com/djmarland "djmarland (2 commits)")

---

Tags

laravelISINiso 6166iso61666166

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/fynduck-isin/health.svg)

```
[![Health](https://phpackages.com/badges/fynduck-isin/health.svg)](https://phpackages.com/packages/fynduck-isin)
```

###  Alternatives

[intervention/validation

Additional validation rules for the Laravel framework

6826.7M8](/packages/intervention-validation)[askedio/laravel5-profanity-filter

A Vendor Package Example

52354.1k](/packages/askedio-laravel5-profanity-filter)[laravel-validation-rules/us-state

Validate US States and Canada Provinces

16172.7k](/packages/laravel-validation-rules-us-state)[pacerit/laravel-polish-validation-rules

Simple Polish Validation rules for Laravel and Lumen framework

1449.9k](/packages/pacerit-laravel-polish-validation-rules)[laravel-validation-rules/ip

Validate if an ip address is public or private.

1629.7k](/packages/laravel-validation-rules-ip)[janvince/smallcontactform

Simple but flexible multi language contact form builder with custom fields, validation and passive antispam

307.4k](/packages/janvince-smallcontactform)

PHPackages © 2026

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