Download the PHP package adriana/sylius-impersonator-plugin without Composer

On this page you can find all versions of the php package adriana/sylius-impersonator-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-impersonator-plugin

User Impersonator Plugin

Documentation

This is a simple Sylius Plugin designed to help administrators to know when they impersonated a customer within the shop. This hint consists in showing the string: Impersonated by {impersonator_username} in the shop banner, near the customer's name and on the checkout page.

Quickstart Installation

  1. Run composer require adriana/sylius-impersonator-plugin.

  2. Enable the plugin in config/bundles.php:

  3. Ensure you have modified resource configured in config/packages/_sylius.yaml:

  4. Execute migrations in order to have the new field show_user_impersonate_hint inside the channel table:

  5. Add EvoUserImpersonatorChannelTrait in your Channel entity and implement interface EvoUserImpersonatorChannelInterface:

  6. Ensure you have modified resource configured in config/packages/_sylius.yaml:

  7. Add translations path in order to use translations in config/translation.yaml:

  8. In order to run Behat tests ensure you have modified your behat.yml and configured:

Usage

Check Admin panel, channels options - edit one channel and the Show user impersonate hint option should appear and should be enabled by default.

After that you can impersonate a customer and the Impersonated by {impersonator_username} hint should appear in the shop.

This plugin has a Twig Extension that you can use in any template you need in order to show the "impersonated by" hint. You can use this extension by calling:

{{ "sylius.user_impersonator.hint"|trans({"{{impersonator_username}}": userImpersonatorHint()}) }}

And you can also make use of the Service created in Evo\SyliusUserImpersonatorPlugin\Service\CheckUserImpersonator which you can inject into your application and call its public methods.

Run Behat Tests

Configure Services path in config/services_test.yaml:

Run tests with: APP_ENV=test vendor/bin/behat --suite=adriana_user_impersonator


All versions of sylius-impersonator-plugin with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
sylius/sylius Version ^1.12
symfony/webpack-encore-bundle Version ^1.15
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 adriana/sylius-impersonator-plugin contains the following files

Loading the files please wait ....