Download the PHP package tmonier/sylius-b2b-predictive-analytics-plugin without Composer

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

Sylius B2B Predictive Analytics Plugin

Français : README.fr.md

Predictive reorder analytics for Sylius 2 B2B: calculates reorder patterns per company and product reference to anticipate purchase needs before stock runs out.

Built on tmonier/sylius-company-accounts-plugin (companies, members, roles) and tmonier/sylius-company-insights-plugin (purchasing dashboard).

What it does

Prerequisites

Installation

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

  2. Run migrations to create the predictions table:

  3. Import the routes in config/routes.yaml:

Usage

Reorder alerts in customer account

The plugin automatically displays a "To reorder soon" block in the customer area for product references with expected reorder date within the next 7 days (including overdue items up to one median interval).

Each alert offers:

Company isolation is strict: a buyer only sees alerts from their own company.

Calculate a prediction

Scheduled recalculation

The plugin includes a command to recalculate all predictions:

This command can be scheduled daily via cron:

Screenshots

The "Reorder soon" block of the customer account, in the Sylius B2B demo:

Calculation rules

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


All versions of sylius-b2b-predictive-analytics-plugin with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
sylius/sylius Version ^2.2.9 || ^2.3
tmonier/sylius-company-accounts-plugin Version ^1.1
tmonier/sylius-company-insights-plugin Version ^0.2
twig/intl-extra Version ^3.21
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-b2b-predictive-analytics-plugin contains the following files

Loading the files please wait ...