PHPackages                             catchadmin/plugin - 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. catchadmin/plugin

ActiveLibrary[Admin Panels](/categories/admin)

catchadmin/plugin
=================

CatchAdmin Plugin Manager

1.2.0(2mo ago)01.8k↑94.4%2MITPHP

Since Nov 29Pushed 2mo agoCompare

[ Source](https://github.com/catch-admin/plugin-manager)[ Packagist](https://packagist.org/packages/catchadmin/plugin)[ RSS](/packages/catchadmin-plugin/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (6)Versions (13)Used By (2)

CatchAdmin 插件管理
===============

[](#catchadmin-插件管理)

CatchAdmin 的插件管理系统，提供插件的安装、卸载、启用、禁用等功能。

安装
--

[](#安装)

```
composer require catchadmin/plugin
```

功能
--

[](#功能)

- 插件在线市场
- 本地插件管理
- 插件安装/卸载/启用/禁用
- 插件生命周期钩子（Hook）
- 插件初始化命令

命令
--

[](#命令)

### 初始化插件

[](#初始化插件)

```
php artisan catch:plugin-init
```

交互式创建新插件，包括：

- 插件标题和包名
- 插件类型（library / plugin/ module/ project）
- ServiceProvider（可选）
- Hook 文件（可选）

### 其他命令

[](#其他命令)

```
# 安装插件
php artisan catch:plugin-install

# 打包插件
php artisan catch:plugin-pack
```

Hook 系统
-------

[](#hook-系统)

插件可以定义生命周期钩子：

```
// src/Hook.php
class Hook
{
    public static function afterInstall(array $pluginInfo): void
    {
        // 安装后执行
        Artisan::call('migrate', [
            '--path' => 'vendor/my/plugin/database/migrations',
        ]);
    }

    public static function beforeUninstall(array $pluginInfo): void
    {
        // 卸载前执行
    }
}
```

详细文档请参考 [catchadmin/plugin-hook](https://github.com/catch-admin/plugin-hook)。

许可证
---

[](#许可证)

MIT

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance86

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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 ~12 days

Recently: every ~28 days

Total

12

Last Release

73d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/58aeeb2b0737ee495a9d240e562b55ef5f2140d3da9c887af155b296f2086f33?d=identicon)[JaguarJack](/maintainers/JaguarJack)

---

Top Contributors

[![JaguarJack](https://avatars.githubusercontent.com/u/16589247?v=4)](https://github.com/JaguarJack "JaguarJack (24 commits)")

### Embed Badge

![Health badge](/badges/catchadmin-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/catchadmin-plugin/health.svg)](https://phpackages.com/packages/catchadmin-plugin)
```

###  Alternatives

[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.5k17.6M514](/packages/laravel-boost)

PHPackages © 2026

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