Download the PHP package moogatw/wp-metabox without Composer

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

WP Metabox v1.0

Simple WordPress Class for metabox forks from oberonlai/wp-metabox

Requirements

Installation

Install with composer

Run the following in your terminal to install with Composer.

WP Metabox PSR-4 autoloading and can be used with the Composer's autoloader. Below is a basic example of getting started, though your setup may be different depending on how you are using Composer.

See Composer's basic usage guide for details on working with Composer and autoloading.

Basic Usage

Below is a basic example of setting up a simple custom filter with a post meta field.

php $metabox = new Metabox(array( 'id' => 'metabox_id', 'title' => 'My awesome metabox', 'screen' => 'post', // post type 'context' => 'advanced', // Options normal, side, advanced. 'priority' => 'default' ));



## Available Fields

After instantiating the above metabox, add a few fields to it.  Below is a list of the available fields. 

### Text

A simple text input.  Nothing special.

### Textarea

Textareas are used to store a body of text.  For a richer experience with HTML, see the [WYSIWYG](https://github.com/MatthewKosloski/wp-metabox-constructor-class#wysiwyg-editor) editor.

### Checkbox

Checkboxes are a great way to facilitate conditional logic.

### Radio

Radio fields are a great way to choose from a selection of options.

### Select

Select fields are a great way to choose from a selection of options.

### Image Upload

Use this to permit users to upload an image within the metabox.  Pro tip: use this with the [repeater](https://github.com/MatthewKosloski/wp-metabox-constructor-class#repeater) to dynamically manage the photos within a gallery or slideshow.

### WYSIWYG Editor

You can use a WYSIWYG editor to facilitate the management of HTML content.

### Number
The number fields are limited to enter the number.

### Color
The color fields are to select the color code.

### Grid System
The newly added grid system is used for the field width, using col-1 to 12, and the default is col-12.

### Repeater

All of the above fields can be added to a repeater to store an array of content with a dynamic length.  Here is an example of a repeater block with three fields: text, textarea, and image upload.

Notice:  `true` is a second argument to the repeater fields.  This is required.  Also, the variable, `$metabox_repeater_block_fields[]`, which stores the repeater block's fields, has a pair of brackets `[]` at the end of the variable name.  This is required. 

All versions of wp-metabox with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
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 moogatw/wp-metabox contains the following files

Loading the files please wait ....