PHPackages                             mosiboom/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. mosiboom/dcat-iframe-tab

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

mosiboom/dcat-iframe-tab
========================

iframe-tab framework for dcat-admin

1.2.1(4y ago)9016.3k↑1115.9%19[10 issues](https://github.com/mosiboom/dcat-iframe-tab/issues)[1 PRs](https://github.com/mosiboom/dcat-iframe-tab/pulls)MITJavaScriptPHP &gt;=7.2.5

Since Feb 4Pushed 3y ago4 watchersCompare

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

READMEChangelog (10)DependenciesVersions (21)Used By (0)

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

[](#dcat-iframe-tab)

介绍
--

[](#介绍)

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

功能
--

[](#功能)

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

安装
--

[](#安装)

运行以下命令：

```
$ composer require mosiboom/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`，里面有每个版本详细的更新：

基本迭代更新命令：

```
composer remove mosiboom/dcat-iframe-tab
composer require mosiboom/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还有配置文件，配置文件可以根据自己的需要来选择是否强制覆盖

配置
--

[](#配置)

配置文件在 `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

37

—

LowBetter than 81% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.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 ~11 days

Total

20

Last Release

1740d ago

### Community

Maintainers

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

---

Top Contributors

[![mosiboom](https://avatars.githubusercontent.com/u/33051181?v=4)](https://github.com/mosiboom "mosiboom (33 commits)")[![Abbotton](https://avatars.githubusercontent.com/u/16308633?v=4)](https://github.com/Abbotton "Abbotton (1 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/socialite

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

5.7k104.3M829](/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)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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