drago-ex/project-settings
最新稳定版本:v1.1.3
Composer 安装命令:
composer require drago-ex/project-settings
包简介
Individual settings for the application.
README 文档
README
Individual settings for the application.
Requirements
- PHP >= 8.3
- Nette Framework
- Composer
- Drago Project core packages
Installation
composer require drago-ex/project-settings
Project files
File copying is handled automatically by drago-ex/project-tools,
which must be installed in your project. Without it, copy the files manually according to the copy section
in this package's composer.json. To skip this package, set "skip": true under
extra.drago-tools.packages.<package-name> in your root composer.json.
Use in the presenter
Use in presenter where you have access protected as an administrator.
use App\UI\Backend\Settings\SettingsRequire
Use in latte template
{varType App\UI\Backend\Settings $settings} {* website name *} {$settings->get('website')} {* website description *} {$settings->get('description')} {if $settings->has('website')} {$settings->get('website')} {/if}
We can customize the settings according to our needs.
Generate permission provider
If you use project ACL (drago-ex/permission), you can generate a module permission class:
php vendor/bin/create-settings-permission
统计信息
- 总下载量: 80
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-28