承接 thomasdcodes/isbn-library 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

thomasdcodes/isbn-library

Composer 安装命令:

composer require thomasdcodes/isbn-library

包简介

The library provides a check if a ISBN-13 is valid or not. It also calculates a ISBN-13 check number with a given isbn root.

README 文档

README

The library provides a check if a ISBN-13 is valid or not. It also calculates a ISBN-13 check number with a given isbn root.

Install

composer require thomasdcodes/isbn-library

Use

The Class IsbnLibrary only allows static usage.

Use IsbnLibrary::sanitizeIsbn('978-3-123-45678-9') to remove all hyphens.

Use IsbnLibrary::isIsbn13Valid('978-3-123-45678-9') to check a ISBN is valid or not.

Use IsbnLibrary::calculateIsbn13CheckNumber('978-3-123-45678') to calculate the check number for a given ISBN-13 root.

Both functions (IsbnLibrary::isIsbn13Valid() and IsbnLibrary::calculateIsbn13CheckNumber()) are calling the IsbnLibrary::sanitizeIsbn() function before any other calculations. So you can give a ISBN-13 with hyphens.

Tests

All ISBN-13 numbers insight the tests were make by fantasy. If there is any valid ISBN-13 write me an email and I will change it to another ISBN-13.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固