PHPackages                             2rats/yii2-forum - 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. 2rats/yii2-forum

ActiveYii2-extension

2rats/yii2-forum
================

1394PHP

Since Jan 20Pushed 3mo agoCompare

[ Source](https://github.com/2rats/yii2-forum)[ Packagist](https://packagist.org/packages/2rats/yii2-forum)[ RSS](/packages/2rats-yii2-forum/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Forum Extension
====================

[](#yii2-forum-extension)

This Yii2 extension offers a simple set of forum features that make it easy to integrate a full-featured forum into your web application.

⚠️ This extension is currently **WIP**. Feel free to *Watch* this repo for the first release or [contribute](https://github.com/2rats/yii2-forum#contributions). Thank you. ⚠️

Requirements
------------

[](#requirements)

- PHP 7.4 or higher
- Yii2 Framework
- Yii2 RBAC
- User table migration

Instalation
-----------

[](#instalation)

This extension is designed to be used out of the box. Once you have installed the necessary migrations and configured the module in your application structure, you'll be ready to go.

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

```
composer require 2rats/yii2-forum "@dev"

```

### Apply database migrations

[](#apply-database-migrations)

#### 1. User table and RBAC

[](#1-user-table-and-rbac)

First of all you have to setup and apply your **User table** and **RBACK** migration using:

```
php yii migrate
php yii migrate --migrationPath=@yii/rbac/migrations

```

#### 2. Extension

[](#2-extension)

Then you have to to apply migrations of this extension:

```
php yii migrate --migrationPath=@rats/forum/migrations
php yii migrate --migrationPath=@rats/forum/migrations/rbac

```

### Modify database connection

[](#modify-database-connection)

This extension parses text emoji to unicode symbols (for example ':D' =&gt; '😃'). For proper saving to the database, it is necessary to have the correct charset both in the database settings and in the connection to the database in the `config/db.php` configuration file.

For example, you can use **utf8mb4** charset.

```
