PHPackages                             ichynul/iframe-tabs - 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. ichynul/iframe-tabs

AbandonedArchivedLibrary

ichynul/iframe-tabs
===================

laravel-admin extension iframe-tabs

1.3.6(5y ago)8559.2k↓43.8%18[10 issues](https://github.com/ichynul/iframe-tabs/issues)MITPHPPHP &gt;=7.0.0

Since Feb 17Pushed 5y ago5 watchersCompare

[ Source](https://github.com/ichynul/iframe-tabs)[ Packagist](https://packagist.org/packages/ichynul/iframe-tabs)[ Docs](https://github.com/ichynul/iframe-tabs)[ RSS](/packages/ichynul-iframe-tabs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (77)Used By (0)

laravel-admin iframe-tabs
=========================

[](#laravel-admin-iframe-tabs)

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

[](#installation)

Run :

```
$ composer require ichynul/iframe-tabs

```

Then run:

```
$ php artisan vendor:publish --tag=iframe-tabs

$ php artisan admin:import iframe-tabs

```

Update it
---------

[](#update-it)

```
php artisan vendor:publish --tag=iframe-tabs --force

```

This will override css and js files to `/public/vendor/laravel-admin-ext/iframe-tabs/`

Config
------

[](#config)

Add a config in `config/admin.php`:

```
    'extensions' => [
        'iframe-tabs' => [
           // Set to `false` if you want to disable this extension
            'enable' => true,
            // The controller and action of dashboard page `/admin/dashboard`
            'home_action' => App\Admin\Controllers\HomeController::class . '@index',
            // Default page tab-title
            'home_title' => 'Home',
            // Default page tab-title icon
            'home_icon' => 'fa-home',
            // Whether show icon befor titles for all tab
            'use_icon' => true,
            // dashboard css
            'tabs_css' =>'vendor/laravel-admin-ext/iframe-tabs/dashboard.css',
            // layer.js path
            'layer_path' => 'vendor/laravel-admin-ext/iframe-tabs/layer/layer.js',
            /**
             * href links do not open in tab .
             * selecter : .sidebar-menu li a,.navbar-nav>li a,.sidebar .user-panel a,.sidebar-form .dropdown-menu li a
             * if(href.indexOf(pass_urls[i]) > -1) //pass
             */
            'pass_urls' => ['/auth/logout', '/auth/lock'],
            // When login session state of a tab-page was expired , force top-level window goto login page .
            //登录超时是是否强制整体跳转到登录页面，设为false的话只在触发超时登录的页面跳转，最大程度保留已打开页面。
            'force_login_in_top' => true,
            // tabs left offset
            'tabs_left'  => 42,
            // bind click event of table actions [edit / view / create]
            'bind_urls' => 'popup', //[ popup / new_tab / none]
            //table actions dom selecter, [view / edit / create]buttons ,and any thing has class pupop : mylink
            'bind_selecter' => 'a.grid-row-view,a.grid-row-edit,.column-__actions__ ul.dropdown-menu a,.box-header .pull-right .btn-success,.popup',
            //layer popup size
            'layer_size' => '1100px,98%',
            // if run web in `cli` mode ,for example `swoole` ,set it to true，如果是以命令行方式运行网站，如`swoole` 就设置为 true
            'web_in_cli' => false
        ]
    ],
```

If `bind_urls` set to `popup` or `new_tab` , recommend `disableView` and `disableList` in form `/Admin/bootstrap.php` :

```
    Encore\Admin\Form::init(function ($form) {
        $form->tools(function ($tools) {
            $tools->disableDelete();
            $tools->disableView();
            $tools->disableList();
        });
    });
```

See

And `disableEdit` and `disableList` in show :

```
   $show->panel()
   ->tools(function ($tools) {
       $tools->disableEdit();
       $tools->disableList();
       $tools->disableDelete();
   });;
```

Lang
----

[](#lang)

Add a lang config in `resources/lang/{zh-CN}/admin.php`

```
'iframe_tabs' => [
    'oprations' => '页签操作',
    'refresh_current' => '刷新当前',
    'close_current' => '关闭当前',
    'close_all' => '关闭全部',
    'close_other' => '关闭其他',
    'open_in_new' => '新窗口打开',
    'open_in_pop' => '弹出窗打开',
    'scroll_left' => '滚动到最左',
    'scroll_right' => '滚动到最右',
    'scroll_current' => '滚动到当前',
    'goto_login' => '登录超时，正在跳转登录页面...'
],
```

Usage
-----

[](#usage)

Open `http://your-host/admin`

Thanks to

License

---

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

此扩展基本稳定了，除非`laravel-admin`的UI有较大变化。鉴于本人实际中使用`laravel-admin`不是太多，后续不提供新的功能特性，只修复bug。

广告
--

[](#广告)

使用tp框架的小伙伴可以尝试一下我新的后台开发框架：

参照laravel-admih封装了`form`,`table`等

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 99.1% 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 ~9 days

Recently: every ~74 days

Total

76

Last Release

1944d 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 (110 commits)")[![guoyuangang](https://avatars.githubusercontent.com/u/6258735?v=4)](https://github.com/guoyuangang "guoyuangang (1 commits)")

---

Tags

extensionlaravel-admin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ichynul-iframe-tabs/health.svg)

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

###  Alternatives

[laravel-admin-ext/grid-lightbox

Turn your grid into a lightbox &amp; gallery

58180.9k2](/packages/laravel-admin-ext-grid-lightbox)[laravel-admin-ext/wang-editor

wangEditor extension for laravel-admin

6283.4k](/packages/laravel-admin-ext-wang-editor)[laravel-admin-ext/sparkline

Integrates jQuery sparkline into laravel-admin

161.1k](/packages/laravel-admin-ext-sparkline)

PHPackages © 2026

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