PHPackages                             ichynul/row-table - 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. ichynul/row-table

ActiveLibrary[Admin Panels](/categories/admin)

ichynul/row-table
=================

laravel-admin extension row-table

1.1.9(6y ago)2617.4k3[1 issues](https://github.com/ichynul/row-table/issues)5MITPHPPHP &gt;=7.0.0CI failing

Since Feb 19Pushed 6y ago2 watchersCompare

[ Source](https://github.com/ichynul/row-table)[ Packagist](https://packagist.org/packages/ichynul/row-table)[ Docs](https://github.com/ichynul/row-table)[ RSS](/packages/ichynul-row-table/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (2)Versions (19)Used By (5)

laravel-admin row-table
=======================

[](#laravel-admin-row-table)

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

[](#installation)

Run :

```
$ composer require ichynul/row-table

```

Then run:

```
$ php artisan vendor:publish --tag=row-table

```

##### 推荐使用 $field-&gt;setGroupClass('col-md-6');//这样的方式来实现栅格布局，毕竟官方的兼容性更好一些。

[](#推荐使用-field-setgroupclasscol-md-6这样的方式来实现栅格布局毕竟官方的兼容性更好一些)

##### It is recommended to use $field-&gt;setgroupclass('col-md-6'); // this official way to achieve grid layout.

[](#it-is-recommended-to-use-field-setgroupclasscol-md-6--this-official-way-to-achieve-grid-layout)

Usage
-----

[](#usage)

```
protected function form()
{
        $form = new Form(new Task);

        $headers = ['备注', '服务费用', '服务评分'];
        $tableRow = new TableRow();

        $tableRow->text('status', '任务状态')->options(Task::$statusMap)->attribute(['readonly' => 'readonly']);
        $tableRow->text('fee', '服务费用')->rules('required');
        $tableRow->number('rating', '服务评分', 2)->max(5)->min(1);//这个表少了一列，这里设置colspan=2 ,其他可以不写默认1
        /*************************************/
        $headers2 = ['地址', '评价', '图片'];
        $tableRow2 = new TableRow();
        $tableRow2->text('address', '地址')->rules('required');
        $tableRow2->text('comment', '评价');
        $tableRow2->text('username', '姓名');
        $tableRow2->text('viwe', '查看');

        $form->rowtable('任务信息1')
            ->setHeaders($headers)//使用table时设置，div设置无效
            //->setRows($tableRow)//设置 一个row
            ->setRows([$tableRow, $tableRow2])
            ->useDiv(true); //使用div显示，默认 table
            //->headersTh(true);//使用table时 头部使用，默认使用样式有些差别
            //->getTableWidget()//extends Encore\Admin\Widgets\Table
            //->offsetSet("style", "width:1000px;");

        // 另外一种代码风格 Another code style
         $form->rowtable('任务信息2', function ($table) {
            $table->row(function (TableRow $row) {
                $row->text('text1', 'label1')->rules('required');
                $row->text('text2', 'label2');
                $row->text('text3', 'label3');
            });
            $table->row(function (TableRow $row) {
                $row->text('text4', 'label4');
                $row->text('text5', 'label5');
                $row->text('text6', 'label6');
            });
            $table->row(function (TableRow $row) {
                $row->text('text7', 'label7');
                $row->text('text8', 'label8');
                $row->text('text9', 'label9');
            });
            //$table->useDiv(false);
            //$table->setHeaders(['h1','h2']);
            //$table->useDiv(false);
            //$table->headersTh(true);//使用table时 头部使用，默认使用样式有些差别
            //$table->getTableWidget()//extends Encore\Admin\Widgets\Table
            //->offsetSet("style", "width:1000px;");
        });

        $form->textarea('remark', '备注')->rules('required');
        $form->display('created_at', trans('admin.created_at'));
        $form->display('updated_at', trans('admin.updated_at'));

        /**
         * $tableRow-element($column, $label, $width); //div 时 class="col-sm-$width"
         *
         * $tableRow-element($column, $colspan); // table 时 colspan="$width"
         *
         * $element: 理论上可以是任何 form 元素 (不考虑布局效果)
         *
         * $width :
         *         table模式 时 为 colspan="width" , 多行且每行元素数量不同时很有用
         *
         *         div模式   时 为 class="col-sm-width" . 排列不下时自动换行
         *
         *         div模式 若一个tableRow中所有元素都未设置 $width ,将会自适应 (columns >=4 每行4个并自动换行，小于4则全部在一行)
         */

        return $form;
}
```

License

---

Licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 96.9% 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 ~28 days

Recently: every ~47 days

Total

18

Last Release

2206d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10061650?v=4)[ichynul](/maintainers/ichynul)[@ichynul](https://github.com/ichynul)

---

Top Contributors

[![ichynul](https://avatars.githubusercontent.com/u/10061650?v=4)](https://github.com/ichynul "ichynul (31 commits)")[![shanjiechen](https://avatars.githubusercontent.com/u/39817497?v=4)](https://github.com/shanjiechen "shanjiechen (1 commits)")

---

Tags

extensionlaravel-admin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ichynul-row-table/health.svg)

```
[![Health](https://phpackages.com/badges/ichynul-row-table/health.svg)](https://phpackages.com/packages/ichynul-row-table)
```

###  Alternatives

[laravel-admin-ext/lock-screen

Lock-screen page for laravel-admin

2317.2k](/packages/laravel-admin-ext-lock-screen)[jadekun/sku

382.2k](/packages/jadekun-sku)[jonexyz/wang-editor-v4

laravel admin editor

161.4k](/packages/jonexyz-wang-editor-v4)[namet/laravel-admin-tagsinput

tagsinput for laravel-admin Form

102.7k](/packages/namet-laravel-admin-tagsinput)

PHPackages © 2026

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