PHPackages                             lg-xenos/yii2-banner-system - 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. lg-xenos/yii2-banner-system

ActiveYii2-extension

lg-xenos/yii2-banner-system
===========================

yii2 Баннерная система ( Banner system )

v0.9.1(5y ago)011Apache-2.0PHP

Since Apr 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/lgXenos/yii2-banner-system)[ Packagist](https://packagist.org/packages/lg-xenos/yii2-banner-system)[ RSS](/packages/lg-xenos-yii2-banner-system/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

yii2 Баннерная система
======================

[](#yii2-баннерная-система)

[![Latest Stable Version](https://camo.githubusercontent.com/5bf0ffd1b718fae259d0ad67b0868f236488da7bb4e7b099819f4dcbeccb7b17/68747470733a2f2f706f7365722e707567782e6f72672f6c672d78656e6f732f796969322d62616e6e65722d73797374656d2f762f737461626c65)](https://packagist.org/packages/lg-xenos/yii2-banner-system)[![Total Downloads](https://camo.githubusercontent.com/2b9927ad3b858b9479414f70fa0765a95626bda7e4c789a47af6b53b878a3c49/68747470733a2f2f706f7365722e707567782e6f72672f6c672d78656e6f732f796969322d62616e6e65722d73797374656d2f646f776e6c6f616473)](https://packagist.org/packages/lg-xenos/yii2-banner-system)

[![yii2 banner system screenshot](https://raw.githubusercontent.com/lgXenos/yii2-banner-system/master/img/main.png "Пример главного экрана")](https://raw.githubusercontent.com/lgXenos/yii2-banner-system/master/img/main.png)[![yii2 banner system screenshot](https://raw.githubusercontent.com/lgXenos/yii2-banner-system/master/img/main1.png "Пример главного экрана")](https://raw.githubusercontent.com/lgXenos/yii2-banner-system/master/img/main1.png)

Особенности (Features)
----------------------

[](#особенности-features)

**(RU)**

- Лимит показов не по дате, а по количеству
- Рекламные зоны отдельны для мобильной и десктопа
- Расчитано на работу в MySql v.5+ из-за [on-duplicate-key-update](https://www.mysqltutorial.org/mysql-insert-or-update-on-duplicate-key-update/) для ускорения статистики

**(EN)**

- Impression limit by quantity, not by date
- Advert zones divided to mobile &amp; desktop
- Work on MySql v.5+ because of [on-duplicate-key-update](https://www.mysqltutorial.org/mysql-insert-or-update-on-duplicate-key-update/) to speed-up stat counters

Требования (Requipments)
------------------------

[](#требования-requipments)

- PHP v7+ (v5.6 - не тестировал (`not tested`))
- MySql v5.6 (другое не тестировал (`other not tested`))
- JQuery v3+ (другое не тестировал (`other not tested`))
- Yii CSRF-Tokens (без них не тестировал (`not tested without`))

Установка (Installation)
------------------------

[](#установка-installation)

```
composer require lg-xenos/yii2-banner-system
```

Или добавить в `composer.json` (or add to `composer.json`)

```
"lg-xenos/yii2-banner-system": "*"

```

Использование (Usage)
---------------------

[](#использование-usage)

(in English below)

Добавляем данные строчки в 2 места файла конфигурации приложения (например `frontend/config/main.php`)

```
	/* ... */
	'bootstrap'           => [ /* ... */ 'adwert' /* ... */ ],
	/* ... */
	'modules'             => [
		/* ... */
		'adwert'   => [
			'class'          => lgxenos\yii2\banner\BannerModule::class,
			'frontPrettyUrl' => '/asd/',
            //
			// ОПЦИОНАЛЬНЫЕ НАСТРОЙКИ. ТОЛЬКО ЕСЛИ ВАМ НАДО ЧТО-ТО МЕНЯТЬ
            // module settings
			'uploadPath'     => '@frontend/upload/banners/%USER_ID%/',
			'uploadWebPath'  => '/upload/banners/%USER_ID%/',
			'userModel'      => \common\models\User::class,
			'userModelName'  => 'username',
			'mobileWidth'    => 768,
			// yii settings
			'layout'         => '@frontend/modules/yiiAdmin/views/layouts/main.php',
		],
		/* ... */
	],
```

Выполняем миграции:

```
yii migrate --migrationPath=@vendor/lgxenos/yii2-banner-system/src/migrations
```

Теперь нужно

- открыть главную страницу по ссылке:
- создать зону
- создать баннер
- вставить в view-файл код: `\lgxenos\yii2\banner\BannerModule::setArea(AREA_ID);`

---

English version
---------------

[](#english-version)

Let 's add into 2 places of your app-config (for example `frontend/config/main.php`)

```
	/* ... */
	'bootstrap'           => [ /* ... */ 'adwert' /* ... */ ],
	/* ... */
	'modules'             => [
		/* ... */
		'adwert'   => [
			'class'          => lgxenos\yii2\banner\BannerModule::class,
			'frontPrettyUrl' => '/asd/',
            //
			// OPTIONAL SETTINGS. IF YOU NEED CHANGE SOMETHING ONLY
            // module settings
			'uploadPath'     => '@frontend/upload/banners/%USER_ID%/',
			'uploadWebPath'  => '/upload/banners/%USER_ID%/',
			'userModel'      => \common\models\User::class,
			'userModelName'  => 'username',
			'mobileWidth'    => 768,
			// yii settings
			'layout'         => '@frontend/modules/yiiAdmin/views/layouts/main.php',
		],
		/* ... */
	],
```

Execute migrations:

```
yii migrate --migrationPath=@vendor/lgxenos/yii2-banner-system/src/migrations
```

Now we need

- open system by link
- create zone
- create banner
- insert into view-file code: `\lgxenos\yii2\banner\BannerModule::setArea(AREA_ID);`

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

Total

3

Last Release

2112d ago

### Community

Maintainers

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

---

Top Contributors

[![lgXenos](https://avatars.githubusercontent.com/u/14957311?v=4)](https://github.com/lgXenos "lgXenos (9 commits)")

---

Tags

yii2extensionbannerbanner systemбанербаннерная системабанерная система

### Embed Badge

![Health badge](/badges/lg-xenos-yii2-banner-system/health.svg)

```
[![Health](https://phpackages.com/badges/lg-xenos-yii2-banner-system/health.svg)](https://phpackages.com/packages/lg-xenos-yii2-banner-system)
```

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[dmstr/yii2-pages-module

Application sitemap and navigation manager module for Yii 2.0 Framework

3177.5k2](/packages/dmstr-yii2-pages-module)

PHPackages © 2026

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