Search by

phil / commerce-reports-bundle

phil

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

Homepage

Type:symfony-bundle

pkg:composer/phil/commerce-reports-bundle

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.1.0-alpha 2026-11-24 22:00 UTC

This package is auto-updated.

Last update: 2026-11-25 13:21:44 UTC


README

OpenSSF Scorecard

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.