pollora/option
Composer 安装命令:
composer require pollora/option
包简介
A modern PHP package for WordPress option management with validation and immutable value objects
README 文档
README
A modern PHP package for WordPress option management with validation and immutable value objects.
Installation
composer require pollora/option
Quick Start
use Pollora\Option\Option; // Get with default $value = Option::get('site_title', 'My Site'); // Smart upsert (creates or updates) Option::set('site_title', 'New Title'); // Check existence if (Option::exists('api_key')) { Option::delete('api_key'); } // Update existing Option::update('posts_per_page', 20);
Pollora framework users: When the framework is available, prefer the Laravel facade
Pollora\Support\Facades\Optionfor full DI container support. A notice is emitted if you use the standalone class within the framework.
Documentation
See docs/options.md for full documentation.
Testing
composer test
License
GPL-2.0-or-later
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2026-06-23