Download the PHP package italystrap/settings without Composer
On this page you can find all versions of the php package italystrap/settings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download italystrap/settings
More information about italystrap/settings
Files in italystrap/settings
Informations about the package settings
ItalyStrap Settings API
WordPress Settings API the OOP way
Work in progress: the project is currently in beta until considered viable. Until a 1.0.0 release the code in this repository is not stable. Expect changes breaking backward compatibility between minor versions (0.1.x -> 0.2.x).
Table Of Contents
- Installation
- Basic Usage
- Advanced Usage
- Contributing
- License
Installation
The best way to use this package is through Composer:
This package adheres to the SemVer specification and will be fully backward compatible between minor versions.
Idea of the structure
- Plugin MUST HAVE one options storage (call get_option one time and get all the options)
- Plugin COULD HAVE one or more settings pages with its own menu link (Parent and/or Child)
- Settings page COULD HAVE 0, 1 or many section
- Sections MUST HAVE at least 1 field
- Sections ARE separated by tabs
- Plugin COULD HAVE 0, 1 or more links in the plugins.php page
Basic Usage
The simpler way to use it is to instantiate the Builder and add the stuff you need.
You can find last updated code in the example.php file
Advanced Usage
TODO
Contributing
All feedback / bug reports / pull requests are welcome.
License
Copyright (c) 2019 Enea Overclokk, ItalyStrap
This code is licensed under the MIT.
Credits
TODO
All versions of settings with dependencies
italystrap/cleaner Version ^1.1
italystrap/config Version ^2.2
italystrap/fields Version ^2.0
italystrap/view Version ^1.1