monsieurbiz / sylius-sales-reports-plugin
A simple plugin to have sales reports in Sylius
Installs: 20 785
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 7
Forks: 13
Open Issues: 4
Type:sylius-plugin
Requires
- php: ^8.0
- sylius/sylius: >=1.11 <1.14
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.16
- phpmd/phpmd: ^2.15
- phpspec/phpspec: ^7.0
- phpstan/phpstan: ^1.8.4
- phpstan/phpstan-doctrine: ^1.3.2
- phpstan/phpstan-webmozart-assert: ^1.1
- phpunit/phpunit: ^10.5
This package is auto-updated.
Last update: 2024-12-27 09:00:03 UTC
README
Sylius Sales Reports
A simple plugin to have sales reports in Sylius
Compatibility
Installation
If you want to use our recipes, you can configure your composer.json by running:
composer config --no-plugins --json extra.symfony.endpoint '["https://api.github.com/repos/monsieurbiz/symfony-recipes/contents/index.json?ref=flex/master","flex://defaults"]'
composer require monsieurbiz/sylius-sales-reports-plugin
Change your config/bundles.php
file to add the line for the plugin :
<?php return [ //.. MonsieurBiz\SyliusSalesReportsPlugin\MonsieurBizSyliusSalesReportsPlugin::class => ['all' => true], ];
Finally import the routes in config/routes/monsieurbiz_sylius_sales_reports_plugin.yaml
:
monsieurbiz_sales_reports_plugin: resource: "@MonsieurBizSyliusSalesReportsPlugin/Resources/config/routing.yaml"
Reports
All reports columns are sortable by clicking on it.
Global sales report
Average sales report
Product report
Product variant report
Option report
Option value report
Add your custom reports !
An event is available to add your custom reports, see CustomReportEvent
class in the plugin.
Contributing
You can open an issue or a Pull Request if you want! 😘
Thank you!