rondodevs/craft-toolkit
Composer 安装命令:
composer require rondodevs/craft-toolkit
包简介
Internal Craft CMS toolkit: site config overrides, KV/edge cache purge helpers, static labels and related utilities.
README 文档
README
Internal Craft CMS plugin bundling a set of control panel utilities:
- Site Config — CP-editable overrides for site name/URL on top of env defaults, exposed via GraphQL.
- KV Cache — settings and controls to purge an external edge/KV cache (tags or full flush) when entries/assets change.
- Static Labels — CP-editable label overrides per site, exposed via GraphQL.
- Misc handlers: automatic average-color calculation for image assets, a CP alert when the default GraphQL route is missing, and a site-request redirect controller.
Requirements
- Craft CMS 5.0.0 or later
- PHP 8.2 or later
Installation
From Packagist (once published)
composer require rondodevs/craft-toolkit
Then install the plugin in the Craft control panel, or via:
php craft plugin/install toolkit
Local development (path repository)
While developing this plugin alongside a Craft project, add a path repository
to the consuming project's composer.json so Composer symlinks it instead of
downloading a tagged release:
{
"repositories": [
{
"type": "path",
"url": "../../studio-fes/craft-toolkit",
"options": { "symlink": true }
}
],
"require": {
"rondodevs/craft-toolkit": "*"
}
}
Adjust the url to the relative (or absolute) path to this directory, then run
composer update rondodevs/craft-toolkit. Changes made here are picked up
immediately in the consuming project without republishing.
Publishing to Packagist
- Push this repository to GitHub (e.g.
github.com/rondodevs/craft-toolkit). - Tag a release, e.g.
git tag v1.0.0 && git push --tags. - On packagist.org, submit the GitHub repository URL.
- Enable the GitHub Packagist webhook (Packagist "Settings" tab -> instructions, or add it manually under the GitHub repo's Settings -> Webhooks) so new tags are picked up automatically.
- From then on,
composer require rondodevs/craft-toolkitresolves the package for anyone with access to the repository.
License
MIT
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-07-12