定制 buni/cms-core 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

buni/cms-core

Composer 安装命令:

composer require buni/cms-core

包简介

Buni CMS - turns a Laravel app into a full CMS

README 文档

README

This package provides a CMS scaffold for Laravel. It includes an installer, themes and plugins scaffolding, basic models, migrations and stubs for dashboard features.

Install via composer (local path during development):

composer require buni/cms:dev-main

Updater

This package includes a built-in updater service (Buni\\Cms\\Services\\Updater) which can check a remote JSON endpoint (configured via buni.updates.endpoint) that must return at least:

{
	"version": "1.2.3",

Post-install behavior
---------------------

When this package is installed via Composer it will run migrations automatically (if possible) and then attempt to detect whether Buni CMS is already initialized.

- If no admin users are present the installer will prompt (interactive) to either open the web installer at `APP_URL/buni/install` or run the CLI installer `php artisan buni:install --yes`.
- If `APP_URL` is not set the installer will print the installer URL and instructions to set `APP_URL`.

For non-interactive environments (CI or --no-interaction) the plugin will not attempt to open a browser or run interactive prompts; it will log instructions to complete installation manually.

If you prefer to run installation yourself after require, visit:

	<APP_URL>/buni/install

or run:

```bash
php artisan buni:install --yes
"url": "https://example.com/releases/buni-cms-1.2.3.zip",
"sha256": "<optional sha256 checksum of zip file>"

}


- If `sha256` is present the updater verifies the downloaded ZIP matches the checksum and will abort on mismatch.
- If a release is signed the metadata can include a `signature` (base64 of the signature) or `signature_url` to fetch the signature. The updater uses the configured public key at `buni.updates.public_key` to verify the release using SHA256+RSA (OpenSSL). The updater will abort if signature verification fails.
- The updater extracts the ZIP to a temporary location and performs an atomic swap (rename) of the package directory, keeping a timestamped backup directory for rollback.
- The updater supports `dry` (preview) and `migrate` options when invoked via the `buni:update` command.

Security notes
--------------

- Provide signed releases or at minimum a checksum in the update metadata to detect tampering.
- The current implementation performs a best-effort atomic swap via filesystem renames; on some filesystems (network mounts) atomicity may not be guaranteed.
- Test updates in a safe environment before applying to production. Backups are kept under the package parent directory named `buni_update_backup_<ts>`.

Usage
-----

Via artisan:

php artisan buni:update --yes --migrate


Or call the service from code and provide a Guzzle client for testing:

$updater = new Buni\Cms\Services\Updater(); $updater->run($command, ['migrate' => true]);


buni/cms-core 适用场景与选型建议

buni/cms-core 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 37 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 01 月 24 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 buni/cms-core 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 buni/cms-core 我们能提供哪些服务?
定制开发 / 二次开发

基于 buni/cms-core 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 37
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 11
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-24