PHPackages                             biladina/yii2-ajaxcrud-bs4 - 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. [Database &amp; ORM](/categories/database)
4. /
5. biladina/yii2-ajaxcrud-bs4

ActiveYii2-extension[Database &amp; ORM](/categories/database)

biladina/yii2-ajaxcrud-bs4
==========================

Gii CRUD template for Single Page Ajax Administration for yii2

v3.0.1(1y ago)52.2k4Apache-2.0PHP

Since Nov 23Pushed 1y agoCompare

[ Source](https://github.com/biladina/yii2-ajaxcrud)[ Packagist](https://packagist.org/packages/biladina/yii2-ajaxcrud-bs4)[ RSS](/packages/biladina-yii2-ajaxcrud-bs4/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (17)Used By (0)

yii2-ajaxcrud
=============

[](#yii2-ajaxcrud)

Original work by [johitvn](https://github.com/johnitvn/yii2-ajaxcrud).

But we need to work with Bootstrap 4, so we create this repository. If [johitvn](https://github.com/johnitvn/yii2-ajaxcrud) update his repo, we will delete this repository.

[![Latest Stable Version](https://camo.githubusercontent.com/c95494b16674229bb1e3c6344d406e106566abd220d3e7a9080c370deb297139/68747470733a2f2f706f7365722e707567782e6f72672f6a6f686e6974766e2f796969322d616a6178637275642f762f737461626c65)](https://packagist.org/packages/johnitvn/yii2-ajaxcrud)[![License](https://camo.githubusercontent.com/3cf359d4671848378b675a237e4d5ab36b5476d7a886eeeef3916afb7d775f0a/68747470733a2f2f706f7365722e707567782e6f72672f6a6f686e6974766e2f796969322d616a6178637275642f6c6963656e7365)](https://packagist.org/packages/johnitvn/yii2-ajaxcrud)[![Total Downloads](https://camo.githubusercontent.com/e9f7bdbd46d9e8a528025c31a4a644a1c05cc3f2255ba89256751889a6adc96d/68747470733a2f2f706f7365722e707567782e6f72672f6a6f686e6974766e2f796969322d616a6178637275642f646f776e6c6f616473)](https://packagist.org/packages/johnitvn/yii2-ajaxcrud)

Gii CRUD template for Single Page Ajax Administration for yii2

[![index](img/index.png)](img/index.png)

[![create](img/create.png)](img/create.png)

[![view](img/view.png)](img/view.png)

[![update](img/update.png)](img/update.png)

[![delete](img/delete.png)](img/delete.png)

Features
--------

[](#features)

- Create, read, update, delete in onpage with Ajax
- Bulk delete suport
- Pjax widget suport
- Export function(pdf,html,text,csv,excel,json)
- Support Boostrap 4/5
- Added translations, available right now only English and Indonesia
- Reload multiple Pjax

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

[](#installation)

The default installation is using Bootstrap 5.

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

Either run

```
php composer.phar require --prefer-dist biladina/yii2-ajaxcrud-bs4 "~3.0"

```

or add

```
"biladina/yii2-ajaxcrud-bs4": "~3.0"

```

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

Bootstrap 4
-----------

[](#bootstrap-4)

If you still need the Boostrap 4 version, you can use version 2

```
php composer.phar require --prefer-dist biladina/yii2-ajaxcrud-bs4 "~2.0"

```

or add

```
"biladina/yii2-ajaxcrud-bs4": "~2.0"

```

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

Usage
-----

[](#usage)

For first you must enable Gii module Read more about [Gii code generation tool](http://www.yiiframework.com/doc-2.0/guide-tool-gii.html)

Because this extension used [kartik-v/yii2-grid](https://github.com/kartik-v/yii2-grid) extensions so we must config gridview module before

Let's add into modules config in your main config file

```
'modules' => [
    'gridview' =>  [
        'class' => '\kartik\grid\Module'
    ]
]
```

Add translation to the config

```
'components' => [
    'i18n' => [
        'translations' => [
            'yii2-ajaxcrud' => [
                'class' => 'yii\i18n\PhpMessageSource',
                'basePath' => '@yii2ajaxcrud/ajaxcrud/messages',
                'sourceLanguage' => 'en',
            ],
        ]
    ]
]
```

Add `bsVersion` to the `params` file

```
return [
    'bsVersion' => '5.x',
];
```

You can then access Gii through the following URL:

and you can see **Ajax CRUD Generator**

Translate
---------

[](#translate)

Default translation is english, you can pull request new translation and you can change via config. Open your config `main.php`, change the language and translation `sourceLanguage`

Available Translation :

- English
- Indonesia

```
'language' => 'id-ID',

'components' => [
    'i18n' => [
        'translations' => [
            'yii2-ajaxcrud' => [
                'class' => 'yii\i18n\PhpMessageSource',
                'basePath' => '@yii2ajaxcrud/ajaxcrud/messages',
                'sourceLanguage' => 'id',
            ],
        ]
    ]
]
```

Reload Multiple Pjax
--------------------

[](#reload-multiple-pjax)

If you need to reload multiple GridView Pjax via Ajax respond from controller, you can add another Pjax ID separated by comma.

```
return [
    'forceReload'=>'#crud-pjax1,#crud-pjax2', // you can add more Pjax ID that you want to reload via ajax respond.
    'title'=> Yii::t('yii2-ajaxcrud', 'Create New')." Content",
    'content'=>''.Yii::t('yii2-ajaxcrud', 'Create').' Content '.Yii::t('yii2-ajaxcrud', 'Success').'',
    'footer'=> Html::button(Yii::t('yii2-ajaxcrud', 'Close'), ['class'=>'btn btn-default pull-left','data-dismiss'=>"modal"]).
        Html::a(Yii::t('yii2-ajaxcrud', 'Create More'), ['create'],['class'=>'btn btn-primary','role'=>'modal-remote'])
];
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 75.5% 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 ~117 days

Recently: every ~221 days

Total

15

Last Release

719d ago

Major Versions

v1.0.5 → v2.0.02021-04-20

v1.x-dev → v2.0.12021-10-01

v2.0.4 → v3.0.02023-06-22

v2.0.6 → v3.0.12024-05-23

### Community

Maintainers

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

---

Top Contributors

[![biladina](https://avatars.githubusercontent.com/u/10651085?v=4)](https://github.com/biladina "biladina (37 commits)")[![hoaaah](https://avatars.githubusercontent.com/u/8166322?v=4)](https://github.com/hoaaah "hoaaah (6 commits)")[![dshiryaev-plesk](https://avatars.githubusercontent.com/u/19424413?v=4)](https://github.com/dshiryaev-plesk "dshiryaev-plesk (5 commits)")[![arollmann](https://avatars.githubusercontent.com/u/2589161?v=4)](https://github.com/arollmann "arollmann (1 commits)")

---

Tags

ajaxboostrap4bootstrapbootstrap-5bootstrap5crudcrud-generatorgiiyii2yii2-ajaxcrudyii2-ajaxcrud-bs5databasetemplateyii2extensionajaxcrudgii

### Embed Badge

![Health badge](/badges/biladina-yii2-ajaxcrud-bs4/health.svg)

```
[![Health](https://phpackages.com/badges/biladina-yii2-ajaxcrud-bs4/health.svg)](https://phpackages.com/packages/biladina-yii2-ajaxcrud-bs4)
```

###  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)
