imelgrat/barcode-validator

一个用于验证 EAN、IMEI、ISBN、GTIN、SSCC、GSIN、UPC 及其他条码的 PHP 类。

v1.1.3 2021-01-15 19:56 UTC

This package is not auto-updated.

Last update: 2024-09-13 22:44:09 UTC


README

GitHub license GitHub release Total Downloads GitHub issues GitHub stars

一个用于验证 EAN、IMEI、ISBN、GTIN、SSCC、GSIN、UPC 及其他相似代码的 PHP 类。

Ivan Melgrati 开发

要求

  • PHP >= 5.3.0

安装

Composer

推荐的安装方法是使用 Composer,一个 PHP 的依赖管理器。只需将 imelgrat/barcode-validator 添加到您的项目 composer.json 文件中

{
    "require": {
        "imelgrat/barcode-validator": "*"
    }
}

有关更多详细信息,请访问 Packagist

手动安装

  1. src/BarcodeValidator.php 复制到您的代码库中,例如到 vendor 目录。
  2. BarcodeValidator 类添加到您的自动加载器或直接 require 文件。

反馈

请创建一个问题来请求一个功能或提交一个错误报告。或者如果您只是想提供一些反馈,我也很乐意听取。您也可以在 Twitter 上关注我 @imelgrat

贡献

  1. 创建一个分支。
  2. 创建您的功能分支(git checkout -b my-new-feature)。
  3. 提交您的更改(git commit -am 'Added some feature')。
  4. 将分支推送到远程(git push origin my-new-feature)。
  5. 创建一个新的 Pull Request。