PHPackages                             itfengfanzhe/dcat-admin-banner - 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. itfengfanzhe/dcat-admin-banner

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

itfengfanzhe/dcat-admin-banner
==============================

轮播图扩展

03PHP

Since Mar 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/itfengfanzhe/dcat-extends-banner)[ Packagist](https://packagist.org/packages/itfengfanzhe/dcat-admin-banner)[ RSS](/packages/itfengfanzhe-dcat-admin-banner/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Dcat Admin 后台扩展
===============

[](#dcat-admin-后台扩展)

- banner轮播图模型

```
$banner = new \Dcat\Admin\Banner\Models\Banner();
```

- banner模型中的一些方法

1. 获取轮播图列表

```
/**
 * 获取轮播图列表
 * @param int $position_id 轮播图位置
 * @param int $limit 获取多少条数据 0不分页
 * @return array                    返回一个数组['count' => 10, 'list' => [....]]
 * @throws \Exception
 * @author 张建伟
 */
#[ArrayShape(['count' => "int", 'list' => "array|\Illuminate\Database\Eloquent\Builder[]|\Illuminate\Database\Eloquent\Collection"])]
public static function getBannerList(int $position_id, int $limit = 10): array {}
```

2. 获取轮播图详情

```
/**
 * 获取轮播图详情
 * @param int $banner_id        轮播图id
 * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Builder[]|\Illuminate\Database\Eloquent\Collection|Model|null
 * @throws \Exception
 * @author 张建伟
 */
public static function detail(int $banner_id): Model|array|null {}
```

- 轮播图位置模型

```
$position = new \Dcat\Admin\Banner\Models\BannerPosition();
```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

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.

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/itfengfanzhe-dcat-admin-banner/health.svg)

```
[![Health](https://phpackages.com/badges/itfengfanzhe-dcat-admin-banner/health.svg)](https://phpackages.com/packages/itfengfanzhe-dcat-admin-banner)
```

###  Alternatives

[luminous/luminous

A full featured syntax highlighting library.

521.7k2](/packages/luminous-luminous)

PHPackages © 2026

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