Download the PHP package calmfox/sylius-admin-invitation-plugin without Composer

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

Sylius Admin Invitation Plugin

Build

Invite administrators to the Sylius 2 panel by e-mail instead of handing out passwords. Type an address, and the invitee receives a link. On the linked page they set their own name and a strong password, and then land in the panel already logged in.

Features

Screenshots

Administrators gets an Invite button and a Send a password reset link action; the invite form asks only for an e-mail:

Administrators grid with the Invite button Invite administrator form

The invitee gets an e-mail and sets their own name and a strong password, with a generator at hand:

Invitation e-mail Account setup page with a generated password A weak password is rejected

The administrator's edit page gets an Account access card:

Account access card

Requirements

Version
PHP 8.2, 8.3, 8.4, 8.5
Sylius 2.1, 2.2
Symfony 7.1 or newer

Installation

  1. Require the package:

  2. Register the bundle in config/bundles.php:

  3. Import the configuration, e.g. in config/packages/calmfox_sylius_admin_invitation.yaml:

  4. Import the routes, e.g. in config/routes/calmfox_sylius_admin_invitation.yaml:

  5. Clear the cache: bin/console cache:clear.

Configuration

All options are optional; these are the defaults:

Appearance

The plugin looks native. To give it your own look, change your application and leave the plugin untouched:

Extending

How it works

The invite route reuses Sylius' sylius.controller.admin_user::createAction with event: invite. Once the account is saved, a listener on sylius.admin_user.post_invite sends the e-mail. If the mail cannot be sent, the account is kept, and the panel explains how to resend the invitation.

The acceptance page looks the account up by token and checks that it is still pending (disabled, no password) and not expired. It then stores the name and the hashed password, clears the token, enables the account and logs the user in with Security::login().

Development

Tests run against Sylius Test Application with MySQL:

The database defaults to root:[email protected]. To use a different one, set DATABASE_URL in tests/TestApplication/.env.local.

Security

See SECURITY.md for how to report a vulnerability.

License

MIT


All versions of sylius-admin-invitation-plugin with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
sylius/sylius Version ^2.1
symfony/validator Version ^7.1
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 calmfox/sylius-admin-invitation-plugin contains the following files

Loading the files please wait ...