he8us/feedback-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Symfony 3 bundle for user feedback

1.0.1 2016-10-23 22:07 UTC

README

Scrutinizer Code Quality Build Status

FeedbackBundle for Symfony 3

Based on bulutyazilim/FeedbackBundle but heavily modified to follow Symfony3 code style and best-practices

##Installation

###Step 1

Require the package

composer require "he8us/feedback-bundle"

###Step 2

add this those lines to your app/AppKernel.php file

<?php

// app/AppKernel.php

// ...

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            // We depends on this bundle so you need to require it
            new \Gregwar\CaptchaBundle\GregwarCaptchaBundle(),
            new He8us\FeedbackBundle\He8usFeedbackBundle(),
        );

        // ...
    }

    // ...
}

##Step 3

import routing

# We depends on this bundle so you need to require it's routes
captcha:
    resource: "@GregwarCaptchaBundle/Resources/config/routing/routing.yml"
    prefix: /

feedback:
    resource: "@He8usFeedbackBundle/Resources/config/routing.yml"
    prefix:   /

Step 4

add configurations to app/config.yml Do not forget to define your base view

gregwar_captcha: ~

# Twig Configuration    
twig:
    globals:
        admin_base_view: '::base.html.twig'

Step 5

add CSS and Javascript files to your layout.

    <!-- Add the CSS in the <head></head> of your template
    <link rel="stylesheet" href="{{ asset("bundles/he8usfeedback/css/feedback.css") }}"/>
</head>
    <!-- Add the javascript at the very end of your HTML -->
    <script src="{{ asset('bundles/he8usfeedback/js/feedback.js') }}"></script>
    <script src="{{ asset('bundles/he8usfeedback/js/admin.js') }}"></script>
    <script src="{{ asset('bundles/he8usfeedback/js/html2canvas.min.js') }}"></script>

</body>

Step 6

Set some categories

step 7

add following before </body> in your twig file

{{ feedback_widget()|raw }}