{"id":16296905,"url":"https://github.com/windomz/coupon-plugin","last_synced_at":"2025-04-09T13:36:23.140Z","repository":{"id":57080999,"uuid":"93191729","full_name":"WindomZ/coupon-plugin","owner":"WindomZ","description":"A abstract coupon component","archived":false,"fork":false,"pushed_at":"2017-06-16T03:08:18.000Z","size":115,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T07:42:12.445Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/WindomZ/coupon-module","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WindomZ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-02T18:05:29.000Z","updated_at":"2017-06-26T02:58:48.000Z","dependencies_parsed_at":"2022-08-24T14:42:30.215Z","dependency_job_id":null,"html_url":"https://github.com/WindomZ/coupon-plugin","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fcoupon-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fcoupon-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fcoupon-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fcoupon-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WindomZ","download_url":"https://codeload.github.com/WindomZ/coupon-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248050164,"owners_count":21039336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T20:24:22.595Z","updated_at":"2025-04-09T13:36:23.094Z","avatar_url":"https://github.com/WindomZ.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## **This project has been suspended, and moved to [coupon-module](https://github.com/WindomZ/coupon-module).**\n\n# coupon-plugin\n\n\u003e Developing...\n\n[![Latest Stable Version](https://img.shields.io/packagist/v/windomz/coupon-plugin.svg?style=flat-square)](https://packagist.org/packages/windomz/coupon-plugin)\n[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.0-8892BF.svg?style=flat-square)](https://php.net/)\n[![Minimum MYSQL Version](https://img.shields.io/badge/mysql-%3E%3D%205.6-4479a1.svg?style=flat-square)](https://www.mysql.com/)\n[![Build Status](https://img.shields.io/travis/WindomZ/coupon-plugin/master.svg?style=flat-square)](https://travis-ci.org/WindomZ/coupon-plugin)\n\n## Feature\n\n- [x] Activity\n- [x] CouponTemplate\n- [x] Pack = Activity + CouponTemplate\n- [x] Coupon = one of Pack\n\n## Installation\n\nOpen the terminal in the project directory:\n```bash\n$ composer require windomz/coupon-plugin\n```\n\nCreate a configuration file, like `config.yml`:\n```yaml\ndatabase:\n    host: 127.0.0.1\n    port: 3306\n    type: mysql\n    name: testdb\n    username: root\n    password: root\n```\n\nIf only for quick testing, \nyou can run `./sql/testdb.sql` in `MySQL` to quickly create a test database.\n\nOf course, you can also customize the `database name` based on `./sql/testdb.sql`, \nbut note that the `table name` can not be _MODIFIED_!\n\nIn the project initialization, \nload the specified configuration file through the following implementation:\n```php\nCoupon::setConfigPath('./config.yml');\n```\n\n## Usage\n\nRefer to the [Document](https://windomz.github.io/coupon-plugin)(_Currently only Chinese_) for details.\n\n## License\n\nThe [MIT License](https://github.com/WindomZ/coupon-plugin/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindomz%2Fcoupon-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwindomz%2Fcoupon-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindomz%2Fcoupon-plugin/lists"}