PHPackages                             andreykluev/yii2-crud-actions - 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. [Admin Panels](/categories/admin)
4. /
5. andreykluev/yii2-crud-actions

ActiveYii2-extension[Admin Panels](/categories/admin)

andreykluev/yii2-crud-actions
=============================

Yii2 crud actions

0.2(11y ago)22591[1 issues](https://github.com/AndreyKluev/yii2-crud-actions/issues)BSD-3-ClausePHP

Since Apr 1Pushed 10y ago3 watchersCompare

[ Source](https://github.com/AndreyKluev/yii2-crud-actions)[ Packagist](https://packagist.org/packages/andreykluev/yii2-crud-actions)[ RSS](/packages/andreykluev-yii2-crud-actions/feed)WikiDiscussions master Synced 1mo ago

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

CrudActions - CRUD actions extension for Yii
============================================

[](#crudactions---crud-actions-extension-for-yii)

Установка
---------

[](#установка)

В composer.json:

```
"require": {
	...
	"andreykluev/yii2-crud-actions": "dev-master"
},

```

Варианты использования
----------------------

[](#варианты-использования)

```
use andreykluev\crudactions\crudActionCreate;
use andreykluev\crudactions\crudActionDelete;
use andreykluev\crudactions\crudActionUpdate;

use common\models\Product;

class CatalogController extends AppController
{

	...

	public function actions()
	{
		return array(
			'insert' => [
				'class' => crudActionCreate::className(),
				'model' => new Product(),
				'view' => 'update-album',
				'onBeforeAction' =>  [$this, 'beforeSaveProduct'],
				'onAfterAction' =>  [$this, 'afterSaveProduct'],
			],

			'update' => [
				'class' => crudActionUpdate::className(),
				'modelClass' => Product::className(),
                'attributes' => [
                    'id_user' => Yii::$app->user->identity->getId(),
                    'id_album' => Yii::$app->request->get('idAlbum', 0),
                ],
				'view' => 'update-album',
				'onBeforeAction' =>  [$this, 'beforeSaveProduct'],
				'onAfterAction' =>  [$this, 'afterSaveProduct'],
			],

			'delete' => [
				'class' => crudActionDelete::className(),
				'modelClass' => Product::className(),
				'onBeforeAction' =>  [$this, 'beforeDeleteProduct'],
				'onAfterAction' =>  [$this, 'afterDeleteProduct'],
			],

			...
		);
	}

	...

	public function beforeSaveProduct()
	{
		// Ваш код
	}

	public function afterSaveProduct($isSave = false)
	{
		// Ваш код
	}

	public function beforeDeleteProduct()
	{
		// Ваш код
	}

	public function afterDeleteProduct($isDelete = false)
	{
		// Ваш код
	}
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

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

4066d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/afa4af174a3f82f63c28e6a9c1ebc586af87c8f2c297753926ad429536f72da2?d=identicon)[AndreyKluev](/maintainers/AndreyKluev)

---

Top Contributors

[![AndreyKluev](https://avatars.githubusercontent.com/u/1557379?v=4)](https://github.com/AndreyKluev "AndreyKluev (19 commits)")

---

Tags

yii2crud

### Embed Badge

![Health badge](/badges/andreykluev-yii2-crud-actions/health.svg)

```
[![Health](https://phpackages.com/badges/andreykluev-yii2-crud-actions/health.svg)](https://phpackages.com/packages/andreykluev-yii2-crud-actions)
```

###  Alternatives

[schmunk42/yii2-giiant

Gii CRUD generator for Yii 2 Framework

269471.5k17](/packages/schmunk42-yii2-giiant)

PHPackages © 2026

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