https://github.com/wp-launchpad/framework-options
https://github.com/wp-launchpad/framework-options
launchpad module options settings transients wordpress
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wp-launchpad/framework-options
- Owner: wp-launchpad
- Created: 2024-04-26T19:28:16.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-21T23:22:55.000Z (5 months ago)
- Last Synced: 2025-04-05T03:02:54.432Z (about 2 months ago)
- Topics: launchpad, module, options, settings, transients, wordpress
- Language: PHP
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Description
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`.