Download the PHP package wordpress-gcb/fields without Composer
On this page you can find all versions of the php package wordpress-gcb/fields. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download wordpress-gcb/fields
More information about wordpress-gcb/fields
Files in wordpress-gcb/fields
Download wordpress-gcb/fields
More information about wordpress-gcb/fields
Files in wordpress-gcb/fields
Vendor wordpress-gcb
Package fields
Short Description Turn a GCB block.fields.json controls schema into a WordPress block attribute schema — the PHP companion to @wordpress-gcb/fields, usable without the GCB plugin.
License GPL-2.0-or-later
Homepage https://gutenbergcontrolblocks.com
Package fields
Short Description Turn a GCB block.fields.json controls schema into a WordPress block attribute schema — the PHP companion to @wordpress-gcb/fields, usable without the GCB plugin.
License GPL-2.0-or-later
Homepage https://gutenbergcontrolblocks.com
Please rate this library. Is it a good library?
Informations about the package fields
wordpress-gcb/fields (PHP)
Turn a GCB block.fields.json controls schema into a WordPress block
attribute schema, in PHP, with no dependency on the GCB plugin. The
server-side companion to @wordpress-gcb/fields
(npm).
Part of GCB — Gutenberg Control Blocks.
Install
Usage
Schema::attributes() returns the { type, default } map WordPress expects —
structural controls (group/panel/tools-panel) are skipped, control types map to
the right attribute type, and each gets a sensible default (overridable per
control via attributeType / default).
API
Schema::attributes(array $controls): array— full controls → attributes map.Schema::attribute_type(string $controlType): string— one control type →string|number|boolean|array|object.Schema::default_value(string $attributeType): mixed— the empty default for a type.
Links
- Website: https://gutenbergcontrolblocks.com
- Source: https://github.com/wordpress-gcb/gcb-fields-php
- npm counterpart:
@wordpress-gcb/fields
License
GPL-2.0-or-later
All versions of fields with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package wordpress-gcb/fields contains the following files
Loading the files please wait ...