PHPackages                             thelia/top-products-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. thelia/top-products-module

ActiveThelia-module

thelia/top-products-module
==========================

1.1.0(6y ago)0141[20 issues](https://github.com/thelia-modules/TopProducts/issues)[20 PRs](https://github.com/thelia-modules/TopProducts/pulls)LGPL-3.0+PHP

Since Aug 29Pushed 1mo ago5 watchersCompare

[ Source](https://github.com/thelia-modules/TopProducts)[ Packagist](https://packagist.org/packages/thelia/top-products-module)[ RSS](/packages/thelia-top-products-module/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (22)Used By (0)

TopProducts
===========

[](#topproducts)

This module allows to create selections of top products in category and brand.

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

[](#installation)

### Manually

[](#manually)

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

### Composer

[](#composer)

Add it in your main thelia composer.json file

```
composer thelia/top-products-module:~1.1.0

```

Usage
-----

[](#usage)

This module adds a new tab `Top products` in categories and brands where you can create selections and add products in selections.

To retrieve the products of a selections you can use the `top_product` loop.

The top\_products loop
----------------------

[](#the-top_products-loop)

### Input arguments

[](#input-arguments)

The `top_products` loop extend the loop `product`. All the arguments of the product loop are therefore available.

ArgumentDescription**top\_product\_id**The id of the selection**top\_product\_element\_key**The type of your selection (category or brand)**top\_product\_element\_id**The id of the element (category or brand)**top\_product\_selection\_code**The name of the selection### Output variables

[](#output-variables)

The output variables are the same as the loop `product`.

### Exemple

[](#exemple)

```
{loop
    type="top_product"
    name="top_product_loop"
    top_product_element_key="category"
    top_product_element_id=$category_id
    top_product_selection_code="my-selection"
}
...
{/loop}

```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance61

Regular maintenance activity

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

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

Unknown

Total

1

Last Release

2448d ago

### Community

Maintainers

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

---

Tags

productselectiontop

### Embed Badge

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

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

PHPackages © 2026

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