2017 © Pedro Peláez
 

library wp-better-settings

A simplified OOP implementation of the WP Settings API

image

typisttech/wp-better-settings

A simplified OOP implementation of the WP Settings API

  • Friday, May 11, 2018
  • by TangRufus
  • Repository
  • 1 Watchers
  • 3 Stars
  • 12,789 Installations
  • PHP
  • 2 Dependents
  • 4 Suggesters
  • 0 Forks
  • 3 Open issues
  • 29 Versions
  • 9 % Grown

The README.md

WP Better Settings

Latest Stable Version Total Downloads Build Status codecov Scrutinizer Code Quality PHP Versions Tested StyleCI License Donate via PayPal Hire Typist Tech, (*1)

A simplified OOP implementation of the WP Settings API., (*2)

, (*3)

Install

Installation should be done via composer, details of how to install composer can be found at https://getcomposer.org/., (*4)

``` bash $ composer require typisttech/wp-better-settings, (*5)


You should put all `WP Better Settings` classes under your own namespace to avoid class name conflicts. - [imposter-plugin](https://github.com/Typisttech/imposter-plugin) - [mozart](https://github.com/coenjacobs/mozart) ## Usage ### Example Coming soon... Use the source... ## Frequently Asked Questions ### Is this a plugin? No, this is a package that should be part of your plugin. ### What to do when wp.org plugin team tell me to clean up the `vendor` folder? Re-install packages via the following command. This package exports only necessary files to `dist`. ```bash $ composer install --no-dev --prefer-dist --optimize-autoloader

Can two different plugins use this package at the same time?

Yes, if put all WP Better Settings classes under your own namespace to avoid class name conflicts., (*6)

Do you have a demo plugin that use this package?

You can install this demo plugin by, (*7)

$ wp plugin install https://github.com/TypistTech/wp-better-settings/archive/nightly.zip --activate

Check out wp-better-settings.php. We use it for acceptance tests., (*8)

Do you have real life examples that use this package?

Here you go:, (*9)

Add your own plugin here, (*10)

It looks awesome. Where can I find some more goodies like this?

Support

Love wp-better-settings? Help me maintain it, a donation here can help with it., (*11)

Why don't you hire me?

Ready to take freelance WordPress jobs. Contact me via the contact form here or, via email info@typist.tech, (*12)

Want to help in other way? Want to be a sponsor?

Contact: Tang Rufus, (*13)

Developing

To setup a developer workable version you should run these commands:, (*14)

$ composer create-project --keep-vcs --no-install typisttech/wp-better-settings:dev-master
$ cd wp-better-settings
$ composer install

Running the Tests

WP Better Settings run tests on Codeception and relies wp-browser to provide WordPress integration. Before testing, you have to install WordPress locally and add a codeception.yml file. See *.suite.example.yml for Local by Flywheel configuration examples., (*15)

Actually run the tests:, (*16)

bash $ composer test, (*17)

We also test all PHP files against PSR-2: Coding Style Guide and part of the WordPress coding standard., (*18)

Check the code style with $ composer check-style., (*19)

Feedback

Please provide feedback! We want to make this package useful in as many projects as possible. Please submit an issue and point out what you do and don't like, or fork the project and make suggestions. No issue is too small., (*20)

Change log

Please see CHANGELOG for more information on what has changed recently., (*21)

Security

If you discover any security related issues, please email wp-better-settings@typist.tech instead of using the issue tracker., (*22)

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*23)

Credits

WP Better Settings is a Typist Tech project and maintained by Tang Rufus, freelance developer for hire., (*24)

Full list of contributors can be found here., (*25)

Special thanks to Alain Schlesser whose Using A Config To Write Reusable Code Series makes the first versions of this package., (*26)

License

WP Better Settings is licensed under the GPLv2 (or later) from the Free Software Foundation. Please see License File for more information., (*27)

The Versions

27/03 2017

dev-fix-settings-not-being-saved

dev-fix-settings-not-being-saved https://www.typist.tech/projects/wp-better-settings

A simplified OOP implementation of the WP Settings API

  Sources   Download

GPL-2.0+

The Requires

  • php >7.0

 

The Development Requires

wordpress wp settings api

28/02 2017

0.7.1

0.7.1.0 https://github.com/TypistTech/wp-better-settings

A simplified OOP implementation of the WP Settings API

  Sources   Download

GPL-2.0+

The Requires

  • php >7.0

 

The Development Requires

wordpress wp settings api

26/02 2017

0.7.0

0.7.0.0 https://github.com/TypistTech/wp-better-settings

A simplified OOP implementation of the WP Settings API

  Sources   Download

GPL-2.0+

The Requires

  • php >7.0

 

The Development Requires

wordpress wp settings api

24/02 2017

0.6.0

0.6.0.0 https://github.com/TypistTech/wp-better-settings

A simplified OOP implementation of the WP Settings API

  Sources   Download

GPL-2.0+

The Requires

  • php >7.0

 

The Development Requires

wordpress wp settings api

23/02 2017

0.5.0

0.5.0.0 https://github.com/TypistTech/wp-better-settings

A simplified OOP implementation of the WP Settings API

  Sources   Download

GPL-2.0+

The Requires

  • php >7.0

 

The Development Requires

wordpress wp settings api

21/02 2017

0.4.0

0.4.0.0 https://github.com/TypistTech/wp-better-settings

A simplified OOP implementation of the WP Settings API

  Sources   Download

GPL-2.0+

The Requires

  • php >7.0

 

The Development Requires

wordpress wp settings api

21/02 2017

0.3.1

0.3.1.0 https://github.com/TypistTech/wp-better-settings

A simplified OOP implementation of the WP Settings API

  Sources   Download

GPL-2.0+

The Requires

  • php >7.0

 

The Development Requires

wordpress wp settings api

20/02 2017

0.3.0

0.3.0.0 https://github.com/TypistTech/wp-better-settings

A simplified OOP implementation of the WP Settings API

  Sources   Download

GPL-2.0+

The Requires

  • php >7.0

 

The Development Requires

wordpress wp settings api

19/02 2017

0.2.0

0.2.0.0 https://github.com/TypistTech/wp-better-settings

A simplified OOP implementation of the WP Settings API

  Sources   Download

GPL-2.0+

The Requires

  • php >7.0

 

The Development Requires

wordpress wp settings api

18/02 2017

0.1.1

0.1.1.0 https://github.com/TypistTech/wp-better-settings

A simplified OOP implementation of the WP Settings API

  Sources   Download

GPL-2.0+

The Requires

  • php >7.0

 

The Development Requires

wordpress wp settings api

14/02 2017

0.1.0

0.1.0.0 https://github.com/TypistTech/wp-better-settings

A simplified OOP implementation of the WP Settings API

  Sources   Download

GPL-2.0+

The Requires

  • php >7.0

 

The Development Requires

wordpress wp settings api