windomz/coupon-plugin
Composer 安装命令:
composer require windomz/coupon-plugin
包简介
README 文档
README
coupon-plugin
Developing...
Feature
- Activity
- CouponTemplate
- Pack = Activity + CouponTemplate
- Coupon = one of Pack
Installation
Open the terminal in the project directory:
$ composer require windomz/coupon-plugin
Create a configuration file, like config.yml:
database: host: 127.0.0.1 port: 3306 type: mysql name: testdb username: root password: root
If only for quick testing,
you can run ./sql/testdb.sql in MySQL to quickly create a test database.
Of course, you can also customize the database name based on ./sql/testdb.sql,
but note that the table name can not be MODIFIED!
In the project initialization, load the specified configuration file through the following implementation:
Coupon::setConfigPath('./config.yml');
Usage
Refer to the Document(Currently only Chinese) for details.
License
The MIT License
统计信息
- 总下载量: 26
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2017-06-07