Download the PHP package tmonier/sylius-customer-asset-management-plugin without Composer

On this page you can find all versions of the php package tmonier/sylius-customer-asset-management-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-customer-asset-management-plugin

Sylius Customer Asset Management Plugin

Français : README.fr.md

A B2B customer declares the equipment they own ("Truck model X, plate AB-123-CD") in their account, and the catalogue can be filtered to the spare parts compatible with it. Behaviour: SPEC.md; decisions: docs/adr/.

Status: 0.1.1 released on Packagist.

Requirements

Supported
PHP 8.2, 8.3, 8.4, 8.5
Sylius 2.2 (2.2.9+) and 2.3
Symfony 6.4, 7.4, 8.0 (8.0 with Sylius 2.3)
Database MySQL 8.4, MariaDB 11.4, PostgreSQL 17

Installation

Register the bundle in config/bundles.php:

Import the configuration in config/packages/_sylius.yaml and the routes in config/routes.yaml:

Run the migrations (the plugin prepends its own to the Doctrine migrations configuration):

Configuration

Administration: equipment models and compatibility

Catalog > Equipment models lists, creates, edits and deletes the equipment models (a code, up to 64 characters and unique, and a name per language). The code cannot be changed once the model exists. A model without a name in the language of the administration is shown by its code.

On the form of a product variant, Compatible equipment models ticks the models the variant fits. Compatibility is per variant, not per product. Deleting a model removes its compatibility links and never the variants. The list shows how many variants each model has.

To restrict the screens, set admin_role to a role of your own (for example ROLE_EQUIPMENT_MANAGER) and give it to the administrators concerned: the others get a 403 on the model screens and do not see the field on the variant form.

Customer account: "My equipment"

A signed-in customer finds My equipment in the menu of their account (/{_locale}/account/equipment): list, add, edit and delete their machines (equipment model, label, plate or serial number of up to 40 characters); a deletion is confirmed on a page of its own first. A customer can declare up to max_assets_per_customer machines.

Catalogue: "Compatible with my equipment"

On the listing of a category (and on its search), a signed-in customer whose fleet is not empty gets a Compatible with my equipment control above the products. They choose All my equipment (the default once the filter is enabled), one machine, or All parts to remove the filter. The listing then only shows the products that have an enabled variant compatible with the chosen machine(s). The choice is kept in the session, so it follows the customer from page to page and category to category, and it is in the URL (?equipment=all or ?equipment=<uuid of the machine>), so the pagination and the sorting keep it.

Screenshots

Development

Requirements: PHP 8.2+, Composer, a MySQL database (see tests/TestApplication/.env).

B2B demo

This plugin is used in the Sylius B2B demo: a Sylius 2.3 shop with fictitious sample data where the B2B plugins work together. The source code, setup and fixtures of the demo are in that repository.

The demo is an example, not a production setup.

License

MIT, see LICENSE.


All versions of sylius-customer-asset-management-plugin with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
sylius/sylius Version ^2.2.9 || ^2.3
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 tmonier/sylius-customer-asset-management-plugin contains the following files

Loading the files please wait ...