PHPackages                             mimicreative/yii2-react - 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. mimicreative/yii2-react

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

mimicreative/yii2-react
=======================

ReactJS Asset Bundle for Yii2

1.0.2(9y ago)131.4k↓57.1%11MIT LicensePHP

Since Jun 16Pushed 9y ago4 watchersCompare

[ Source](https://github.com/mimicreative/yii2-react)[ Packagist](https://packagist.org/packages/mimicreative/yii2-react)[ RSS](/packages/mimicreative-yii2-react/feed)WikiDiscussions master Synced yesterday

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

React.js Asset Bundle for Yii2
==============================

[](#reactjs-asset-bundle-for-yii2)

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

[](#installation)

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

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

```
"mimicreative/yii2-react": "~1.0"

```

And run in terminal

```
composer update

```

Usage
-----

[](#usage)

Use as the asset bundle in Yii2 View files.

```
// use this if you do not need addons
\mimicreative\react\ReactAsset::register($this);

// use this if you need addons
\mimicreative\react\ReactWithAddonsAsset::register($this);

```

By default, this extension use the minified version. I also include the `react-dom.min.js` because we usually need it to render in js files. To customize what asset to use, you can set the configuration in the Yii2 config files. Please refer to [React Bower package](https://github.com/reactjs/react-bower)for the list of the files.

For example if you want to use non-minified version:

```
// in main.php config file

return [
  'components' => [
    'assetManager' => [
      'bundles' => [
        'mimicreative\react\ReactAsset' => [
          'js' => [
            'react.js',
            'react-dom.js'
          ]
        ],
        'mimicreative\react\ReactWithAddonsAsset' => [
          'js' => [
            'react-with-addons.js',
            'react-dom.js'
          ]
        ]
      ]
    ]
  ]
];

```

Further Information
-------------------

[](#further-information)

Please, check the [React.js site](https://facebook.github.io/react/) documentation for further information about its configuration options.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~62 days

Total

3

Last Release

3545d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8d5451e89a30fcbdbca53d840dbd2ac9534d7cb594b7a5b4e1eae31ff3a8168d?d=identicon)[haqqi](/maintainers/haqqi)

---

Top Contributors

[![haqqi](https://avatars.githubusercontent.com/u/831763?v=4)](https://github.com/haqqi "haqqi (4 commits)")[![lshaf](https://avatars.githubusercontent.com/u/4636265?v=4)](https://github.com/lshaf "lshaf (1 commits)")

---

Tags

yii2react

### Embed Badge

![Health badge](/badges/mimicreative-yii2-react/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)

PHPackages © 2026

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