ikuzostudio / avis-verifies-plugin
Integrate AvisVerifies (NetReviews) into Sylius.
Installs: 1 010
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:sylius-plugin
Requires
- php: ^8.0
- sylius/sylius: ^1.11
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-debug-extension: ^2.0.0
- 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
- friendsofsymfony/oauth-server-bundle: ^1.6 || >2.0.0-alpha.0 ^2.0@dev
- phpspec/phpspec: ^7.0
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: 0.12.99
- phpstan/phpstan-doctrine: 0.12.33
- phpstan/phpstan-strict-rules: ^0.12.0
- phpstan/phpstan-webmozart-assert: 0.12.12
- phpunit/phpunit: ^9.5
- polishsymfonycommunity/symfony-mocker-container: ^1.0
- sensiolabs/security-checker: ^6.0
- sylius-labs/coding-standard: ^4.0
- symfony/browser-kit: ^5.4
- symfony/debug-bundle: ^5.4
- symfony/dotenv: ^5.4
- symfony/intl: ^5.4
- symfony/web-profiler-bundle: ^5.4
- vimeo/psalm: 4.7.1
This package is auto-updated.
Last update: 2024-10-21 14:05:29 UTC
README
Avis Vérifies (NetReviews) Plugin
Integrate AvisVérifiés (NetReviews) into Sylius.
/!\ Currently in alpha /!\
Quickstart
$ composer require ikuzostudio/avis-verifies-plugin
Add plugin dependencies to your config/bundles.php
file:
return [ // ... Ikuzo\SyliusAvisVerifiesPlugin\IkuzoSyliusAvisVerifiesPlugin::class => ['all' => true], ];
Import required config in your config/packages/_sylius.yaml
file:
# config/packages/_sylius.yaml imports: ... - { resource: "@IkuzoSyliusAvisVerifiesPlugin/Resources/config/app/config.yaml"}
Extend your Order entity
// [...] use Sylius\Component\Core\Model\Order as BaseOrder; use Ikuzo\SyliusAvisVerifiesPlugin\Model\AvisVerifiesOrderInterface; use Ikuzo\SyliusAvisVerifiesPlugin\Model\AvisVerifiesOrderTrait; /** * @ORM\Table(name="sylius_order") * @ORM\Entity() */ class Order extends BaseOrder implements AvisVerifiesOrderInterface { use AvisVerifiesOrderTrait; }
Extend your Channel entity
// [...] use Sylius\Component\Core\Model\Channel as BaseChannel; use Ikuzo\SyliusAvisVerifiesPlugin\Model\AvisVerifiesChannelInterface; use Ikuzo\SyliusAvisVerifiesPlugin\Model\AvisVerifiesChannelTrait; /** * @ORM\Table(name="sylius_channel") * @ORM\Entity() */ class Channel extends BaseChannel implements AvisVerifiesChannelInterface { use AvisVerifiesChannelTrait; }
Extend your ProductReview entity
// [...] use Sylius\Component\Core\Model\ProductReview as BaseProductReview; use Ikuzo\SyliusAvisVerifiesPlugin\Model\AvisVerifiesProductReviewTrait; use Ikuzo\SyliusAvisVerifiesPlugin\Model\AvisVerifiesProductReviewInterface; /** * @ORM\Table(name="sylius_product_review") * @ORM\Entity() */ class ProductReview extends BaseProductReview implements AvisVerifiesProductReviewInterface { use AvisVerifiesProductReviewTrait; }
Import routes
# config/routes.yaml ikuzo_avis_verifies_plugin: resource: "@IkuzoSyliusAvisVerifiesPlugin/Resources/config/routing.yaml"
Update your database
$ bin/console doctrine:schema:update --force
Then configure your credentials from channel form