windomz / coupon-plugin
v0.7.3
2017-06-14 03:22 UTC
Requires
- php: >=7.0
- catfan/medoo: ^1.4
- hassankhan/config: ^0.10.0
- ramsey/uuid: ^3.6
- symfony/yaml: ^3.3
Requires (Dev)
- jakub-onderka/php-parallel-lint: ^0.9.2
- phpunit/phpunit: ^6.2
README
coupon-plugin
开发中...
特性
- 活动
- 优惠券模板
- 包 = 活动 + 优惠券模板
- 优惠券 = 包之一
安装
在项目目录中打开终端
$ composer require windomz/coupon-plugin
创建配置文件,例如 config.yml
database: host: 127.0.0.1 port: 3306 type: mysql name: testdb username: root password: root
如果只是为了快速测试,您可以在 MySQL
中运行 ./sql/testdb.sql
以快速创建测试数据库。
当然,您也可以根据 ./sql/testdb.sql
自定义 数据库名称
,但请注意,表名称
不能被 修改!
在项目初始化时,通过以下实现加载指定的配置文件
Coupon::setConfigPath('./config.yml');
用法
有关详细信息,请参阅 文档(目前只有中文)。