setono / sylius-google-optimize-plugin
Setono example plugin for Sylius.
Installs: 34
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 11
Type:sylius-plugin
Requires
- php: >=7.4
- ext-json: *
- doctrine/collections: ^1.6
- doctrine/persistence: ^1.3 || ^2.3
- knplabs/knp-menu: ^3.3
- setono/bot-detection-bundle: ^1.6
- setono/doctrine-object-manager-trait: ^1.1
- sylius/resource-bundle: ^1.8
- symfony/config: ^4.4 || ^5.4
- symfony/dependency-injection: ^4.4 || ^5.4
- symfony/event-dispatcher: ^4.4 || ^5.4
- symfony/form: ^4.4 || ^5.4
- symfony/http-foundation: ^4.4 || ^5.4
- symfony/http-kernel: ^4.4 || ^5.4
- symfony/options-resolver: ^4.4 || ^5.4
- symfony/routing: ^4.4 || ^5.4
- twig/twig: ^2.14
- webmozart/assert: ^1.11
Requires (Dev)
- api-platform/core: ^2.6
- friendsofsymfony/oauth-server-bundle: >2.0.0-alpha.0 ^2.0@dev
- lexik/jwt-authentication-bundle: ^2.15
- matthiasnoback/symfony-config-test: ^4.3
- matthiasnoback/symfony-dependency-injection-test: ^4.3
- phpspec/prophecy-phpunit: ^2.0
- phpunit/phpunit: ^9.5
- psalm/plugin-phpunit: ^0.16
- psalm/plugin-symfony: ^3.1
- roave/security-advisories: dev-latest
- setono/code-quality-pack: ^2.2.0
- setono/google-analytics-server-side-tracking-bundle: ^0.3.5
- sylius/admin-api-bundle: ^1.11
- sylius/sylius: ~1.10.14
- symfony/debug-bundle: ^4.4 || ^5.4
- symfony/dotenv: ^4.4 || ^5.4
- symfony/intl: ^4.4 || ^5.4
- symfony/property-info: ^4.4 || ^5.4
- symfony/serializer: ^4.4 || ^5.4
- symfony/web-profiler-bundle: ^4.4 || ^5.4
- symfony/webpack-encore-bundle: ^1.14
- dev-master / 1.0.x-dev
- v0.1.0-beta
- dev-dependabot/composer/lexik/jwt-authentication-bundle-tw-2.18
- dev-dependabot/composer/doctrine/persistence-tw-2.5.7
- dev-dependabot/composer/setono/code-quality-pack-tw-2.4.0
- dev-dependabot/composer/setono/bot-detection-bundle-tw-1.9
- dev-dependabot/composer/psalm/plugin-phpunit-tw-0.18
- dev-dependabot/composer/psalm/plugin-symfony-tw-4.0
- dev-dependabot/composer/doctrine/collections-tw-1.8
- dev-dependabot/composer/api-platform/core-tw-2.7
- dev-dependabot/composer/setono/google-analytics-server-side-tracking-bundle-tw-0.3.9
- dev-dependabot/composer/twig/twig-tw-2.15
This package is auto-updated.
Last update: 2024-12-13 13:23:42 UTC
README
Integrate Google Optimize with your Sylius store the right way!
Installing the plugin
composer require setono/sylius-google-optimize-plugin
Enabling the plugin
If you have Flex enabled the composer require
will automatically add the bundles and the plugin to bundles.php
.
If not you should manually add them:
// ... Setono\SyliusGoogleOptimizePlugin\SetonoSyliusGoogleOptimizePlugin::class => ['all' => true], Sylius\Bundle\GridBundle\SyliusGridBundle::class => ['all' => true], // ...
NOTICE: It's important that you add the plugin before the SyliusGridBundle
.
Add configuration file
Create the file config/packages/setono_sylius_google_optimize.yaml
and add the following:
# config/packages/setono_sylius_google_optimize.yaml imports: - { resource: "@SetonoSyliusGoogleOptimizePlugin/Resources/config/app/config.yaml" }
Include routes configuration
Create the file config/routes/setono_sylius_google_optimize.yaml
and add the following:
# config/routes/setono_sylius_google_optimize.yaml setono_sylius_google_optimize: resource: "@SetonoSyliusGoogleOptimizePlugin/Resources/config/routes.yaml"
The plugin also provides a routes file for non localized stores. All you do is to use
@SetonoSyliusGoogleOptimizePlugin/Resources/config/routes_no_locale.yaml
instead of
@SetonoSyliusGoogleOptimizePlugin/Resources/config/routes.yaml