PHPackages                             usesgraphcrt/yii2-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. usesgraphcrt/yii2-faq

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

usesgraphcrt/yii2-faq
=====================

Yii2 FAQ module

22021PHP

Since Mar 15Pushed 9y ago2 watchersCompare

[ Source](https://github.com/usesgraphcrt/yii2-faq)[ Packagist](https://packagist.org/packages/usesgraphcrt/yii2-faq)[ RSS](/packages/usesgraphcrt-yii2-faq/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-faq-module
===============

[](#yii2-faq-module)

FAQ module for Yii2

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist usesgraphcrt/yii2-faq "*"

```

or add

```
"usesgraphcrt/yii2-faq": "*"

```

to the require section of your composer.json file.

Make migration

```
php yii migrate --migrationPath=@vendor/usesgraphcrt/yii2-faq/migrations/
```

Usage
-----

[](#usage)

You should add module to your config:

```
'modules' => [
        ...
        'faq' => [
                    'class' => \usesgraphcrt\faq\Module::className(),
                    'imagesUrl' => 'http://my_site_name/upload/faq/',
                    'imagesPath' => '@frontend/web/upload/faq/',//realpath(__DIR__.'/../../frontend/web/upload/faq/')
                ],
    ],
```

You should use 'imagesUrl' and 'imagesPath' to define folder to store your images for FAQ. This variables should define same directory. In above example images will be saved in '@frontend/web/upload/faq' directory. You should define both variables because [Imperavi widget](https://github.com/vova07/yii2-imperavi-widget)used in this module and they needed to this widget.

If you use advanced project template you should configure both config.php with the same values

You can add link to this module in your backend navbar:

```
$menuItems[] = ['label' => 'FAQ', 'url' => ['/faq/main/view']];
```

To display FAQ just add:

```
echo \usesgraphcrt\faq\widgets\FaqWidget\FaqWidget::widget();
```

Widget have two parameters - 'title' and 'breadcrumbs' with default value 'false', which means that no title and no breadcrumbs will be applied on page with widget. It is useful if you will place widget on existing page with other information. If you locate widget on separate page and want to specify title or breadcrumbs (or maybe both of them) you can call widget like this:

```
echo \usesgraphcrt\faq\widgets\FaqWidget\FaqWidget::widget([
    'title' => Yii::t('app', 'FAQ'),
    'breadcrumbs' => Yii::t('app', 'FAQ page'),
]);
```

It is possible that you have to change minimum stability section of your composer.json file to dev

```
"minimum-stability": "dev",
```

Module support Russian and English languages. By default language for Imperavi widget is Russian ('ru'). You can change it to English by adding to module config

```
'imperaviLanguage' => 'en'
```

The module is under construction

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5004c9f0c697466c43ffc97ba8eebccf6c9332e67f64323fe5e12576aea23222?d=identicon)[usesgraphcrt](/maintainers/usesgraphcrt)

---

Top Contributors

[![usesgraphcrt](https://avatars.githubusercontent.com/u/17561572?v=4)](https://github.com/usesgraphcrt "usesgraphcrt (40 commits)")[![halumein](https://avatars.githubusercontent.com/u/5361342?v=4)](https://github.com/halumein "halumein (4 commits)")[![vladkukushkin](https://avatars.githubusercontent.com/u/9193665?v=4)](https://github.com/vladkukushkin "vladkukushkin (1 commits)")

### Embed Badge

![Health badge](/badges/usesgraphcrt-yii2-faq/health.svg)

```
[![Health](https://phpackages.com/badges/usesgraphcrt-yii2-faq/health.svg)](https://phpackages.com/packages/usesgraphcrt-yii2-faq)
```

###  Alternatives

[pulkitjalan/ip-geolocation

IP Geolocation Wrapper with Laravel Support

89164.9k1](/packages/pulkitjalan-ip-geolocation)

PHPackages © 2026

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