vanquyet/yii2-quiz
Composer 安装命令:
composer require vanquyet/yii2-quiz
包简介
README 文档
README
Step 1: Create quiz model
Provide a name in human-language
...
Step 2: Create results
Provide a name in human-language
Provide a title, description and content to show for player what result is (optional)
Provide a priority to indicate one result will be chosen if there are two or more suiable result (optional)
Provide canvas_with and canvas_height
===============
The order of step 3, 4, 5, 6 depends on value of their global_exec_order
Step 3: Create params
Provide a name in human-language
Provide a var_name, only contains words, number, underscore, and no starts with number
Provide a value as function body, this function has no argument, and must return a value
Provide a global_exec_order as a number to indicate the order of execution for this param
Step 4: Create characters
Provide a name in human-language
Provide a var_name, only contains words, number, underscore, and no starts with number
Provide a type and index (with some filters and sorters are optional) for each character to find out a proper one from the run time list
Provide a global_exec_order as a number to indicate the order of execution for this character
Step 5: Create character media
Provide a name in human-language
Provide a var_name, only contains words, number, underscore, and no starts with number
Provide a type and index (with some filters and sorters are optional) for each character to find out a proper one from the run time list
Provide a global_exec_order as a number to indicate the order of execution for this character medium
Provide some styles to style this medium
Step 6.1: Create input groups
Provide a name in human-language
Provide a title for player (optional)
Provide a global_exec_order as a number to indicate the order of execution for this input group
Step 6.2: Create inputs for each input group
Provide a var_name, only contains words, number, underscore, and no starts with number
Provide a type. Types are consist of text, number, date, datetime, checkbox_group, radio_group, selectbox
Provide some validators to validate input from player (optional)
Provide a question for player (optional)
Provide row and column to indicate position of this input on screen (optional)
Step 6.3: Create input options for each input
Provide a value
Provide a content, by default, it will be assigned by value (optional)
Provide a score, this score will be added to quiz total_score (optional)
Provide some result_polls to vote for proper result (optional)
Provide a interpretation to explain with player that why this option true or false, or any other reasons (optional)
Provide row and column to indicate position of this input on screen (optional)
This step is required if input type is checkbox_group, radio_group or select_box In these case, player only can choose one (or more with input type is checkbox_group) option, and validator for input is unnecessary. If input type is not checkbox_group, radio_group or select_box, these option is not required, but if provided, its still make sense. That is, if input from player is same with one of these options, score of this option will be added to total_score of quiz. And via result poll(s), corresponding result will be increase its votes.
===============
Step 7: Create shapes
Provide a name in human-language
Provide an image_id to refer to image that will be background of this shape (optional)
Provide a text to display on this shape (optional)
Provide some styles to style this shape
Step 8: Add shapes and mediums to corresponding results
vanquyet/yii2-quiz 适用场景与选型建议
vanquyet/yii2-quiz 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 55 次下载、GitHub Stars 达 0, 最近一次更新时间为 2017 年 08 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 vanquyet/yii2-quiz 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 vanquyet/yii2-quiz 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 55
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-08-16