PHPackages                             thelia/product-api-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. [API Development](/categories/api)
4. /
5. thelia/product-api-module

ActiveThelia-module[API Development](/categories/api)

thelia/product-api-module
=========================

An API to get thelia product from reference.

2.0.3(1mo ago)03091LGPL-3.0-or-laterPHPCI passing

Since Aug 19Pushed 1mo ago5 watchersCompare

[ Source](https://github.com/thelia-modules/ProductApi)[ Packagist](https://packagist.org/packages/thelia/product-api-module)[ RSS](/packages/thelia-product-api-module/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (7)Used By (0)

Product API
===========

[](#product-api)

An API to get product from thelia based website with only the product's reference.

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

[](#installation)

### Manually

[](#manually)

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

Usage
-----

[](#usage)

You can get product's information in JSON by calling the url : **/api/product**.

You have to add hash (in SHA1) of the parameters and the api key, to your request.

Generate your hash like this : \[parameters\]\[API KEY\].

Exemple
-------

[](#exemple)

To get a product that has a reference of '*130010*' and your API key is '**ExRtVQjUCCBApuN4s4fPEQ6i5yggYvm2**', you have to generate your hash like this :

- *130010***ExRtVQjUCCBApuN4s4fPEQ6i5yggYvm2** =&gt; 11dff8469f6f751b03c0e20c0c132c20fd3141f3

Then you call the API like this :

- /api/product?ref=130010&amp;hash=11dff8469f6f751b03c0e20c0c132c20fd3141f3

If a product with this ref exists and your hash is correct, the API should give you all product's informations in JSON

### Input arguments

[](#input-arguments)

Arguments in **bold** are required. Arguments in *italic* are optionals.

ArgumentDescription**hash**The hash of the parameter and the API key*country*The country for the tax in ISO3*ref*The ref of the product (if you want to search a product with his ref)*id*The product's ID (if you want to search a product with his ID)

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance89

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.8% 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 ~510 days

Total

5

Last Release

55d ago

Major Versions

1.0.0 → 2.0.02023-03-20

### Community

Maintainers

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

---

Top Contributors

[![Cav0n](https://avatars.githubusercontent.com/u/29262187?v=4)](https://github.com/Cav0n "Cav0n (31 commits)")[![lopes-vincent](https://avatars.githubusercontent.com/u/6057206?v=4)](https://github.com/lopes-vincent "lopes-vincent (5 commits)")[![thomas-dsm](https://avatars.githubusercontent.com/u/84772220?v=4)](https://github.com/thomas-dsm "thomas-dsm (4 commits)")[![ThomasDaSilva](https://avatars.githubusercontent.com/u/97163246?v=4)](https://github.com/ThomasDaSilva "ThomasDaSilva (2 commits)")

### Embed Badge

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

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

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)[hubspot/api-client

Hubspot API client

23914.2M16](/packages/hubspot-api-client)[lstrojny/fxmlrpc

Fast and tiny XML/RPC client with bridges for various HTTP clients

1425.4M30](/packages/lstrojny-fxmlrpc)

PHPackages © 2026

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