raruto / cockpit-sample-data
Cockpit CMS 的样本数据安装插件
0.0.1
2021-02-15 15:28 UTC
Requires
- php: >= 7.3
- composer/installers: ^1.10
Suggests
- aheinze/cockpit: Please install Cockpit before installing this addon
This package is auto-updated.
Last update: 2024-09-15 23:27:46 UTC
README
为 Cockpit CMS 提供样本数据安装插件
功能
- 自动在 Cockpit CMS 安装时导入样本数据
安装
手动
下载 最新版本 并解压到 COCKPIT_PATH/addons/SampleData 目录
Git
git clone https://github.com/Raruto/cockpit-sample-data.git ./addons/SampleData
Cockpit CLI
php ./cp install/addon --name SampleData --url https://github.com/Raruto/cockpit-sample-data.git
Composer
-
确保在项目的 composer.json 文件中定义了 cockpit 插件路径
{ "name": "MY_PROJECT", "extra": { "installer-paths": { "cockpit/addons/{$name}": ["type:cockpit-module"] } } } -
在项目根目录下运行
composer require raruto/cockpit-sample-data
相关项目: cockpit-blog