empressia/sylius-userback-plugin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

empressia/sylius-userback-plugin

Composer 安装命令:

composer require empressia/sylius-userback-plugin

包简介

The plugin allows you to inject Userback widget to your Store so your Users can give you a feedback on their experience.

README 文档

README

Documentation

The plugin allows you to inject Userback widget to your Store so your Users can give you a feedback on their experience.

Installation

  1. Add composer dependency: composer require empressia/sylius-userback-plugin

  2. Generate widget on userback.io and copy Access Token (lookup Userback.access_token line in generated Widget Code)

  3. Setup the Access Token environmental variable (you can paste USERBACK_ACCESS_TOKEN=paste_your_token_here in your .env.local file). Leave it blank if you want to disable widget.

Instructions below are valid only if you use default Sylius configuration and layouts. The plugin makes use of sylius.shop.layout.head block in default Sylius layout.

  1. Paste this snippet on top of config/packages/_sylius.yaml file:
    imports:
      - { resource: "@EmpressiaSyliusUserbackPlugin/Resources/config/sylius_ui.yaml" }

Quality Assurance

Prepare test environment

From the root directory, run the following commands:

cd tests/Application
APP_ENV=test bin/console doctrine:database:create
APP_ENV=test bin/console doctrine:schema:create
APP_ENV=test bin/console sylius:install

To be able to setup a plugin's database, remember to configure you database credentials in tests/Application/.env and tests/Application/.env.test.

Running plugin tests

  • PHPUnit

    vendor/bin/phpunit
  • Behat (non-JS scenarios)

    vendor/bin/behat --strict --tags="~@javascript"
  • Static Analysis

    • Psalm

      vendor/bin/psalm
    • PHPStan

      vendor/bin/phpstan analyse -c phpstan.neon -l max src/  

统计信息

  • 总下载量: 68
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-05-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固