Download the PHP package wpify/custom-fields without Composer

On this page you can find all versions of the php package wpify/custom-fields. 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 custom-fields

WPify Custom Fields

PHP 8.1+ WordPress 6.2+ License Packagist Version

A developer-oriented WordPress library for custom fields. 59 field types, 15 integration points (metaboxes, options pages, taxonomies, users, Gutenberg blocks, WooCommerce products/orders/coupons, and more), zero PHP dependencies, native WordPress storage — values are plain get_post_meta() / get_option() calls with no proprietary getters.

Quick Start

Reading values — standard WordPress functions, no proprietary API required:

Why This Library

Field Types

Simple (22)

Type Description
text Single-line text input
textarea Multi-line text input
number Numeric input with min/max/step
email Email address input
password Password input
tel Phone number input
url URL input
date Date picker
datetime Date and time picker
time Time picker
month Month picker
week Week picker
date_range Start and end date pair
select Dropdown select (sync or async options)
multi_select Multiple selection dropdown
radio Radio button group
checkbox Single checkbox
multi_checkbox Checkbox group
toggle On/off switch
multi_toggle Toggle group
color Color picker
range Range slider

Relational (10)

Type Description
post Single post selector
multi_post Multiple post selector
term Single term selector
multi_term Multiple term selector
attachment Media library file picker
multi_attachment Gallery / multiple files
direct_file Direct file upload (no media library)
multi_direct_file Multiple direct file uploads
link Link with URL, title, and target
multi_link Multiple links

Complex (6)

Type Description
group Field group (nested fields)
cloudflare Cloudflare zone connection
code Code editor with syntax highlighting
wysiwyg TinyMCE rich text editor
mapycz Mapy.cz map with coordinates
inner_blocks Gutenberg InnerBlocks

Repeater (14)

Type Description
multi_group Repeatable field group
multi_text Repeatable text
multi_textarea Repeatable textarea
multi_number Repeatable number
multi_email Repeatable email
multi_tel Repeatable phone
multi_url Repeatable URL
multi_date Repeatable date
multi_datetime Repeatable datetime
multi_time Repeatable time
multi_month Repeatable month
multi_week Repeatable week
multi_date_range Repeatable date range
multi_mapycz Repeatable map

Static (5)

Type Description
html Custom HTML content
button Action button
multi_button Button group
title Section title / heading
hidden Hidden input

Visual (2)

Type Description
wrapper Visual wrapper around fields
columns Multi-column layout

Integration Points

WordPress Core

Method Context
create_metabox() Post / CPT meta box
create_gutenberg_block() Gutenberg block
create_options_page() Admin options page
create_taxonomy_options() Taxonomy term fields
create_user_options() User profile fields
create_comment_metabox() Comment meta fields
create_menu_item_options() Nav menu item fields

WooCommerce

Method Context
create_product_options() Product data tab
create_product_variation_options() Product variation fields
create_order_metabox() Order meta box (HPOS compatible)
create_woocommerce_settings() WooCommerce settings tab
create_coupon_options() Coupon fields
create_subscription_metabox() Subscription meta box
create_membership_plan_options() Membership plan fields

Multisite

Method Context
create_site_options() Site options page

All methods are called on the wpify_custom_fields() singleton instance.

Features

Conditional Logic

Show or hide fields based on other field values:

Supported operators: ==, !=, >, >=, <, <=, between, contains, not_contains, in, not_in, empty, not_empty. Conditions support AND/OR logic, nested groups, and dot-notation paths for nested fields.

Tabs

Organize fields into a tabbed interface:

Fluent FieldFactory API

Build field definitions with PHP 8 named parameters and full IDE autocomplete:

Extensibility

See the Extending documentation for a full guide on creating custom field types.

Installation

Via Composer (Recommended)

Include the Composer autoloader in your plugin or theme:

As a WordPress Plugin

Download from the Releases page, upload to /wp-content/plugins/, and activate.

Requirements

Documentation

License

WPify Custom Fields is released under the GPL-3.0-or-later license.


All versions of custom-fields with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
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 wpify/custom-fields contains the following files

Loading the files please wait ...