PHPackages                             bmt/isrc - 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. bmt/isrc

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

bmt/isrc
========

The ISRC class is a PHP class that represents an International Standard Recording Code (ISRC). It provides methods to manipulate ISRC codes by parsing, retrieving components, and generating new codes.

01PHP

Since May 15Pushed 3y ago1 watchersCompare

[ Source](https://github.com/BMTmohammedtaha/isrc)[ Packagist](https://packagist.org/packages/bmt/isrc)[ RSS](/packages/bmt-isrc/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

ISRC Class
==========

[](#isrc-class)

The ISRC class is a PHP class that represents an International Standard Recording Code (ISRC). It provides methods to manipulate ISRC codes by parsing, retrieving components, and generating new codes.

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

[](#installation)

You can include the ISRC class in your project by requiring it through Composer:

```
composer require bmt/isrc

```

Usage
-----

[](#usage)

Instantiate the ISRC class by providing the necessary parameters: country code, registrant code, year, and designation code. You can then use various methods to interact with the ISRC object.

### Creating an ISRC Object

[](#creating-an-isrc-object)

```
use Bmt\ISRC\ISRC;

$isrc = new ISRC("US", "ABC", "21", "12345");
```

### Retrieving ISRC Components

[](#retrieving-isrc-components)

You can retrieve individual components of the ISRC code:

```
$countryCode = $isrc->getCountryCode(); // Returns the country code (e.g., "US")
$registrantCode = $isrc->getRegistrantCode(); // Returns the registrant code (e.g., "ABC")
$year = $isrc->getYear(); // Returns the year (e.g., "21")
$designationCode = $isrc->getDesignationCode(); // Returns the designation code (e.g., "12345")
```

### Generating a Complete ISRC Code

[](#generating-a-complete-isrc-code)

Generate a complete ISRC code based on the stored components:

```
$newIsrcCode = $isrc->generateISRC(); // Returns a new ISRC code (e.g., "USABC2112345")
```

### Converting to String

[](#converting-to-string)

You can also convert the ISRC object to a string, which returns the generated ISRC code:

```
$isrcString = (string)$isrc; // Returns the ISRC code as a string (e.g., "USABC2112345")
```

License
-------

[](#license)

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

```

Feel free to modify and customize the README file to fit your specific project needs.

```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/27a34c25ebb1d274100bd85ca3c7a8228b7581b6dd9b73bdffbaa40424ddb44e?d=identicon)[bmt](/maintainers/bmt)

---

Top Contributors

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

---

Tags

isrcmusic-industrymusic-libraryoopphp

### Embed Badge

![Health badge](/badges/bmt-isrc/health.svg)

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

###  Alternatives

[hellonico/acf-country

A country field for ACF.

12193.2k](/packages/hellonico-acf-country)

PHPackages © 2026

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