定制 febius/surveyjs-php-sdk 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

febius/surveyjs-php-sdk

最新稳定版本:2.1.4

Composer 安装命令:

composer require febius/surveyjs-php-sdk

包简介

Survey Js JSON schema parser and modelling sdk

README 文档

README

Build Status Latest Stable Version License

SurveyJS PHP SDK

Provides a way to model through PHP the JSON created by SurveyJS.

Installation

You can install the library and its dependencies using composer running:

$ composer require febius/surveyjs-php-sdk

Usage

The library allows to return a model per each Survey element (comment, checkbox, etc...).

Example

The following snippet is extracted from the example/sample.php file and shows how parsing a JSON

// [Add comment]
[Add Code]

Survey Element(s)

A RatingElement instance allows to map a single Rating element and to return information as follows:

[Add snippet] TDB

Development

The environment requires phpunit, that has been already included in the dev-dependencies of the composer.json.

Dependencies

To install all modules you just need to run following command:

$ composer install

Testing

Tests files are created in dedicates folders that replicate the src structure as follows:

.
+-- src
|   +-- [folder-name]
|   |   +-- [file-name].php
|   ...
+-- tests
|   +-- [folder-name]
|   |   +-- [file-name]Test.php

Execute following command to run the tests suite:

$ composer test

Run what follows to see the code coverage:

$ composer coverage

License

This package is released under the MIT license.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-10-14