承接 onmotion/yii2-survey 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

onmotion/yii2-survey

最新稳定版本:v0.1.4

Composer 安装命令:

composer require onmotion/yii2-survey

包简介

survey module for Yii2 application

README 文档

README

Latest Stable Version Total Downloads Monthly Downloads License

! Note: the module under active developing, so it may have vary errors and unstable work. Highly appreciate your PR.

fluent

Installation

  • Just run:

    composer require onmotion/yii2-survey

or add

"onmotion/yii2-survey": "*"

to the require section of your composer.json file.

  • apply migration:
php yii migrate --migrationPath=@vendor/onmotion/yii2-survey/migrations
  • Define module to your config:
'modules' => [
//...
    'survey' => [
        'class' => '\onmotion\survey\Module',
        'params' => [
            'uploadsUrl' => 'http://advanced-frontend.lh/uploads/survey/', // full URL of the folder where the images will be uploaded.
           // 'uploadsUrl' => '/uploads/survey/', // or for basic
            'uploadsPath' => '@frontend/web/uploads/survey/', // absolute path to the folder where images will be saved.
        ],
//            'as access' => [
//                'class' => AccessControl::class,
//                'except' => ['default/done'],
//                'only' => ['default*'],
//                'rules' => [
//                    [
//                        'allow' => true,
//                        'roles' => ['survey'],
//                    ],
//                ],
//            ],
    ],
//...
]

don't forget change your own params.

Usage

If you are using the Yii basic template, you must manually define $controllerNamespace for module.

onmotion\survey\controllers - backend (admin/create/edit surveys)

onmotion\survey\widgetControllers - default (for widget)

Now go to /survey in your backend and create a survey.

fluent

After that you can select Survey entities and show it for user, for example:

echo \onmotion\survey\Survey::widget([
   'surveyId' => 1
]);

fluent

Admin:

fluent

fluent

统计信息

  • 总下载量: 997
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 14
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 14
  • Watchers: 6
  • Forks: 20
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-10-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固