PHPackages                             liumapp/yii2-library - 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. liumapp/yii2-library

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

liumapp/yii2-library
====================

common library for yii2

v1.0.0(9y ago)03MITPHPPHP &gt;=5.4.0

Since Apr 19Pushed 9y agoCompare

[ Source](https://github.com/liumapp/yii2-library)[ Packagist](https://packagist.org/packages/liumapp/yii2-library)[ RSS](/packages/liumapp-yii2-library/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (10)Versions (2)Used By (0)

yii2-library
------------

[](#yii2-library)

> common library for yii2

修改配置文件
------

[](#修改配置文件)

> file: config/web.php,config/console.php

```
    'modules' => [
        'library'=>[
            'class'=>'liumapp\library\Module'
        ],
    ],

```

初始化基本数据库
--------

[](#初始化基本数据库)

```
php yii migrate --migrationPath=@vendor/liumapp/yii2-library/migrations
```

创建管理员
-----

[](#创建管理员)

```
php yii library/create-admin  管理员 $username $password $youremail
```

批量删除
----

[](#批量删除)

```
liumapp\library\widgets\BatchDelete::widget()

```

默认使用当前控制器下的ActionDelete 也可以手动指定 /attachment/default/delete ,然后根据主键id实现批量删除

```
liumapp\library\widgets\BatchDelete::widget(['url'=>'attachment/default/delete
'])

```

必须跟GridView配合使用,把多选框显示出来

```
   'columns' => [
        ['class' => CheckboxColumn::className()],
        'entityId',
        ['class' => 'liumapp\library\components\ActionColumn'],
    ],

```

[![DEMO](assets/img/BatchDelete.png)](assets/img/BatchDelete.png)

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

3359d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/21333655?v=4)[我敬你是条汉子](/maintainers/liumapp)[@liumapp](https://github.com/liumapp)

### Embed Badge

![Health badge](/badges/liumapp-yii2-library/health.svg)

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

###  Alternatives

[zhuravljov/yii2-datetime-widgets

Datetime widgets for Yii2.

21120.7k4](/packages/zhuravljov-yii2-datetime-widgets)

PHPackages © 2026

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