PHPackages                             thelia/customer-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/customer-statistic-module

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

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

1.0.3(6y ago)04272[1 issues](https://github.com/thelia-modules/CustomerStatistic/issues)LGPL-3.0+PHP

Since Jun 14Pushed 4y ago4 watchersCompare

[ Source](https://github.com/thelia-modules/CustomerStatistic)[ Packagist](https://packagist.org/packages/thelia/customer-statistic-module)[ RSS](/packages/thelia-customer-statistic-module/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (1)Versions (6)Used By (0)

Customer Statistic
==================

[](#customer-statistic)

Give you statistics about the articles bought by a customer.

Screenshot
----------

[](#screenshot)

[![Take Customer Account Screenchot 1](https://github.com/thelia-modules/CustomerStatistic/raw/master/Screenshots/screenshot1.png)](https://github.com/thelia-modules/CustomerStatistic/blob/master/Screenshots/screenshot1.png)

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

[](#installation)

### Manually

[](#manually)

- Copy the module into `/local/modules/` directory and be sure that the name of the module is CustomerStatistic.
- Activate it in your thelia administration panel

### Composer

[](#composer)

Add it in your main thelia composer.json file

```
composer require thelia/customer-statistic-module:~1.0.3

```

Usage
-----

[](#usage)

Activate the module in the module list. A new row will then appear on customer edit pages, giving you statistics about the articles they bought.

Hook
----

[](#hook)

The customer.edit hook is used to attach the statistics to the customer edit page.

Loop
----

[](#loop)

\[customer.statistic.article.statistic\]

### Input arguments

[](#input-arguments)

ArgumentDescription**customer\_id**ID of the customer.### Output arguments

[](#output-arguments)

VariableDescription$PRODUCT\_IDID of the product$REFERENCEReference of the product$NAMEName of the product$UNIT\_PRICEPrice for a single unit of the product$QUANTITYQuantity of this product bought by the customer across all of his orders$TOTAL\_PRICE$QUANTITY \* $UNIT\_PRICE### Exemple

[](#exemple)

`{loop name="customer.statistic.article.statistic" type="article.statistic"}\{/loop}`

### Additionnal information

[](#additionnal-information)

A product "Total" with a $PRODUCT\_ID of -1 will be added in the loop, with the total turneover for the customer.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~167 days

Total

4

Last Release

2387d ago

### Community

Maintainers

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

---

Top Contributors

[![Lurivar](https://avatars.githubusercontent.com/u/33634597?v=4)](https://github.com/Lurivar "Lurivar (8 commits)")

### Embed Badge

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

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

PHPackages © 2026

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