PHPackages                             bmt/iswc - 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/iswc

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

bmt/iswc
========

Class ISWC Represents an International Standard Musical Work Code (ISWC) and provides methods to manipulate it.

00PHP

Since May 15Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

ISWC Class
==========

[](#iswc-class)

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

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

[](#installation)

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

```
composer require bmt/iswc

```

Usage
-----

[](#usage)

Instantiate the ISWC class by providing the necessary parameters: country code, publisher code, and work code. You can then use various methods to interact with the ISWC object.

### Creating an ISWC Object

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

```
use Bmt\ISRC\ISWC;

$iswc = new ISWC("123", "456", "01");
```

### Parsing an ISWC Code

[](#parsing-an-iswc-code)

You can parse an existing ISWC code to set the respective components of the ISWC object:

```
$iswc->parse("T-123456789-01");
```

### Retrieving ISWC Components

[](#retrieving-iswc-components)

You can retrieve individual components of the ISWC code:

```
$countryCode = $iswc->getCountryCode(); // Returns the country code (e.g., "123")
$publisherCode = $iswc->getPublisherCode(); // Returns the publisher code (e.g., "456")
$workCode = $iswc->getWorkCode(); // Returns the work code (e.g., "01")
```

### Generating a Complete ISWC Code

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

Generate a complete ISWC code based on the stored components:

```
$newIswcCode = $iswc->generateISWC(); // Returns a new ISWC code (e.g., "T-123456789-01")
```

### Converting to String

[](#converting-to-string)

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

```
$iswcString = (string)$iswc; // Returns the ISWC code as a string (e.g., "T-123456789-01")
```

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

Popularity0

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 (5 commits)")

### Embed Badge

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

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

###  Alternatives

[bolt/newswidget

📰 A simple Widget Extension to display the latest Bolt news on the dashboard.

13170.5k3](/packages/bolt-newswidget)

PHPackages © 2026

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