PHPackages                             sungmee/admini - 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. sungmee/admini

ActivePackage[Admin Panels](/categories/admin)

sungmee/admini
==============

Admini is a simply auth and post (cms) publication Laravel packages for company homepage or micro blog.

1125PHPCI failing

Since May 18Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/sungmee/admini)[ Packagist](https://packagist.org/packages/sungmee/admini)[ RSS](/packages/sungmee-admini/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Admini Laravel
==============

[](#admini-laravel)

Admini 是一个轻量级的 Laravel 认证与内容管理（CMS）包，适用于公司官网或微型博客。

功能特性
----

[](#功能特性)

- 多语言支持（内置英文、简体中文）
- 文章/页面/公告/文件等多种内容类型
- 标签分类系统
- 富文本编辑器（集成 wangEditor）
- PC 端和移动端独立内容编辑
- 自动语言检测
- 自定义元数据（支持 text/textarea/radio/checkbox 等）

环境要求
----

[](#环境要求)

- PHP ^8.2
- Laravel ^11.0|^12.0

安装
--

[](#安装)

```
composer require sungmee/admini
```

配置
--

[](#配置)

发布配置文件和资源：

```
php artisan vendor:publish --provider="Sungmee\Admini\ServiceProvider"
```

按需选择发布项：

```
# 仅发布配置
php artisan vendor:publish --provider="Sungmee\Admini\ServiceProvider" --tag=config

# 仅发布视图
php artisan vendor:publish --provider="Sungmee\Admini\ServiceProvider" --tag=views

# 仅发布静态资源
php artisan vendor:publish --provider="Sungmee\Admini\ServiceProvider" --tag=public

# 仅发布翻译文件
php artisan vendor:publish --provider="Sungmee\Admini\ServiceProvider" --tag=translations
```

环境变量
----

[](#环境变量)

在 `.env` 中添加：

```
ADMINI_EMAIL=admin@example.com
ADMINI_PASSWORD=your_password
```

数据库迁移
-----

[](#数据库迁移)

```
php artisan migrate
```

路由
--

[](#路由)

后台管理入口默认挂载在 `/admini` 路径下：

路由方法说明`/admini/login`GET/POST登录`/admini/logout`POST登出`/admini/{type}`GET内容列表`/admini/{type}/create`GET新建内容`/admini/{type}`POST保存内容`/admini/{type}/{id}/edit`GET编辑内容`/admini/{type}/{id}`PUT/PATCH更新内容`/admini/{type}/{id}`DELETE删除内容`/admini/tags`GET/POST标签管理`/admini/tags/{id}/edit`GET编辑标签`/admini/tags/{id}`PUT/PATCH更新标签`/admini/tags/{id}`DELETE删除标签`/admini/upload`POST文件上传配置项说明
-----

[](#配置项说明)

发布后在 `config/admini.php` 中配置：

```
return [
    // 管理员邮箱和密码
    'email'    => env('ADMINI_EMAIL', 'admin@app.dev'),
    'password' => env('ADMINI_PASSWORD', '123456'),

    // 支持的语言
    'languages' => [
        ['language' => 'en', 'locale' => 'en'],
        ['language' => 'cn', 'locale' => 'zh_CN'],
    ],

    // 根据浏览器语言自动切换
    'auto_language'  => true,

    // 启用移动端编辑器
    'mobile_version' => false,

    // 显示副标题字段
    'post_subtitle'  => true,

    // 显示附加信息字段
    'post_addition'  => true,

    // 默认缩略图 URL
    'post_thumbnail_default' => null,

    // 启用的内容类型
    'post_type' => [
        'post'     => false,
        'page'     => true,
        'new'      => true,
        'notice'   => false,
        'file'     => false,
        'menu'     => false,
        'homepage' => false,
    ],

    // 允许删除的内容类型
    'delete_botton_in_post_types' => ['news', 'pages'],

    // 自定义元数据字段
    'post_meta' => [
        [
            'type'  => 'textarea',
            'name'  => 'style',
            'label' => 'custom_style',
            'col'   => 12
        ],
    ],

    // 自定义导航链接
    'custom_links' => [],
];
```

前端调用
----

[](#前端调用)

通过 Facade `Admin` 或依赖注入 `Admini` 获取前端数据：

```
// 获取列表并分页
Admin::posts('new')->paginate();

// 获取单篇文章
Admin::post('hello-world');

// 按标签筛选
Admin::postsByTag('technology')->paginate();

// 自定义排序和数量
Admin::posts('new')->orderBy('created_at')->order('DESC')->limit(5)->get();

// 获取页面列表
Admin::pages();
Admin::news();
Admin::notices();
Admin::files();

// 标签
Admin::tags();
Admin::tag('technology');
```

Blade 视图
--------

[](#blade-视图)

包内置了后台管理视图，你也可以发布到 `resources/views/vendor/admini` 进行自定义覆盖。

License
-------

[](#license)

MIT

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance55

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity12

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17464917?v=4)[摩凝(M.Chan)](/maintainers/sungmee)[@sungmee](https://github.com/sungmee)

---

Top Contributors

[![sungmee](https://avatars.githubusercontent.com/u/17464917?v=4)](https://github.com/sungmee "sungmee (43 commits)")

### Embed Badge

![Health badge](/badges/sungmee-admini/health.svg)

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

###  Alternatives

[kiwicommerce/module-cron-scheduler

Easily set up and manage cron jobs from the backend with a beautiful and managed timeline feature. Find the actual load on CPU/Memory by cron job execution.

74608.2k](/packages/kiwicommerce-module-cron-scheduler)[loevgaard/sylius-brand-plugin

A Sylius plugin for handling brands

29159.6k3](/packages/loevgaard-sylius-brand-plugin)[dog-ears/crud-d-scaffold

Extend Laravel 7's generators scaffold.

183.1k](/packages/dog-ears-crud-d-scaffold)

PHPackages © 2026

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