Download the PHP package sst/survey-lib-bundle without Composer

On this page you can find all versions of the php package sst/survey-lib-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package survey-lib-bundle

SST Survey Library Bundle

This bundle provides a library of survey-related Entities and Services for Symfony projects.

License

This bundle is developed by SST Software, see LICENSE for more details.

Installation

Contents

Entities

This bundle provides interfaces and traits to fulfill these, for a general Survey application.

The bundle assumes that these entities are stored in the App\Entity\Survey namespace, if this is not the case, you can change this in the configuration (see below).

Available Entities with their Traits and Interfaces are:

Datamodel

The Element entity and ElementData

The Element entity has a parameter elementData, in which all data regarding the element can be stored. ElementData matches the type of the Element, so make sure you set a valid combination of type and ElementDatawhen creating an Element

This bundle provides several default ElementData types:

ElementType ElementData Description
TEXT TextQuestionElementDataInterface Question which can be answered with a text
NUMBER NumberQuestionElementDataInterface Question which can be answered with a number
DATETIME DateTimeQuestionElementDataInterface Question which can be answered with a date or datetime
MULTIPLE_CHOICE MultipleChoiceQuestionElementDataInterface Multiple choice question
MULTIPLE_CHOICE_GRID MultipleChoiceGridQuestionElementDataInterface Question providing a grid of multiple multiple-choice-questions
SCALE ScaleQuestionElementDataInterface Question that can be shown as scale
INFO ElementDataInterface Info-text, to be shown during a survey
CUSTOM CustomElementDataInterface Custom ElementData, to allow for project-specific implementations

You can extend or overwrite these, as long as your ElementData implements the correct interface, matching the type of the Element.

Display conditions

This bundle provides a service to check if a given ElementUsage should be displayed, based on a given SurveyResponse.
To identify elements, it uses the code parameter of the ElementUsage.
The provided displayConditionService assumes that ElementUsage->display_condition contains a valid expression, see Symfony Expression Language.
So make sure, this code is unique in the set you are checking, usually this means, that it should be unique in the related survey.

Services

This bundle contains several services to use in your survey-project. These are injected automatically when using their interfaces. This can be overridden by providing a configuration file (see below).

Customization

You can customize which class implements which interface by providing a configuration file in your project.
If you want to do so, create a file config/packages/sst_survey_lib.yaml with the following contents:

These are the default values, if these are the values you need, you don't need to create the file. If you need to change this, copy (parts of) above code into this file.

Events

This bundle provides a few events, which you can listen to.


All versions of survey-lib-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
symfony/http-kernel Version ^6.4 || ^7.0
doctrine/orm Version ^2.14 || ^3.3
symfony/config Version ^6.4 || ^7.0
symfony/dependency-injection Version ^6.4 || ^7.0
doctrine/collections Version ^2.1
symfony/event-dispatcher Version ^6.4 || ^7.0
symfony/expression-language Version ^6.4 || ^7.0
symfony/serializer Version ^6.4 || ^7.0
symfony/property-access Version ^6.4 || ^7.0
stof/doctrine-extensions-bundle Version ^1.7
symfony/validator Version ^6.4 || ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sst/survey-lib-bundle contains the following files

Loading the files please wait ....