PHPackages                             blackbes/yii2-yiireact - 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. blackbes/yii2-yiireact

ActiveYii2-extension

blackbes/yii2-yiireact
======================

Yii2 extension for support a react-based frontend. Work in pair with https://www.npmjs.com/package/react-yii2-essentials. Check compatibility table.

v1.0.2(5y ago)21892MITPHP

Since Dec 25Pushed 5y ago2 watchersCompare

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

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

React integration for Yii2
==========================

[](#react-integration-for-yii2)

[![Hits](https://camo.githubusercontent.com/223ed1c7b0ac339485b79f92d23639295a5c59309691143806976ffd9c08fd46/68747470733a2f2f686974732e736565796f756661726d2e636f6d2f6170692f636f756e742f696e63722f62616467652e7376673f75726c3d68747470732533412532462532466769746875622e636f6d253246426c61636b426573253246796969322d796969726561637426636f756e745f62673d253233373943383344267469746c655f62673d2532333535353535352669636f6e3d7068702e7376672669636f6e5f636f6c6f723d253233364237444230267469746c653d6869747326656467655f666c61743d66616c7365)](https://hits.seeyoufarm.com)

Yii2 extension for support a react-based frontend.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist blackbes/yii2-yiireact "*"

```

or add

```
"blackbes/yii2-yiireact": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, add this code to your web.php into `$config['modules']['gii']` :

```
'generators' => [ //here
    'yiiReact' => [
        'class' => 'blackbes\yiireact\yiiReactCrud\Generator',
        'templates' => [
    'react' => 'blackbes/yiireact/yiiReactCrud/default',
        ]
    ]
],
```

If done correctly, you can now access React API CRUD Generator in Yii2 Gii

Usage instructions
------------------

[](#usage-instructions)

First of all make sure that you have installed [react-yii2-essentials](https://github.com/BlackBes/react-yii2-essentials) extension on your React part of the project.

If it is installed then:

1. Create any Model using Gii Model generator
2. Make newly generated model extend `blackbes\yiireact\models\ParentModel`
3. Use installed React API CRUD Generator for this model. It will generate a Model Controller in `/controllers/api/`and all pages with forms for React in `/views/api//`.
4. Create `src/containers` folder in the root directory of your React project
5. Copy the `/views/api//` from Yii2 and paste it into `src/containers` directory of your React project
6. Use `_routes.js` to add routes and import generated files

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

[](#license)

MIT Licence, © [BlackBes](https://github.com/BlackBes).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~1 days

Total

3

Last Release

1962d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f2d819274b1214339532eb7c25cc462dd8959da6d27b1b5b719179da51aacba?d=identicon)[BlackBes](/maintainers/BlackBes)

---

Top Contributors

[![Getsumi3](https://avatars.githubusercontent.com/u/20124129?v=4)](https://github.com/Getsumi3 "Getsumi3 (1 commits)")[![yskrypnyk](https://avatars.githubusercontent.com/u/51512763?v=4)](https://github.com/yskrypnyk "yskrypnyk (1 commits)")

---

Tags

reactyii2yii2-extensionyii2-frameworkyii2-giiyii2-reactyii2extensiongiireactreact-giiyii2-reactreact-yii2yii-reactreact-yii

### Embed Badge

![Health badge](/badges/blackbes-yii2-yiireact/health.svg)

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

###  Alternatives

[johnitvn/yii2-ajaxcrud

Gii CRUD template for Single Page Ajax Administration for yii2

97209.6k16](/packages/johnitvn-yii2-ajaxcrud)

PHPackages © 2026

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