bmt/iswc 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bmt/iswc

Composer 安装命令:

composer require bmt/iswc

包简介

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

README 文档

README

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

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

composer require bmt/iswc

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

use Bmt\ISRC\ISWC;

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

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

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

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

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

This project is licensed under the MIT License. See the LICENSE file for details.


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

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-15