PHPackages                             prestashop/module-lib-faq - 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. prestashop/module-lib-faq

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

prestashop/module-lib-faq
=========================

Library allowing modules to load FAQ from PrestaShop servers

v2.2(3y ago)034.7k2AFL-3.0PHPPHP ^7.2 || ^8.0

Since Oct 15Pushed 3y ago5 watchersCompare

[ Source](https://github.com/PrestaShopCorp/module-lib-faq)[ Packagist](https://packagist.org/packages/prestashop/module-lib-faq)[ RSS](/packages/prestashop-module-lib-faq/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (5)Versions (6)Used By (0)

PrestaShop module library for FAQ
=================================

[](#prestashop-module-library-for-faq)

This library retrieves the FAQ (Frequently Asked Questions) content from PrestaShop APIs.

It is most likely to be used in PrestaShop modules, but can be integrated in any PHP project.

This library is compatible with PHP 5.6 and above.

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

[](#installation)

```
composer require prestashop/module-lib-faq

```

Usage
-----

[](#usage)

- Common case

    The simplest way to use this library is:

    ```
    use PrestaShop\ModuleLibFaq\Faq;

    // [...]

    $faq = new Faq('your module key', _PS_VERSION, 'the current iso code');
    $faqContent = $faq->getFaq();
    ```
- With additional code to run in case of error

    ```
    use PrestaShop\ModuleLibFaq\Faq;

    // [...]

    $faq = new Faq('your module key', _PS_VERSION, 'the current iso code');
    $faq->setErrorCallable(function(\Exception $e) { /* send to logger */ });
    $faqContent = $faq->getFaq();
    ```

The content returned is an array of categories, each of them having an array of questions/answers.

Example of json that will be `json_decode`d by the library:

```
{
    "id_faq": 117,
    "module_key": "82bc76354cfef947e06f1cc78f5efe2e",
    "id_product": 46347,
    "categories": [
        {
            "id_faq_category": 142,
            "position": 1,
            "id_faq": 117,
            "title": "Questions about payments",
            "blocks": [
                {
                    "id_faq_block": 522,
                    "question": "Will my customers be able to see the PrestaShop Checkout payment method?",
                    "answer": "No, PrestaShop Checkout is the name of the service and the module. Your customers will only see the payment methods they are already familiar with including: credit card, PayPal, and/or another major payment method used in their country.",
                    "version_min": "",
                    "version_max": ""
                },
            ]
        },
        {
            "id_faq_category": 141,
            "position": 2,
            "id_faq": 117,
            "title": "Questions about refund feature",
            "blocks": [
                {
                    "id_faq_block": 521,
                    "question": "I am trying to issue a refund for a PrestaShop order, but an error message says, “Capture could not be refunded due to insufficient funds.” However, I know I have the funds in my PayPal account.",
                    "answer": "For refunds for an order paid for using a different currency than the ones available on your PayPal account, you have two options:\n\n- Adding all the currencies covered in your store to your PayPal account to avoid rejections of cross-currency transactions and any refund issues.\n\nTo do so, go to paypal.com > Login > Settings > My Money > Currencies management > Add a currency\n\n- Contacting PayPal and asking them to activate the cross-currency refund option. (Via the \"\"Contact us\"\" tab on paypal.com).",
                    "version_min": "",
                    "version_max": ""
                }
            ]
        }
    ]
}
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

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

Total

5

Last Release

1428d ago

Major Versions

v1.0 → v2.02022-06-20

PHP version history (2 changes)1.x-devPHP &gt;=5.6.0

v2.0PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15106407?v=4)[Jarvis](/maintainers/ps-jarvis)[@ps-jarvis](https://github.com/ps-jarvis)

---

Top Contributors

[![Quetzacoalt91](https://avatars.githubusercontent.com/u/6768917?v=4)](https://github.com/Quetzacoalt91 "Quetzacoalt91 (12 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/prestashop-module-lib-faq/health.svg)

```
[![Health](https://phpackages.com/badges/prestashop-module-lib-faq/health.svg)](https://phpackages.com/packages/prestashop-module-lib-faq)
```

###  Alternatives

[wata727/pahout

A pair programming partner for writing better PHP

4814.7k1](/packages/wata727-pahout)[simonstamm/laravel-pjax

PJAX for Laravel 4 with redirection-support

238.3k](/packages/simonstamm-laravel-pjax)

PHPackages © 2026

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