workouse / popup-sylius
Popup plugin Bundle for Sylius E-Commerce.
Installs: 1 155
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 4
Open Issues: 0
Type:sylius-plugin
Requires
- php: ^7.3
- friendsofsymfony/ckeditor-bundle: ^1.1|^2.0
- sylius/sylius: ^1.7
Requires (Dev)
- behat/behat: ^3.6.1
- behat/mink-selenium2-driver: ^1.4
- dmore/behat-chrome-extension: ^1.3
- dmore/chrome-mink-driver: ^2.7
- friends-of-behat/mink: ^1.8
- friends-of-behat/mink-browserkit-driver: ^1.4
- friends-of-behat/mink-extension: ^2.4
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.0
- friends-of-behat/symfony-extension: ^2.1
- friends-of-behat/variadic-extension: ^1.3
- lakion/mink-debug-extension: ^1.2.3
- phpspec/phpspec: ^6.1
- phpstan/phpstan: 0.12.25
- phpstan/phpstan-doctrine: 0.12.13
- phpstan/phpstan-webmozart-assert: 0.12.4
- phpunit/phpunit: ^8.5
- sensiolabs/security-checker: ^6.0
- sylius-labs/coding-standard: ^3.1
- symfony/browser-kit: ^4.4
- symfony/debug-bundle: ^4.4|^5.0
- symfony/dotenv: ^4.4|^5.0
- symfony/intl: ^4.4|^5.0
- symfony/web-profiler-bundle: ^4.4|^5.0
- symfony/web-server-bundle: ^4.4|^5.0
- vimeo/psalm: 3.11.4
Conflicts
- symfony/browser-kit: 4.1.8
- symfony/dependency-injection: 4.1.8
- symfony/dom-crawler: 4.1.8
- symfony/routing: 4.1.8
- symfony/symfony: 4.1.8
This package is auto-updated.
Last update: 2024-07-18 04:53:41 UTC
README
Popup Bundle for Sylius E-Commerce. Allows you to create simple popups.
Installation
$ composer require workouse/popup-sylius
Add plugin dependencies to your config/bundles.php
file:
return [ ... FOS\CKEditorBundle\FOSCKEditorBundle::class => ['all' => true], // WYSIWYG editor Workouse\PopupPlugin\WorkousePopupPlugin::class => ['all' => true], ];
The first line above (FOSCKEditorBundle) might have been already added during composer require command.
Install WYSIWYG editor (FOS CKEditor)
$ bin/console ckeditor:install
Since FOSCKEditorBundle 2.0, to make Twig render the WYSIWYG editor, you must add some configuration under the twig.form_themes
config key:
# Symfony 2/3: app/config/config.yml # Symfony 4: config/packages/twig.yaml twig: form_themes: - '@FOSCKEditor/Form/ckeditor_widget.html.twig'
Import required config in your config/packages/_sylius.yaml
file:
# config/packages/_sylius.yaml imports: ... - { resource: "@WorkousePopupPlugin/Resources/config/config.yml" }
Import routing in your config/routes.yaml
file:
# config/routes.yaml ... workouse_popup_plugin: resource: "@WorkousePopupPlugin/Resources/config/routing.yml"
Finish the installation by updating the database schema and installing assets:
$ bin/console doctrine:migrations:diff
$ bin/console doctrine:migrations:migrate
$ bin/console assets:install --symlink
$ bin/console sylius:theme:assets:install --symlink
$ bin/console cache:clear
Testing & running the plugin
$ composer install $ cd tests/Application $ yarn $ yarn build $ bin/console assets:install public -e test $ bin/console doctrine:database:create -e test $ bin/console doctrine:schema:create -e test $ bin/console server:run 127.0.0.1:8080 -d public -e test $ open http://localhost:8080 $ vendor/bin/behat