buni / cms-core
Buni CMS - turns a Laravel app into a full CMS
Installs: 37
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
Type:composer-plugin
pkg:composer/buni/cms-core
Requires
- php: >=8.0
- composer-plugin-api: ^2.0
- guzzlehttp/guzzle: ^7.0
- laravel/framework: ^10.0|^11.0|^12.0
- laravel/sanctum: ^3.3|^4.0
- laravel/socialite: ^5.24
- nikic/php-parser: ^4.15|^5.0
- pragmarx/google2fa: ^9.0
Requires (Dev)
- illuminate/console: ^11.0|^12.0
- illuminate/contracts: ^11.0|^12.0
- illuminate/filesystem: ^11.0|^12.0
- orchestra/testbench: ^8.37
- phpunit/phpunit: ^9.5
- dev-main
- v1.4.57
- v1.4.56
- v1.4.55
- v1.4.54
- v1.4.53
- v1.4.52
- v1.4.51
- v1.4.50
- v1.4.49
- v1.4.48
- v1.4.47
- v1.4.46
- v1.4.45
- v1.4.44
- v1.4.43
- v1.4.41
- v1.4.40
- v1.4.39
- v1.4.38
- v1.4.37
- v1.4.36
- v1.4.35
- v1.4.34
- v1.4.33
- v1.4.31
- v1.4.30
- v1.4.29
- v1.4.28
- v1.4.27
- v1.4.26
- v1.4.25
- v1.4.24
- v1.4.23
- v1.4.22
- v1.4.21
- v1.4.20
- v1.4.19
- v1.4.18
- v1.4.17
- v1.4.16
- v1.4.15
- v1.4.14
- v1.4.13
- v1.4.12
- v1.4.11
- v1.4.10
- v1.4.9
- v1.4.8
- v1.4.7
- v1.4.6
- v1.4.5
- v1.4.4
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.23
- v1.3.22
- dev-release/v1.3.22
This package is auto-updated.
Last update: 2026-02-26 16:33:49 UTC
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]);