atelierdisko/coupon_code
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` ?>
atelierdisko/coupon_code 适用场景与选型建议
atelierdisko/coupon_code 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 197.58k 次下载、GitHub Stars 达 60, 最近一次更新时间为 2014 年 08 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「code」 「token」 「key」 「coupon」 「voucher」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 atelierdisko/coupon_code 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 atelierdisko/coupon_code 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 atelierdisko/coupon_code 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Memio's PrettyPrinter, used to generate PHP code from given Model
A package for validating Google Cloud's JWT provided by webhooks
JSON Web Token Authentication for Laravel and Lumen
Lets you add foreign keys in a swift! Foreign key adder in laravel migration.
Super simple key/value settings for Laravel 8+
Access model meta data as if it was a property on your model
统计信息
- 总下载量: 197.58k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 62
- 点击次数: 19
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: BSD-3-clause
- 更新时间: 2014-08-28