atelierdisko/coupon_code 问题修复 & 功能扩展

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

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

atelierdisko/coupon_code

最新稳定版本:v1.0.0

Composer 安装命令:

composer require atelierdisko/coupon_code

包简介

PHP library to generate and validate coupon code strings.

README 文档

README

Coupon Code -- PHP library to generate and validate coupon code strings. Synopsis -------- This library is a loose port of the CPAN module Algorithm::CouponCode[0] by Grant McLean. [0] https://github.com/grantm/Algorithm-CouponCode Copyright & License ------------------- This library is Copyright (c) 2014 Marius Wilms if not otherwise stated. The code is distributed under the terms of the BSD 3-clause License. For the full license text see the LICENSE file. Installation ------------ The preferred installation method is via composer. You can add the library as a dependency via: $ composer require atelierdisko/coupon_code Quickstart ---------- <?php use CouponCode\CouponCode; $code = new CouponCode(); $result = $code->generate(); // returns a string in `XXXX-XXXX-XXXX` format i.e. // `1K7Q-CTFM-LMTC`. $code->validate($result); // returns a boolean indicating if the code is valid. $code->normalize('i9oD_V467-8Dsz'); // returns `190D-V467-8D52` ?> 

统计信息

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

GitHub 信息

  • Stars: 59
  • Watchers: 7
  • Forks: 18
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-clause
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固