Download the PHP package solutionbox/wordpress-settings-framework without Composer

On this page you can find all versions of the php package solutionbox/wordpress-settings-framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wordpress-settings-framework

WordPress Settings Framework

Total Downloads Latest Stable Version License

The WordPress Settings Framework aims to take the pain out of creating settings pages for your WordPress plugins by effectively creating a wrapper around the WordPress settings API and making it super simple to create and maintain settings pages.

This repo is actually a working plugin which demonstrates how to implement SBSA in your plugins. See src/sbsa-test.php for details.

You can use this framework with composer if you are using auto loading in your plugin.

Installation

Setting Up Your Plugin

  1. Install the package via composer.
  2. Create a "settings" folder in your plugin root.
  3. Create a settings file in your new "settings" folder (e.g. settings-general.php)

Now you can set up your plugin like:

Your settings values can be accessed like so:

This will get either the saved setting values, or the default values that you set in your settings file.

Or by getting individual settings:

The Settings Files

The settings files work by filling the global $sbsa_settings array with data in the following format:

Valid fields values are:

See settings/example-settings.php for an example of possible values.

API Details

new Solution_Box_Settings\SettingsAPI( string $settings_file [, string $option_group = ''] )

Creates a new settings option_group based on a settings file.

 Solution_Box_Settings\SettingsAPI::get_setting( $option_group, $section_id, $field_id )

Get a setting from an option group

Solution_Box_Settings\SettingsAPI::delete_settings( $option_group )

Delete all the saved settings from a option group

Actions & Filters

Filters

Actions

Examples

Example 1 Tabless settings

image

Example 2 Tabbed settings

image

Credits

The WordPress Settings Framework was Cloned from iconicwp then converted into php package with more features.

Please contribute by reporting bugs and submitting pull requests.

Want to say thanks? Consider tipping me.


All versions of wordpress-settings-framework with dependencies

PHP Build Version
Package Version
Requires woocommerce/woocommerce-sniffs Version ^0.1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package solutionbox/wordpress-settings-framework contains the following files

Loading the files please wait ....