PHP code example of alpiiscky / yii2-feedback

1. Go to this page and download the library: Download alpiiscky/yii2-feedback library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

alpiiscky / yii2-feedback example snippets


    "yiisoft/yii2": "~2.0.0",
    "himiklab/yii2-recaptcha-widget": "*",
    "himiklab/yii2-sortable-grid-view-widget" : "*",
    "devgroup/yii2-jsoneditor": "*",
    "webvimark/module-user-management": "^1.0"

https://github.com/himiklab/yii2-recaptcha-widget
https://github.com/webvimark/user-management



return [
    'adminEmail' => '', // куда отправить
    'noticeEmail' => '', // от кого
    'noticeTheme' => 'Обратная связь', // тема
];

'feedback' => [
            'class' => 'alpiiscky\feedback\FeedbackModule',
            'layout' => '@app/views/layouts/main',
        ],

/feedback/rules

<?= \alpiiscky\feedback\widgets\FeedbackWidget::widget([])

[
  {
    "rule": "string",
    "params": {
      "max": 50,
      "message": "'Please choose a username.'"
    }
  },
  {
    "rule": "

php composer.phar 

php yii migrate --migrationPath=vendor/alpiiscky/yii2-feedback/migrations/