PHPackages                             theday-seeyou/web-base-core - 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. theday-seeyou/web-base-core

ActiveLibrary

theday-seeyou/web-base-core
===========================

Reusable CMS administration core for WebBase

v0.3.0(today)022↑2627.3%1MITPHPPHP &gt;=8.1

Since Aug 28Pushed todayCompare

[ Source](https://github.com/theday-seeyou/web-base-core)[ Packagist](https://packagist.org/packages/theday-seeyou/web-base-core)[ Docs](https://github.com/theday-seeyou/web-base-core)[ RSS](/packages/theday-seeyou-web-base-core/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (5)Versions (6)Used By (1)

WebBase Core
============

[](#webbase-core)

`theday-seeyou/web-base-core` 是 WebBase CMS 的可复用后台核心包，基于 ThinkPHP 8，提供控制器、模型、查询助手、RBAC、队列、存储和运行时服务。

安装
--

[](#安装)

发布到 Packagist 后：

```
composer require theday-seeyou/web-base-core
php think service:discover
```

安全行为
----

[](#安全行为)

- 本包不是 Composer plugin。
- Composer 安装和更新不会写入项目的 `app/`、`config/`、`database/` 或 `public/`。
- 包内不携带 Windows 可执行文件。
- `webbase:publish` 只能由开发者显式运行。
- `webbase:publish` 默认跳过已有文件，只有显式 `--force` 才覆盖。
- 发布命令不会自动删除旧迁移文件。
- 文件复制默认不覆盖目标文件，也不会删除来源文件。
- HTTP/HTTPS 默认校验证书，并禁止跳转到本地文件等非网络协议。
- 加密数据使用 AES-256-GCM，同时保留旧 AES-CBC 密文的只读兼容。

命名空间
----

[](#命名空间)

```
use WebBase\Core\Controller;
use WebBase\Core\BaseModel;
use WebBase\Core\Model;
use WebBase\Core\service\AdminService;
```

默认软删除与回收站
---------

[](#默认软删除与回收站)

需要回收站能力的业务模型统一继承 `BaseModel`，对应数据表必须包含 `deleted_at datetime null default null`。框架不检测也不兼容其他删除字段。

```
final class Article extends BaseModel
{
}

Article::mQuery();         // 仅正常数据，自动添加 deleted_at IS NULL
Article::mRecycleQuery();  // 仅回收站数据
Article::mAllQuery();      // 正常数据和回收站数据
Article::mDelete();        // 软删除
Article::mRestore();       // 恢复
Article::mForceDelete();   // 从回收站永久删除
```

开发
--

[](#开发)

```
composer install
composer validate --strict
vendor/bin/phpunit
composer audit
```

普通单元测试不要求数据库。需要运行数据库集成测试时，显式配置：

```
set WEBBASE_TEST_DB_HOST=127.0.0.1
set WEBBASE_TEST_DB_PORT=3306
set WEBBASE_TEST_DB_NAME=webbase_test
set WEBBASE_TEST_DB_USER=root
set WEBBASE_TEST_DB_PASSWORD=your-password
vendor/bin/phpunit
```

PowerShell 使用 `$env:WEBBASE_TEST_DB_NAME = "webbase_test"` 形式设置环境变量。

许可证
---

[](#许可证)

项目自身修改使用 MIT License。衍生代码的原始版权声明见 `THIRD_PARTY_NOTICES.md`。

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance100

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity36

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

4

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26808169?v=4)[Theday](/maintainers/theday-seeyou)[@theday-seeyou](https://github.com/theday-seeyou)

---

Top Contributors

[![theday-seeyou](https://avatars.githubusercontent.com/u/26808169?v=4)](https://github.com/theday-seeyou "theday-seeyou (5 commits)")

---

Tags

cmsthinkphpwebbase

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/theday-seeyou-web-base-core/health.svg)

```
[![Health](https://phpackages.com/badges/theday-seeyou-web-base-core/health.svg)](https://phpackages.com/packages/theday-seeyou-web-base-core)
```

###  Alternatives

[zoujingli/think-library

Core library and common services for ThinkAdmin

8374.7k20](/packages/zoujingli-think-library)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.9M536](/packages/pimcore-pimcore)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M236](/packages/sulu-sulu)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k21](/packages/tempest-framework)

PHPackages © 2026

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