hexaua / yii2-support
Yii2 support module. Ticket system with customer.
Installs: 1 192
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 2
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.6
- yiisoft/yii2: ~2.0
Requires (Dev)
- codeception/codeception: ^2.2
- codeception/specify: ~0.4.5
- codeception/verify: ~0.3.1
- fzaninotto/faker: ^1.6
- phpunit/php-code-coverage: ~4.0
- satooshi/php-coveralls: ~1.0
- squizlabs/php_codesniffer: ~2.8.0
This package is not auto-updated.
Last update: 2025-03-22 00:34:39 UTC
README
Installation
Edit your composer.json file, in require section add
"hexaua/yii2-support": "dev-master" // Example "require": { "hexaua/yii2-support": "dev-master" }
Apply migrations
To apply module migrations from project root run the following command
php yii migrate --migrationPath=hexaua\yiisupport\migrations
Create permissions
Your project must support rbac and have at least two roles. One for administrator and one for user.
php yii support/permissions
Include module
Configuring module
'modules' => [ 'support' => [ 'class' => 'hexaua\yiisupport\Module', 'userRole' => 'partner', // Default to user 'adminRole => 'admin' // Default to admin ] ]