PHPackages                             benevolences/dcat-iframe-tab - 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. [Framework](/categories/framework)
4. /
5. benevolences/dcat-iframe-tab

ActiveLaravel-extension[Framework](/categories/framework)

benevolences/dcat-iframe-tab
============================

iframe-tab framework for dcat-admin

v2.0.2(1mo ago)06MITJavaScriptPHP &gt;=7.2.5

Since Apr 17Pushed 1mo agoCompare

[ Source](https://github.com/benevolence198/dcat-iframe-tab)[ Packagist](https://packagist.org/packages/benevolences/dcat-iframe-tab)[ RSS](/packages/benevolences-dcat-iframe-tab/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

dcat-iframe-tab
===============

[](#dcat-iframe-tab)

介绍
--

[](#介绍)

这个扩展包基于laravel框架和dcat-admin框架，为解决dcat-admin没有自带兼容iframe架构。使用此扩展包可以构建出一个iframe架构并带有标签页管理的后台框架。

功能
--

[](#功能)

1. 双击关闭标签页
2. 当标签页过多时，可通过鼠标滚轮选择或者按住鼠标拖动
3. 支持右键操作（目前支持的操作有：关闭所有标签、关闭其他标签、刷新当前标签、复制标签页链接）

安装
--

[](#安装)

运行以下命令：

```
$ composer require benevolences/dcat-iframe-tab

```

然后运行：

```
# 发布扩展必备文件
$ php artisan vendor:publish --tag=iframe-tab
# 发布扩展配置文件
$ php artisan vendor:publish --tag=iframe-tab.config
# 发布扩展的视图文件(如想自定义某些内容可发布出去，建议不要使用)
$ php artisan vendor:publish --tag=iframe-tab.view

```

`php artisan vendor:publish --tag=iframe-tab` 会将css和js发布`public/vendor/iframe-tab`

更新
--

[](#更新)

相关更新内容请关注github的`tag`，里面有每个版本详细的更新：[https://github.com/benevolences/dcat-iframe-tab/releases](https://github.com/benevolence168/dcat-iframe-tab/releases)

基本迭代更新命令：

```
composer remove benevolences/dcat-iframe-tab
composer require benevolences/dcat-iframe-tab:版本号
php artisan vendor:publish --tag=iframe-tab --force

```

其他文件覆盖更新：

```
$ php artisan vendor:publish --tag=iframe-tab --force
$ php artisan vendor:publish --tag=iframe-tab.config --force

```

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

此操作会覆盖css和js还有配置文件，配置文件可以根据自己的需要来选择是否强制覆盖

### laravel12 需要新增

[](#laravel12-需要新增)

修改composer
----------

[](#修改composer)

"extra": { "laravel": { "dont-discover": \[ "benevolences/dcat-iframe-tab" \] } },

文件新增 bootstrap/providers.php
----------------------------

[](#文件新增-bootstrapprovidersphp)

// 包发现顺序下 iframe-tab 会早于 laravel-admin，导致 admin.context 未绑定，故延后手动注册 \\Benevolences\\DcatIframeTab\\IframeTabProvider::class,

配置
--

[](#配置)

配置文件在 `config/iframe_tab.php`下dcat-Iframe-tab可提供的配置并不多，根据自己的需要去配置：

```
return [
    # 是否开启iframe_tab
    'enable'                => env('START_IFRAME_TAB', true),
    # 底部设置
    'footer_setting'        => [
        'copyright'         => env('APP_NAME', ''),
        'app_version'       => env('APP_VERSION', ''),
        # 是否将底部置于菜单下
        'use_menu'          => false
    ],
    # 是否开启标签页缓存
    'cache'                 => env('IFRAME_TAB_CACHE', false),
    # 更改dialog表单默认宽高
    'dialog_area_width'     => env('IFRAME_TAB_DIALOG_AREA_WIDTH', '50%'),
    'dialog_area_height'    => env('IFRAME_TAB_DIALOG_AREA_HEIGHT', '90vh'),
    # iframe-tab占用的路由 默认 '/'
    'router'                => '/',
    'domain'                => null,
    # 是否开启懒加载模式
    'lazy_load'              => true
];
```

新增扩展接口和扩展功能
-----------

[](#新增扩展接口和扩展功能)

1. 用户可以在子页面引入 `public/vendor/iframe-tab/js/extend.js`文件，或者通过调用`window.iframeTabParent`全局对象来调用父级页面的iframe-tab
2. 引入新功能：超链接监听打开新页面加入iframe-tab：用户可自行定义超链接按钮，以此来打开新标签页页面，通过添加`iframe-extends=true` 和 `iframe-tab=true` 两个属性

```
添加新的标签页
```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance90

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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

Every ~0 days

Total

3

Last Release

53d ago

### Community

Maintainers

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

---

Top Contributors

[![yangshun93](https://avatars.githubusercontent.com/u/39073354?v=4)](https://github.com/yangshun93 "yangshun93 (8 commits)")

### Embed Badge

![Health badge](/badges/benevolences-dcat-iframe-tab/health.svg)

```
[![Health](https://phpackages.com/badges/benevolences-dcat-iframe-tab/health.svg)](https://phpackages.com/packages/benevolences-dcat-iframe-tab)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M822](/packages/laravel-socialite)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k38.6M289](/packages/laravel-dusk)[pinguo/php-msf

Pinguo Micro Service Framework For PHP

1.7k4.2k](/packages/pinguo-php-msf)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)

PHPackages © 2026

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