PHPackages                             lucianolima00/yii2-many-to-many - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. lucianolima00/yii2-many-to-many

ActiveYii2-extension[Validation &amp; Sanitization](/categories/validation)

lucianolima00/yii2-many-to-many
===============================

ManyToMany Relation for Yii2 Framework

1.0.0(3y ago)02MITPHP

Since Jun 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/lucianolima00/yii2-many-to-many)[ Packagist](https://packagist.org/packages/lucianolima00/yii2-many-to-many)[ Docs](https://github.com/lucianolima00/yii2-many-to-many)[ RSS](/packages/lucianolima00-yii2-many-to-many/feed)WikiDiscussions main Synced 1mo ago

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

ManyToMany Relation for Yii PHP Framework
=========================================

[](#manytomany-relation-for-yii-php-framework)

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

[](#installation)

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

Either run

```
composer require lucianolima00/yii2-many-to-many "*"

```

or add

```
"lucianolima00/yii2-many-to-many": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by:

```
//app\models\User.php
