{"id":15282385,"url":"https://github.com/onmotion/yii2-survey","last_synced_at":"2025-04-12T22:55:14.801Z","repository":{"id":57031806,"uuid":"107387179","full_name":"onmotion/yii2-survey","owner":"onmotion","description":"Adds survey functionality to your Yii2 application","archived":false,"fork":false,"pushed_at":"2019-11-09T01:11:06.000Z","size":694,"stargazers_count":14,"open_issues_count":7,"forks_count":20,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-12T22:55:07.964Z","etag":null,"topics":["poll","survey","yii2-extension","yii2-modules","yii2-survey"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onmotion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-18T09:32:42.000Z","updated_at":"2023-08-18T09:57:36.000Z","dependencies_parsed_at":"2022-08-23T20:50:15.651Z","dependency_job_id":null,"html_url":"https://github.com/onmotion/yii2-survey","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmotion%2Fyii2-survey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmotion%2Fyii2-survey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmotion%2Fyii2-survey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmotion%2Fyii2-survey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onmotion","download_url":"https://codeload.github.com/onmotion/yii2-survey/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643050,"owners_count":21138353,"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":["poll","survey","yii2-extension","yii2-modules","yii2-survey"],"created_at":"2024-09-30T14:25:31.971Z","updated_at":"2025-04-12T22:55:14.775Z","avatar_url":"https://github.com/onmotion.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nSurvey module for Yii2 application\n--\n\n[![Latest Stable Version](https://poser.pugx.org/onmotion/yii2-survey/v/stable)](https://packagist.org/packages/onmotion/yii2-survey)\n[![Total Downloads](https://poser.pugx.org/onmotion/yii2-survey/downloads)](https://packagist.org/packages/onmotion/yii2-survey)\n[![Monthly Downloads](https://poser.pugx.org/onmotion/yii2-survey/d/monthly)](https://packagist.org/packages/onmotion/yii2-survey)\n[![License](https://poser.pugx.org/onmotion/yii2-survey/license)](https://packagist.org/packages/onmotion/yii2-survey)\n\n\n\u003e! Note: the module under active developing, so it may have vary errors and unstable work.\n\u003e Highly appreciate your PR.\n\n![fluent](https://github.com/onmotion/yii2-survey/blob/docs/examples/front-short.png?raw=true)\n\n\nInstallation\n--\n\n* Just run:\n\n    composer require onmotion/yii2-survey\n\nor add \n\n    \"onmotion/yii2-survey\": \"*\"\n\nto the require section of your composer.json file.\n\n* apply migration:\n\n\n```sh\nphp yii migrate --migrationPath=@vendor/onmotion/yii2-survey/migrations\n```\n\n* Define module to your config:\n\n```php\n'modules' =\u003e [\n//...\n    'survey' =\u003e [\n        'class' =\u003e '\\onmotion\\survey\\Module',\n        'params' =\u003e [\n            'uploadsUrl' =\u003e 'http://advanced-frontend.lh/uploads/survey/', // full URL of the folder where the images will be uploaded.\n           // 'uploadsUrl' =\u003e '/uploads/survey/', // or for basic\n            'uploadsPath' =\u003e '@frontend/web/uploads/survey/', // absolute path to the folder where images will be saved.\n        ],\n//            'as access' =\u003e [\n//                'class' =\u003e AccessControl::class,\n//                'except' =\u003e ['default/done'],\n//                'only' =\u003e ['default*'],\n//                'rules' =\u003e [\n//                    [\n//                        'allow' =\u003e true,\n//                        'roles' =\u003e ['survey'],\n//                    ],\n//                ],\n//            ],\n    ],\n//...\n]\n```\n\ndon't forget change your own params.\n\nUsage\n--\n\nIf you are using the Yii basic template, you must manually define `$controllerNamespace` for module.\n\n*onmotion\\survey\\controllers* - backend (admin/create/edit surveys)\n\n*onmotion\\survey\\widgetControllers* - default (for widget)\n\nNow go to `/survey` in your backend and create a survey.\n\n![fluent](https://github.com/onmotion/yii2-survey/blob/docs/examples/back-list.png?raw=true)\n\nAfter that you can select Survey entities and show it for user, for example:\n\n```php\necho \\onmotion\\survey\\Survey::widget([\n   'surveyId' =\u003e 1\n]);\n```\n\n![fluent](https://github.com/onmotion/yii2-survey/blob/docs/examples/front.png?raw=true)\n\nAdmin:\n\n![fluent](https://github.com/onmotion/yii2-survey/blob/docs/examples/back-create.png?raw=true)\n\n![fluent](https://github.com/onmotion/yii2-survey/blob/docs/examples/back-review.png?raw=true)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonmotion%2Fyii2-survey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonmotion%2Fyii2-survey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonmotion%2Fyii2-survey/lists"}