定制 bmt/isrc 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

bmt/isrc

Composer 安装命令:

composer require 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.

README 文档

README

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

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

composer require bmt/isrc

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

use Bmt\ISRC\ISRC;

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

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

Generate a complete ISRC code based on the stored components:

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

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

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.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固