Download the PHP package monsieurbiz/sylius-plus-adapter-plugin without Composer

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

Sylius Plus Adapter Plugin

Menu Plugin license Tests Status Recipe Status Security Status

This plugin offer tools to adapt your plugins to Sylius Plus RBAC system.

Compatibility

Sylius Version PHP Version
1.11 8.0 - 8.1
1.12 8.1 - 8.2
1.13 8.1 - 8.2

Installation

How to use

To illustrate the following examples, we will use a Foo plugin with a MyResource resource.

Your resource entity

Your resource config

Add permissions on routes

It's a Sylius native feature, you don't have to install this plugin!
You just have to add permission: true on your route definition.
If you do this, your route will become available on the permission tree.

Example

Add channel restriction on resources

If you want to add channel restrictions on your channel related resources, you have to following theses 2 steps:

Example

Your plugin extension file

Filter resource grid with channel restriction

To filter the resource grid with channel restriction, you need to include the \MonsieurBiz\SyliusPlusAdapterPlugin\DependencyInjection\SyliusPlusCompatibilityTrait trait in your bundle extension class and call the replaceInGridOriginalQueryBuilderWithChannelRestrictedQueryBuilder method in the prepend method.
The goal of this is to replace the original query builder of the grid with a new one that call the original one but will filter the resources with the current channel if needed.

Configuring this is tricky so follow the example below.

Example

Your current resource grid config

Your plugin extension file

Filter channel choice type with channel restriction

To filter the channel choice type with channel restriction, you need to include the \MonsieurBiz\SyliusPlusAdapterPlugin\DependencyInjection\SyliusPlusCompatibilityTrait and call the enabledFilteredChannelChoiceType method in the load method.

Example

Your current resource form type

Your plugin extension file

Development

Because this plugin is a kind of sidekick for your plugins, it's not intended to be used in a standalone project.
Even more because it requires Sylius Plus to be useful. Our traditional test application then seems useless.

But to be fair, we still added a test app with our CMS plugin installed and configured to use the SyliusPlusCompatibilityTrait trait.
It would be useful to be sure that everything is working as expected in a normal Sylius even if this plugin is installed and used.

License

This plugin is under the MIT license. Please see the LICENSE file for more information.


All versions of sylius-plus-adapter-plugin with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
sylius/sylius Version >=1.11 <1.14
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 monsieurbiz/sylius-plus-adapter-plugin contains the following files

Loading the files please wait ....