{"id":13343444,"url":"https://github.com/librecmscom/yii2-question","last_synced_at":"2025-05-16T18:34:29.078Z","repository":{"id":57088547,"uuid":"67277329","full_name":"librecmscom/yii2-question","owner":"librecmscom","description":"适用于Yii2的问答模块，定制模块，非通用模块,只可用来扒代码用。以前扒https://github.com/artkost/yii2-qa 的，改动非常大","archived":false,"fork":false,"pushed_at":"2017-10-23T09:05:36.000Z","size":156,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-24T15:40:13.216Z","etag":null,"topics":["question","segmentfault","stack-overflow","yii","yii2-question"],"latest_commit_sha":null,"homepage":"http://yuncms-staging.daoapp.io/","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/librecmscom.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-03T07:28:04.000Z","updated_at":"2021-09-14T16:42:32.000Z","dependencies_parsed_at":"2022-08-20T16:00:37.955Z","dependency_job_id":null,"html_url":"https://github.com/librecmscom/yii2-question","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/librecmscom%2Fyii2-question","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/librecmscom%2Fyii2-question/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/librecmscom%2Fyii2-question/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/librecmscom%2Fyii2-question/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/librecmscom","download_url":"https://codeload.github.com/librecmscom/yii2-question/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225444750,"owners_count":17475353,"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":["question","segmentfault","stack-overflow","yii","yii2-question"],"created_at":"2024-07-29T19:31:21.990Z","updated_at":"2024-11-19T23:46:09.253Z","avatar_url":"https://github.com/librecmscom.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yii2-question\n\n仿 segmentfault 的Yii2实现\n\n[![Latest Stable Version](https://poser.pugx.org/yuncms/yii2-question/v/stable.png)](https://packagist.org/packages/yuncms/yii2-question)\n[![Total Downloads](https://poser.pugx.org/yuncms/yii2-question/downloads.png)](https://packagist.org/packages/yuncms/yii2-question)\n[![Reference Status](https://www.versioneye.com/php/yuncms:yii2-question/reference_badge.svg)](https://www.versioneye.com/php/yuncms:yii2-question/references)\n[![Build Status](https://img.shields.io/travis/yiisoft/yii2-question.svg)](http://travis-ci.org/yuncms/yii2-question)\n[![Dependency Status](https://www.versioneye.com/php/yuncms:yii2-question/dev-master/badge.png)](https://www.versioneye.com/php/yuncms:yii2-question/dev-master)\n[![License](https://poser.pugx.org/yuncms/yii2-question/license.svg)](https://packagist.org/packages/yuncms/yii2-question)\n\n\n\n安装\n----\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```\ncomposer require --prefer-dist yuncms/yii2-question\n```\n\nor add\n\n```json\n\"yuncms/yii2-question\": \"*\"\n```\n\nto the `require` section of your composer.json.\n\nAdd following lines to your main configuration file:\n``php\n'modules' =\u003e [\n    'question' =\u003e [\n        'class' =\u003e 'yuncms\\question\\frontend\\Module',\n    ],\n],\n```\n\nAfter you downloaded and configured Yii2-vote, the last thing you need to do is updating your database schema by applying the migrations:\n`\n``php\n    'controllerMap' =\u003e [\n        'migrate' =\u003e [\n            'class' =\u003e 'yii\\console\\controllers\\MigrateController',\n\t\t\t//命名空间\n\t\t\t'migrationNamespaces' =\u003e [\n                'yuncms\\question\\migrations',\n            ],\n        ],\n    ],\n```\n\n```bash\n$ php yii migrate/up\n```\n\n使用\n----\n\nhttp::www.youname.com/index.php?r=question\n\n## License\n\nthis is released under the MIT License. See the bundled [LICENSE.md](LICENSE.md)\nfor details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibrecmscom%2Fyii2-question","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibrecmscom%2Fyii2-question","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibrecmscom%2Fyii2-question/lists"}