phil / commerce-reports-bundle
Know what sells and what sits on the shelf: gross and net sales by product, category, channel, location and cashier, sell-through and dead stock reports.
Package info
github.com/parler-haut-interagir-librement/commerce-reports-bundle
Type:symfony-bundle
pkg:composer/phil/commerce-reports-bundle
Requires
- php: >=8.5
- ext-mbstring: *
- phil/commerce-bundle: ^0.5@dev
- phil/money: ^0.1@dev
- phil/reporting-bundle: ^0.1@dev || ^0.2@dev
- psr/clock: ^1.0
- symfony/config: ^8.2
- symfony/dependency-injection: ^8.2
Requires (Dev)
- phil/commerce-logistics-bundle: ^0.2@dev
- phil/commerce-pos-bundle: ^0.1@dev
- phpunit/phpunit: ^13.4
- psr/log: ^3.0
- symfony/clock: ^8.2
- symfony/event-dispatcher: ^8.2
- symfony/framework-bundle: ^8.2
- symfony/http-kernel: ^8.2
Suggests
- phil/commerce-logistics-bundle: To read the stock figures from the stock journal
- phil/commerce-pos-bundle: To read the lines sold at the point of sale
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-25 13:21:44 UTC
README
Know what sells and what sits on the shelf: gross and net sales by product, category, channel, location and cashier, sell-through and dead stock reports.
phil/commerce-reports-bundle is a Symfony bundle. It adds three reports to phil/reporting-bundle — exported as CSV, TSV or JSON, scheduled and delivered by that bundle — and reads the commerce modules through ports of its own: the lines sold, the lines returned, the stock figures of a SKU and the SKUs in stock.
Status
| Part | State |
|---|---|
Gross and net sales by product, category, channel, location and cashier, one row per currency (commerce_sales) |
Implemented |
Sell-through in parts per million, by SKU and by category (commerce_sell_through) |
Implemented |
Dead stock after a number of days without a sale (commerce_dead_stock) |
Implemented |
The ports SoldLines, ReturnedLines, StockFigures, StockedSkus, with memory adapters |
Implemented |
The lines sold at the point of sale (PosSoldLines) and the stock figures of the logistics module (LogisticsStockFigures) |
Implemented |
| Margin, cost of goods sold, turnover, days of stock, gross margin return on inventory and shrinkage | Planned: they need the cost of the stock, which the logistics module does not record yet |
| Sales and stock split by owner of the stock, for consignment | Planned |
Documentation
| Document | What it covers |
|---|---|
| Installation | Requirements, installing, and connecting the ports. |
| Configuration | Every option, with an example. |
| The reports | Each report, its parameters, its columns and its formulas. |
| Extension points | The ports, the adapters that ship with the bundle, and what each module does not list yet. |
| Testing | The bundle's tests. |
| Reference | Every class and service of the bundle. |
Quick start
// config/bundles.php Phil\ReportingBundle\PhilReportingBundle::class => ['all' => true], Phil\CommerceReportsBundle\PhilCommerceReportsBundle::class => ['all' => true],
# config/packages/phil_commerce_reports.yaml phil_commerce_reports: dead_stock_days: 90
bin/console phil:reporting:export commerce_sales --period=last_month --output=var/sales.csv
Requirements
PHP 8.5 or later and Symfony 8.2 or later.
Contributing
Contributions are welcome on the PHIL monorepo: read the contribution guide and the code of conduct. Report a vulnerability privately, as the security policy explains, never in a public issue.
License
MIT, © Philippe Gamache, doing business as Le Gnome Archiviste; a Parler Haut Interagir Librement project. See LICENSE.