setono / sylius-addwish-plugin
Sylius 插件,用于集成 Addwish
v1.8.0
2022-08-09 20:22 UTC
Requires
- php: >=7.4
- setono/tag-bag: ^2.0
- setono/tag-bag-bundle: ^3.0
- symfony/config: ^4.4 || ^5.4
- symfony/http-kernel: ^4.4 || ^5.4
Requires (Dev)
- phpspec/phpspec: ^6.3
- roave/security-advisories: dev-latest
- setono/code-quality-pack: ^2.2
- setono/sylius-tag-bag-plugin: ^1.1
- sylius/sylius: ~1.10.11
- symfony/browser-kit: ^4.4 || ^5.4
- symfony/debug-bundle: ^4.4 || ^5.4
- symfony/dotenv: ^4.4 || ^5.4
- symfony/intl: ^4.4 || ^5.4
- symfony/web-profiler-bundle: ^4.4 || ^5.4
- symfony/web-server-bundle: ^4.4 || ^5.4
Suggests
- setono/sylius-tag-bag-plugin: Use it if you don't want to override shop's layout.html.twig
- dev-master
- v1.8.0
- v1.7.0
- v1.6.0
- v1.5.0
- v1.4.0
- v1.3.1
- v1.3.0
- v1.2.0
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.0
- dev-dependabot/composer/symfony/browser-kit-tw-5.3.4
- dev-dependabot/composer/phpspec/phpspec-tw-7.1.0
- dev-dependabot/composer/symfony/dotenv-tw-5.3
- dev-dependabot/composer/symfony/debug-bundle-tw-5.1.11
- dev-dependabot/composer/symfony/web-profiler-bundle-tw-5.0.11
- dev-dependabot/composer/sensiolabs/security-checker-tw-6.0
This package is auto-updated.
Last update: 2024-09-10 14:51:07 UTC
README
插件通过 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
。