PHPackages                             kirillantv/yii2-swap - 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. kirillantv/yii2-swap

ActiveYii2-extension

kirillantv/yii2-swap
====================

Yii2 extension allows you to transform your site into Swap Platform

v0.8.3(8y ago)021MITPHP

Since Sep 18Pushed 8y agoCompare

[ Source](https://github.com/kirillantv/yii2-swap)[ Packagist](https://packagist.org/packages/kirillantv/yii2-swap)[ RSS](/packages/kirillantv-yii2-swap/feed)WikiDiscussions master Synced 4d ago

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

Yii2-Swap is module, that helps your users to swap different things.

Getting started with Yii2-swap
==============================

[](#getting-started-with-yii2-swap)

\*\*\* Alpha version v0.8.3-alpha \*\*\*

### 1. Download

[](#1-download)

Yii2-Swap extension can be installed using composer. Run the command bellow in console to download and install Yii2-swap:

```
composer require kirillantv/yii2-swap
```

or you can add following require to composer.json:

```
...
"require": {
  ...
  "kirillantv/yii2-swap": "*"
  ...
}
```

### 2. Configure

[](#2-configure)

Add following lines to your main configuration file:

```
'modules' => [
    'swap' => [
        'class' => 'kirillantv\swap\Module',
    ],
],
```

### 3. Update database schema

[](#3-update-database-schema)

The last thing you need to do is updating your database schema by applying the migrations. Make sure that you have properly configured `db` application component and run the following command:

```
$ php yii migrate/up --migrationPath=@vendor/kirillantv/yii2-swap/migrations
```

### 4. Available actions

[](#4-available-actions)

#### Backend management actions

[](#backend-management-actions)

**NOTE: It is not recommended to use actions below in frontend. Even swap/management/items/create action.****All index pages designed as GridView by default**

##### 0. Simple start

[](#0-simple-start)

You can get access to swap console easily with action below:

`swap/management`

##### 1. Items

[](#1-items)

`swap/management/items` list of all items `swap/management/items/create` create item in module management page

##### 2. Categories

[](#2-categories)

`swap/management/categories` list of all categories

`swap/management/categories/create` create category

##### 3. Bets

[](#3-bets)

`swap/management/bets` list of all bets

`swap/management/bets/create` create bet in module management page

##### 4. Orders

[](#4-orders)

`swap/management/orders` list of all orders

`swap/management/orders/create` create order manually

##### 5. Attributes

[](#5-attributes)

`swap/management/attributes` list of all attributes

`swap/management/attributes/create` create attributes for your items

##### 6. Attribute Values

[](#6-attribute-values)

`swap/management/values` junction table for items and attributes

`swap/management/values/create` create manually junction between item and attribute. Just for specific solutions

##### 7. Visual Configuration

[](#7-visual-configuration)

`swap/management/basic-configuration` configurate module

#### Frontend actions

[](#frontend-actions)

##### 1.Items

[](#1items)

`swap/items` input all active items

`swap/items/create` create item with attributes, categories and bets

`swap/items/edit` param `id`. Update form for item

`swap/items/view` param `id`. View form for item. Users can swap from this page.

##### 2. Orders

[](#2-orders)

`swap/orders/create` create order when user clicks swap button. Available to choose bet

#### User actions

[](#user-actions)

Yii2-Swap provides user's items and orders output. You can add corresponding actions in profile menu or override views

##### 1. Items

[](#1-items-1)

`swap/user/items` main action for user's items

`swap/user/items/active` user's active items

`swap/user/items/archive` user's archive items

##### 2. Orders

[](#2-orders-1)

`swap/user/orders` main action for user's orders

`swap/user/orders/active` user's active orders

`swap/user/orders/archive` user's archive orders

##### 3. Messages

[](#3-messages)

**Attention! Message module is not stable.**

Extension supports specific message system by the default. After migration in your DB `swap_message` table will appear. We need for prefix not to conflict with your chat or mail system. We included message model in default orders controller and view. But you can access to inbox and conversation using controllers bellow:

`swap/message/inbox` - list of all user's conversations grouped by `item_id`

`swap/message/conversation` - need for GET parameters: `hash`, `item`, `from`, `to` of any message from current user's conversation. So foreign user can't enter to conversation.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

3162d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/614e21ba67862f9c1b69df30458041fc414ad2f84e42814e783a1b4653da9ae1?d=identicon)[kirillantv](/maintainers/kirillantv)

---

Top Contributors

[![kirillantv](https://avatars.githubusercontent.com/u/22444239?v=4)](https://github.com/kirillantv "kirillantv (29 commits)")

---

Tags

yii2swapgimmekirillantvswapplatform

### Embed Badge

![Health badge](/badges/kirillantv-yii2-swap/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[skeeks/cms

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

13825.6k47](/packages/skeeks-cms)

PHPackages © 2026

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