onix-systems-php / hyperf-app-settings
An extension that consists of settings for an application
Installs: 1 676
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Type:extension
Requires
- php: >=8.1
- ext-json: *
- hyperf/cache: ^3.1
- hyperf/constants: ^3.1
- hyperf/contract: ^3.1
- hyperf/database: ^3.1
- hyperf/db-connection: ^3.1
- hyperf/translation: ^3.1
- hyperf/validation: ^3.1
- onix-systems-php/hyperf-actions-log: ^1.2
- onix-systems-php/hyperf-core: >=1.2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.2|^3.0
- mockery/mockery: ^1.0
- phpstan/phpstan: ^1.0
- phpunit/phpunit: >=7.0
- swoole/ide-helper: ^4.5|^5.0
Suggests
- swow/swow: Required to create swow components.
README
Includes the following classes:
- DTO:
- UpdateAppSettingDTO.
- Model:
- AppSetting;
- Repository:
- AppSettingsRepository.
- Service:
- AppSettingsService.
- UpdateAppSettingsService.
Install:
composer require onix-systems-php/hyperf-app-settings
Publish config and database migrations:
php bin/hyperf.php vendor:publish onix-systems-php/hyperf-app-settings
Fill app_settings
config with fields you want to store in database and validation rules for them, following existing examples.