Download the PHP package societe-des-avis-garantis/sylius-sag-plugin without Composer

On this page you can find all versions of the php package societe-des-avis-garantis/sylius-sag-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sylius-sag-plugin

sylius-logo

Plugin SAG

Sylius SAG plugin by Dedi. Product review integration for Société des Avis Garantis

About Dedi

At Dedi, we do not just create websites. We are building together a real digital strategy to combine your business requirements with our technical skills. We've been working with open source for a long time and decided to start giving back to the community by contributing and sharing some plugin of our own. We’ll be happy to meet you, feel free to contact us. Learn more about us on our website.


Table of Content

Installation

Require plugin with composer:

Symfony Flex will automatically register and configure the config/bundles.php file to add the line for the plugin :

Configure Product

Your Product entity needs to implement the Dedi\SyliusSAGPlugin\Entity\Product\ProductInterface interface and use the Dedi\SyliusSAGPlugin\Entity\Product\ProductTrait trait.

Configure ProductReview

Your ProductReview entity needs to implement the Dedi\SyliusSAGPlugin\Entity\Review\ProductReviewInterface interface and use the Dedi\SyliusSAGPlugin\Entity\Review\ProductReviewTrait trait.

Your ProductReviewRepository repository needs to implement the Dedi\SyliusSAGPlugin\Repository\Review\ProductReviewRepositoryInterface interface and use the Dedi\SyliusSAGPlugin\Repository\Review\ProductReviewRepositoryTrait trait.

Don't forget to update the Sylius resource config accordingly.

Your ProductReviewFactory should implement Dedi\SyliusSAGPlugin\Factory\Review\ReviewFactoryInterface and use the Dedi\SyliusSAGPlugin\Factory\Review\ReviewFactoryTrait trait.

Don't forget to add the corresponding service.

Configure Order

Your OrderRepository repository needs to implement the Dedi\SyliusSAGPlugin\Repository\Order\OrderRepositoryInterface interface and use the Dedi\SyliusSAGPlugin\Repository\Order\OrderRepositoryTrait trait.

Don't forget to update the Sylius resource config accordingly.

Configure Channel

Your Channel entity needs to implement the Dedi\SyliusSAGPlugin\Entity\Channel\ChannelInterface interface and use the Dedi\SyliusSAGPlugin\Entity\Channel\ChannelTrait trait.

Create migration

Migrations are already provided by the plugin itself.

Templates

Override sylius default templates.

Overview

Product Index

This plugin adds the following features to your shop:

Product Show

On your product page, you will retrieve reviews from Societé des Avis Garantis with some statistics.

Admin Key Index

In the back office, a new entry "SAG Api keys" allows you to configure your shop with Société des Avis Garantis api.

Admin Channel configuration

The channel configuration form gets a new section where you can enable or disable the following parts on your shop:

Admin Reviews

Reviews are now not editable in the back office to comply with Société des Avis Garantis requirements.


All versions of sylius-sag-plugin with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
sylius/sylius Version ~1.11.0
symfony/http-client Version ^5.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package societe-des-avis-garantis/sylius-sag-plugin contains the following files

Loading the files please wait ....