PHPackages                             dwnload/wp-settings-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dwnload/wp-settings-api

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dwnload/wp-settings-api
=======================

A PHP class abstraction that removes all the headaches of the WordPress settings API under the hood and builds a nice options panel on the fly.

v3.12.1(1y ago)1112.8k↓14.3%1[3 PRs](https://github.com/dwnload/WpSettingsApi/pulls)6MITPHPPHP ^8.3CI passing

Since Jul 28Pushed 1w ago1 watchersCompare

[ Source](https://github.com/dwnload/WpSettingsApi)[ Packagist](https://packagist.org/packages/dwnload/wp-settings-api)[ RSS](/packages/dwnload-wp-settings-api/feed)WikiDiscussions develop Synced yesterday

READMEChangelog (10)Dependencies (13)Versions (46)Used By (6)

Dwnload WordPress Settings Api
==============================

[](#dwnload-wordpress-settings-api)

![PHP from Packagist](https://camo.githubusercontent.com/6e6b798c341e54821c9b226edebb8a0b82789f6aa889bef816fd855144add063/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f64776e6c6f61642f77702d73657474696e67732d6170692e737667)[![Latest Stable Version](https://camo.githubusercontent.com/b21d643c0fdfa024b5496e148325fc9daf69b5a4bfe9d791b59f3fb63d0558dc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64776e6c6f61642f77702d73657474696e67732d6170692e737667)](https://packagist.org/packages/dwnload/wp-settings-api)[![Total Downloads](https://camo.githubusercontent.com/5f5ef799bec7f3b97292e2fceffda229230978e9b3820e8037b4d1854a70fc3e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64776e6c6f61642f77702d73657474696e67732d6170692e737667)](https://packagist.org/packages/dwnload/wp-settings-api)[![License](https://camo.githubusercontent.com/676669fa5252b99666c97d4fca18517574db24f9e254fdf099fe0ef9ce555197/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f64776e6c6f61642f77702d73657474696e67732d6170692e737667)](https://packagist.org/packages/dwnload/wp-settings-api)[![Build Status](https://github.com/dwnload/WpSettingsApi/actions/workflows/main.yml/badge.svg)](https://github.com/dwnload/WpSettingsApi/actions/workflows/main.yml/badge.svg)[![codecov](https://camo.githubusercontent.com/bf59583181117ed0fc4afbe5e2247376a54cb8d49ae379538e3c641b38fc6413/68747470733a2f2f636f6465636f762e696f2f67682f64776e6c6f61642f577053657474696e67734170692f2f6272616e63682f646576656c6f702f67726170682f62616467652e737667)](https://codecov.io/gh/dwnload/WpSettingsApi/)

It's a PHP class wrapper for handling WordPress [Settings API](http://codex.wordpress.org/Settings_API).

Package Installation (via Composer)
-----------------------------------

[](#package-installation-via-composer)

To install this package, edit your `composer.json` file:

```
{
    "require": {
        "dwnload/wp-settings-api": "^3.8"
    }
}
```

Now run:

`$ composer install dwnload/wp-settings-api`

Usage Example
-------------

[](#usage-example)

@see [examples/Example.php](https://github.com/dwnload/WpSettingsApi/tree/master/examples/Example.php)

#### Suggested package

[](#suggested-package)

⭐️ `frontpack/composer-assets-plugin`

**As of v3.2.1**, this shouldn't be needed any more (unless you are filtering local assets only). Assets will now be loaded via the jsdelivr CDN.

**Otherwise**, since this is a PHP package and not a WordPress plugin the assets included can't be loaded properly. In order to have the settings page inherit the styles and use the proper JS, you've got to copy the `/assets` directory to your plugin or theme. Then add the following to filter the asset src to your directory:

```
