PHPackages                             grelu/surveyjs-bundle - 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. grelu/surveyjs-bundle

ActiveSymfony-bundle

grelu/surveyjs-bundle
=====================

SurveyJs Bundle

0.1(8y ago)3971JavaScriptPHP &gt;=5.6

Since Nov 20Pushed 8y ago3 watchersCompare

[ Source](https://github.com/grelu/SurveyJsBundle)[ Packagist](https://packagist.org/packages/grelu/surveyjs-bundle)[ RSS](/packages/grelu-surveyjs-bundle/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

SurveyJsBundle
==============

[](#surveyjsbundle)

SurveyJsBundle is just an integration of surveyjs library in Symfony 3.

How to
------

[](#how-to)

- Install this bundle : composer require grelu/surveyjs-bundle

Enable the bundle
-----------------

[](#enable-the-bundle)

To start using the bundle, register the bundle in your application's kernel class:

```
// app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new Grelu\SurveyJsBundle\SurveyJsBundle(),
            // ...
        ];
    }
}
```

Enable routing
--------------

[](#enable-routing)

```
# app/config/routing.yml
surveyJs:
    resource: "@SurveyJsBundle/Controller/"
    type:     annotation
```

Update schema :
---------------

[](#update-schema-)

```
php bin/console doctrine:schema:update --force
```

Install Assets :
----------------

[](#install-assets-)

```
php bin/console assets:install
```

You must now to extend two class in your AppBundle :
----------------------------------------------------

[](#you-must-now-to-extend-two-class-in-your-appbundle-)

### Add Class Survey (to save your surveys ) :

[](#add-class-survey-to-save-your-surveys--)

```
