blackcube / core
Blackcube CMS 核心系统
3.3.1
2024-09-20 11:08 UTC
Requires
- php: >=8.0
- ext-dom: *
- ext-fileinfo: *
- ext-intl: *
- ext-json: *
- ext-xmlreader: *
- hashids/hashids: ~4.1
- league/flysystem: ^2.4
- swaggest/json-schema: ~0.12
- vlucas/phpdotenv: ~5.4
- yiisoft/yii2: ~2.0.13
- yiisoft/yii2-imagine: ~2.3
Requires (Dev)
- codeception/codeception: ~5.0
- codeception/module-asserts: ~2.0
- codeception/module-yii2: ~1.1
- league/flysystem-async-aws-s3: ^2.5
- league/flysystem-aws-s3-v3: ^2.5
- league/flysystem-ftp: ^2.4
- league/flysystem-google-cloud-storage: ^2.4
- league/flysystem-memory: ^3.0
- league/flysystem-sftp: ^2.4
- yiisoft/yii2-debug: ~2.1
- yiisoft/yii2-gii: ~2.2
- dev-master
- dev-devel-3.x / 3.x-dev
- 3.3.1
- 3.3.0
- 3.2.1
- 3.2.0
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.10
- 3.0.9
- 3.0.8
- 3.0.7
- 3.0.6
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.0
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
- dev-devel
This package is auto-updated.
Last update: 2024-09-20 11:11:23 UTC
README
先决条件
- PHP 7.4+
- 扩展
dom
- 扩展
fileinfo
- 扩展
intl
- 扩展
json
- 扩展
mbstring
- 扩展
- Apache 或 NginX
预检查
将 blackcube 核心添加到项目中
composer require "blackcube/core"
安装
注意:
Blackcube 核心库
可以独立使用,但推荐使用Blackcube 管理员
在应用程序中注入 Blackcube 核心库
// main configuration file 'container' => [ 'singletons' => [ // local filesystem blackcube\core\components\Flysystem::class => [ 'class' => blackcube\core\components\FlysystemLocal::class, 'path' => getstrenv('FILESYSTEM_LOCAL_PATH'), ], // or s3 blackcube\core\components\Flysystem::class => [ 'class' => blackcube\core\components\FlysystemAwsS3::class, 'key' => getstrenv('FILESYSTEM_S3_KEY'), 'secret' => getstrenv('FILESYSTEM_S3_SECRET'), 'bucket' => getstrenv('FILESYSTEM_S3_BUCKET'), 'region' => getstrenv('FILESYSTEM_S3_REGION'), 'version' => 'latest', 'endpoint' => getstrenv('FILESYSTEM_S3_ENDPOINT'), 'pathStyleEndpoint' => getboolenv('FILESYSTEM_S3_PATH_STYLE'), ], ] ], // ... 'bootstrap' => [ // ... boostrapped modules 'blackcube', // blackcube core ], 'modules' => [ // ... other modules 'blackcube' => [ 'class' => blackcube\core\Module::class, 'plugins' => [ // additional plugins ], 'cmsEnabledmodules' => [ // additional modules ], 'allowedParameterDomains' => ['], // override components if needed 'components' => [ 'db' => ... 'cache' => ... 'fs' => ... ], /// end override ], ], // ...
更新数据库
在数据库中添加所需表
php yii.php migrate
使用基本数据初始化数据库
php yii.php bc:init
Blackcube 核心库现在已就绪,您可以使用它了