PHPackages                             febius/surveyjs-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. febius/surveyjs-php-sdk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

febius/surveyjs-php-sdk
=======================

Survey Js JSON schema parser and modelling sdk

2.1.4(5y ago)230.0k↓33.8%1MITPHPPHP &gt;=7.1.0CI failing

Since Oct 12Pushed 5y ago3 watchersCompare

[ Source](https://github.com/Febius/surveyjs-php-sdk)[ Packagist](https://packagist.org/packages/febius/surveyjs-php-sdk)[ RSS](/packages/febius-surveyjs-php-sdk/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (17)Used By (0)

[![Build Status](https://camo.githubusercontent.com/eccdcd724a2e4e7f774b4f12908b60a3c47f14f7189879110fde0062817316a5/68747470733a2f2f7472617669732d63692e6f72672f6665626975732f7375727665796a732d7068702d73646b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/febius/surveyjs-php-sdk)[![Latest Stable Version](https://camo.githubusercontent.com/629e14df26a50d8fa9c6578b3a6d95421725a845f7257c44a3a63302df66ab6f/68747470733a2f2f706f7365722e707567782e6f72672f6665626975732f7375727665796a732d7068702d73646b2f762f737461626c65)](https://packagist.org/packages/febius/surveyjs-php-sdk)[![License](https://camo.githubusercontent.com/ded2aad1c608404982efc87097efdf4d165938ede0f5c449f5481540d0d5bf21/68747470733a2f2f706f7365722e707567782e6f72672f6665626975732f7375727665796a732d7068702d73646b2f6c6963656e7365)](https://packagist.org/packages/febius/surveyjs-php-sdk)

SurveyJS PHP SDK
================

[](#surveyjs-php-sdk)

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

Installation
------------

[](#installation)

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

```
$ composer require febius/surveyjs-php-sdk
```

### Usage

[](#usage)

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

#### Example

[](#example)

The following snippet is extracted from the [example/sample.php](https://github.com/febius/surveyjs-php-sdk/blob/master/example/sample.php)file and shows how parsing a JSON

```
// [Add comment]
[Add Code]
```

#### Survey Element(s)

[](#survey-elements)

A [RatingElement](https://github.com/febius/surveyjs-php-sdk/blob/master/src/Model/Element/RatingElement.php)instance allows to map a single Rating element and to return information as follows:

```
[Add snippet] TDB
```

Development
-----------

[](#development)

The environment requires [phpunit](https://phpunit.de/), that has been already included in the `dev-dependencies` of the `composer.json`.

### Dependencies

[](#dependencies)

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

```
$ composer install
```

### Testing

[](#testing)

Tests files are created in dedicates folders that replicate the [src](https://github.com/febius/surveyjs-php-sdk/tree/master/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
-------

[](#license)

This package is released under the [MIT license](LICENSE.md).

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 91.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~43 days

Recently: every ~54 days

Total

10

Last Release

2067d ago

Major Versions

0.3.0 → 1.0.02019-11-07

1.0.0 → 2.0.02019-11-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/b7e0fcf87c654b872f268b11036b3144f13bca19a525cf160fc6d3c07029a86c?d=identicon)[Febius](/maintainers/Febius)

---

Top Contributors

[![Febius](https://avatars.githubusercontent.com/u/46316583?v=4)](https://github.com/Febius "Febius (42 commits)")[![astronati](https://avatars.githubusercontent.com/u/2708431?v=4)](https://github.com/astronati "astronati (4 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/febius-surveyjs-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/febius-surveyjs-php-sdk/health.svg)](https://phpackages.com/packages/febius-surveyjs-php-sdk)
```

###  Alternatives

[winter/laravel-config-writer

Utility to create and update Laravel config and .env files

16350.1k18](/packages/winter-laravel-config-writer)[rotexsoft/versatile-collections

A collection package that can be extended to implement things such as a Dependency Injection Container, RecordSet objects for housing database records, a bag of http cookies, or technically any collection of items that can be looped over and whose items can each be accessed using array-access syntax or object property syntax.

186.1k1](/packages/rotexsoft-versatile-collections)[texxasrulez/account_details

Display additional information for the current user and much more.

131.8k](/packages/texxasrulez-account-details)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
