blackcube / admin
Blackcube CMS Administration system
Installs: 763
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Type:yii2-extension
Requires
- php: >=8.0
- ext-dom: *
- ext-fileinfo: *
- ext-intl: *
- ext-json: *
- blackcube/core: 3.5.1
- hashids/hashids: ~4.1
- swaggest/json-schema: ~0.12
- vlucas/phpdotenv: ~5.4
- web-auth/webauthn-lib: ^5.0
- wolfcast/browser-detection: ^2.9
- 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
- yiisoft/yii2-debug: ~2.1
- yiisoft/yii2-gii: ~2.2
- dev-master
- dev-devel-3.x / 3.x-dev
- 3.5.1
- 3.5.0
- 3.4.1
- 3.4.0
- 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.7.1
- 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.1
- 1.0.0
- dev-devel
This package is auto-updated.
Last update: 2024-11-30 21:31:42 UTC
README
Pre-requisites
- PHP 7.4+
- Extension
dom
- Extension
fileinfo
- Extension
intl
- Extension
json
- Extension
mbstring
- Extension
- Apache or NginX
- Blackcube core 3;x
Pre-flight
Add blackcube admin to the project
composer require "blackcube/admin"
Installation
Beware:
Blackcube admin
can only be installed ifBlackcube core
is already set up
Inject Blackcube admin in application
// 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 'bo', // blackcube admin ], // ... '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 ], 'bo' => [ 'class' => blackcube\admin\Module::class, 'adminTemplatesAlias' => '@app/admin', 'additionalAssets' => [ // additional modules ], 'modules' => [ // additional modules ], // override components if needed 'components' => [ 'db' => ... 'cache' => ... 'fs' => ... ], /// end override ], ], // ...
Update DB
Add needed tables in DB
php yii.php migrate
Init all RBAC Roles and permissions
php yii.php bc:rbac
the command must be run each time a new Rbac (role / permssion) is added through a module or plugin
Create initial administrator
php yii.php bc:admin/create
Blackcube admin is now ready, you can access it through
https://host.domain/bo