Download the PHP package sofyansitorus/wp-yes without Composer

On this page you can find all versions of the php package sofyansitorus/wp-yes. 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 wp-yes

WordPress-Yet-Easy-Settings

WordPress Yet Easy Settings class is PHP class for easy to build advanced admin page for WordPress.

Built-in setting field types

Key features

How to Use

Installation:

composer require sofyansitorus/wp-yes

After you include the WP_Yes class file, all you have to do is to initialize the WP_Yes class, then add the settings object properties in sequence add tabs, add sections, add fields.

Simple admin page setting

This is the simplest way to initialize the setting page without defining the tabs and sections.

We can also add the setting fields in bulk by using the WP_Yes::add_fields method.

Simple admin page setting with Section

This is the simplest way to initialize the setting page without defining the tabs and sections.

Multiple tabs admin page setting

By default, the setting page will only has 1 tab. If you want to add more tabs, just simply call the WP_Yes::add_tab method after the last WP_Yes::add_field for each tabs, and then following in sequence calling WP_Yes::add_section and WP_Yes::add_field method.

A note you must keep in hand here is that you need to have a unique value for the menu_slug parameter that passed in the WP_Yes class constructor and field id key in the WP_Yes::add_field method parameter. You can have same tab id in different page menu, also can has same sections id in different tabs.

Admin page setting with custom action button and help tabs

To add help tabs and custom actin button to the admin page, you need to call WP_Yes::add_help_tab and WP_Yes::add_button method anywhere before calling the WP_Yes::init method.

Getting the stored option value

To get the option value is by call built-in WordPress get_option function with filed id as the first argument.

If you set the $setting_prefix value at third arguments in WP_Yes constructor, or set the prefix with WP_Yes::set_prefix method, then you need to pre-pend that prefix when calling *get_option** function.

For more advanced example such as adding custom tab content, adding custom page content, etc, please take a look all the samples available in example folder.

Screenshots

Simple Setting Form

Simple Setting Form

All Fields Types

All Fields Types All Fields Types

Setting Form with Tabs

Setting Form with Tabs

Admin Page with Action Button

Admin Page with Action Button

Admin Page with Help Tabs

Admin Page with Help Tabs

Custom Tab Content

Custom Tab Content

Custom Page Content

Custom Page Content

Sub-menu Admin Page

Sub-menu Admin Page


All versions of wp-yes with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.3
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 sofyansitorus/wp-yes contains the following files

Loading the files please wait ....