PHPackages                             thelia/statistic-module - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. thelia/statistic-module

ActiveThelia-module[Utility &amp; Helpers](/categories/utility)

thelia/statistic-module
=======================

2.0.3(10mo ago)13.7k14[2 issues](https://github.com/thelia-modules/Statistic/issues)[1 PRs](https://github.com/thelia-modules/Statistic/pulls)PHPCI passing

Since May 31Pushed 2w ago4 watchersCompare

[ Source](https://github.com/thelia-modules/Statistic)[ Packagist](https://packagist.org/packages/thelia/statistic-module)[ RSS](/packages/thelia-statistic-module/feed)WikiDiscussions main Synced today

READMEChangelog (10)DependenciesVersions (28)Used By (0)

Statistic
=========

[](#statistic)

Show statistic of customer, sales and products. It also provides the Hook to insert other statistics.

Installation
------------

[](#installation)

### Manually

[](#manually)

- Copy the module into &lt;thelia\_root&gt;/local/modules directory and be surethat the name of the module is `Statistic`.
- Activate it in your thelia administration.

Usage
-----

[](#usage)

This module is available in the backoffice, `Tool` menu, submenu `Statistic`. It includes 3 tabs :

- Clients, clients general statistics - New Clients and First Order-,
- Sales and products, sales and products general statistics - Average cart, Best Sales, Discount code, Means of transport, Means of payment and Annual turnover -,
- Product details, product statistics - Share of turnover and Sales number -.

Hook
----

[](#hook)

This module provides two hooks to insert statistic tab and JS file :

`statistic.tab` type `back`, event is `HookRenderBlockEvent` type and parameters are :

- tab\_id, tab identifying,
- tab\_nav\_titl, tab title,
- content, HTML file ($this-&gt;render(...)) to insert in tab.

`statistic.footer.js type `back`, event is `HookRenderEvent`, it is used to insert JS, like that :

```
$jsFile = $this->addJS('path_to_file.js');
$event->add($jsFile);

```

Statistic
=========

[](#statistic-1)

Affichage de statistique sur les client, les ventes et les produits. Il fournit aussi les Hook pour insérer d'autre statistiques.

Installation
------------

[](#installation-1)

\### Manuellement

- Copier le module dans le dossier &lt;thelia\_root&gt;/local/modules et s'assurer que le nom du module soit bien `Statistic`,
- Activer le module dans le paneau d'administration Thelia.

Usage
-----

[](#usage-1)

Ce module est accessible dans le backOffice, menu `Outil`, sous-menu `Statistique`. Il comporte 3 onglets :

- Clients, statistiques générales sur les clients - Nouveaux clients et Première commande -,
- Ventes et produits, statistiques générales sur les ventes et produits - Panier moyen, Meilleurs ventes, Code promotionnel, Moyen de transport, Moyen de paiement et Chiffre d'affaire annuel -,
- Détail par produit, statistiques par produits - Part du chiffre d'affaire et Nombre de vente.

Hook
----

[](#hook-1)

Ce module fournit deux Hooks pour insérer un onglet de statistiques et son fichier JS associé :

`statistic.tab` de type `back`, l'événement est de type `HookRenderBlockEvent` et les paramètres sont :

- tab\_id, identifiant du onglet,
- tab\_nav\_title, titre du onglet,
- content, le fichier HTML ($this-&gt;render(...)) à insérer dans le onglet.

`statistic.footer.js` de type `back`, l'événement est de type `HookRenderEvent`, il sert à insérer le JS comme suit :

```
$jsFile = $this->addJS('path_to_file.js');
$event->add($jsFile);

```

###  Health Score

48

—

FairBetter than 93% of packages

Maintenance58

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~110 days

Recently: every ~332 days

Total

25

Last Release

303d ago

Major Versions

0.3.2 → 1.0.02019-07-18

1.2.14 → 2.0.02022-10-26

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2196919?v=4)[thelia](/maintainers/thelia)[@thelia](https://github.com/thelia)

---

Top Contributors

[![zawaze](https://avatars.githubusercontent.com/u/37273643?v=4)](https://github.com/zawaze "zawaze (18 commits)")[![Lurivar](https://avatars.githubusercontent.com/u/33634597?v=4)](https://github.com/Lurivar "Lurivar (11 commits)")[![CarnezEnzo](https://avatars.githubusercontent.com/u/55233227?v=4)](https://github.com/CarnezEnzo "CarnezEnzo (8 commits)")[![roadster31](https://avatars.githubusercontent.com/u/2197734?v=4)](https://github.com/roadster31 "roadster31 (6 commits)")[![julescournut](https://avatars.githubusercontent.com/u/26310511?v=4)](https://github.com/julescournut "julescournut (5 commits)")[![lopes-vincent](https://avatars.githubusercontent.com/u/6057206?v=4)](https://github.com/lopes-vincent "lopes-vincent (3 commits)")[![gillesbourgeat](https://avatars.githubusercontent.com/u/7335734?v=4)](https://github.com/gillesbourgeat "gillesbourgeat (3 commits)")[![Alexandrebothamy](https://avatars.githubusercontent.com/u/35794491?v=4)](https://github.com/Alexandrebothamy "Alexandrebothamy (2 commits)")[![NicolasBarbey](https://avatars.githubusercontent.com/u/26166378?v=4)](https://github.com/NicolasBarbey "NicolasBarbey (1 commits)")[![thomas-dsm](https://avatars.githubusercontent.com/u/84772220?v=4)](https://github.com/thomas-dsm "thomas-dsm (1 commits)")[![Cav0n](https://avatars.githubusercontent.com/u/29262187?v=4)](https://github.com/Cav0n "Cav0n (1 commits)")

### Embed Badge

![Health badge](/badges/thelia-statistic-module/health.svg)

```
[![Health](https://phpackages.com/badges/thelia-statistic-module/health.svg)](https://phpackages.com/packages/thelia-statistic-module)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
