setono/sylius-addwish-plugin

Sylius 插件,用于集成 Addwish

安装次数: 19,360

依赖项: 0

建议者: 0

安全性: 0

星标: 1

关注者: 2

分支: 1

开放问题: 0

类型:sylius-plugin


README

Latest Version on Packagist Software License Build Status

插件通过 setono/sylius-tag-bag-plugin 将 Addwish 跟踪集成到 Sylius

安装

步骤 1: 下载插件

打开命令行,进入您的项目目录,然后执行以下命令以下载此插件的最新稳定版本

# Omit setono/sylius-tag-bag-plugin if you want to
# override layout.html.twig as described at https://github.com/Setono/TagBagBundle#usage
$ composer require setono/sylius-addwish-plugin setono/sylius-tag-bag-plugin

此命令需要您全局安装了 Composer,请参阅 Composer 文档中的安装章节

步骤 2: 启用插件

然后,通过将其添加到项目 config/bundles.php 文件中注册的插件/捆绑列表中来启用该插件。

<?php
# config/bundles.php
return [
    Setono\TagBagBundle\SetonoTagBagBundle::class => ['all' => true],

    // Use this bundle or override layout.html.twig as described at https://github.com/Setono/TagBagBundle#usage
    Setono\SyliusTagBagPlugin\SetonoSyliusTagBagPlugin::class => ['all' => true],

    Setono\SyliusAddwishPlugin\SetonoSyliusAddwishPlugin::class => ['all' => true],
];

步骤 3: 创建配置

# config/packages/setono_sylius_addwish.yaml
setono_sylius_addwish:
    partner_id: "%env(ADDWISH_PARTNER_ID)%"
# .env

# Get it at https://addwish.com/company/signin.html
ADDWISH_PARTNER_ID=YOUR_PARTNER_ID

开发

运行 composer try 尝试此插件。

在推送更改到仓库/制作 PR 之前,请先运行 composer all

Addwish 文档