Download the PHP package setono/sylius-stock-movement-plugin without Composer
On this page you can find all versions of the php package setono/sylius-stock-movement-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download setono/sylius-stock-movement-plugin
More information about setono/sylius-stock-movement-plugin
Files in setono/sylius-stock-movement-plugin
Package sylius-stock-movement-plugin
Short Description Plugin to handle stock related activities
License MIT
Informations about the package sylius-stock-movement-plugin
Sylius Stock Movement Plugin
Log all stock movements in your shop. You can use this to create very accurate reports of your inventory movements.
Installation
Step 1: Download the plugin
Open a command console, enter your project directory and execute the following command to download the latest stable version of this plugin:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the plugin
Then, enable the plugin by adding it to the list of registered plugins/bundles
in the config/bundles.php
file of your project:
NOTE that you must instantiate the plugin before the grid bundle, else you will see an exception like You have requested a non-existent parameter "setono_sylius_stock_movement.model.report_configuration.class".
Step 3: Import routing
Step 4: Configure plugin
Step 5: Update database schema
Use Doctrine migrations to create a migration file and update the database.
Step 6: Install assets
Step 7: Using asynchronous transport (optional, but recommended)
All commands in this plugin will extend the CommandInterface. Therefore you can route all commands easily by adding this to your Messenger config:
Step 8 (optional): Create or import fixtures
-
Import fixtures:
- Or create your own:
API
Create a stock movement on the variant variant-code
with a quantity of 1:
All versions of sylius-stock-movement-plugin with dependencies
league/flysystem-bundle Version ^1.1
psr/event-dispatcher Version ^1.0
ramsey/uuid Version ^3.8
setono/cron-expression-bundle Version ^1.0
sylius/resource-bundle Version ^1.6
sylius/sylius Version ^1.3
symfony/event-dispatcher Version ^4.3 || ^5.0
symfony/messenger Version ^4.3 || ^5.0
thecodingmachine/safe Version ^1.0