wp-launchpad / framework-options
Options library for the framework Launchpad
Installs: 315
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
pkg:composer/wp-launchpad/framework-options
Requires
- php: >=7.0
- wp-launchpad/core: ^3.1
- wp-launchpad/options: ^3.1
Requires (Dev)
- wp-launchpad/phpunit-wp-hooks: ^3.1
- wp-media/phpunit: ^3.0
This package is auto-updated.
Last update: 2025-10-22 01:03:00 UTC
README
This module provides options facades.
For that we have 3 types of options:
- Options: Regular options.
- Transients: Temporary options.
- Settings: Plugin settings all saved in the same place.
Install
To install the library run the following command: composer require wp-launchpad/framework-options-take-off
Structure
Options are build around inflectors which add automatically facades to the objects aware about them.
For the Options you should implement the interface LaunchpadFrameworkOptions\Interfaces\OptionsAwareInterface and the trait LaunchpadFrameworkOptions\Traits\OptionsAwareTrait.
For the Transients you should implement the interface LaunchpadFrameworkOptions\Interfaces\TransientsAwareInterface and the trait LaunchpadFrameworkOptions\Traits\TransientsAwareTrait.
For the Settings you should implement the interface LaunchpadFrameworkOptions\Interfaces\SettingsAwareInterface and the trait LaunchpadFrameworkOptions\Traits\SettingsAwareTrait.