Download the PHP package pedalcms/wp-cmf without Composer

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

Cassette-CMF (WordPress Content Modeling Framework)

A powerful, flexible Composer library for building WordPress plugins with custom post types, taxonomies, settings pages, and dynamic form fields.

Version PHP WordPress Coverage PHPUnit Tests Coding Standards PHPStan

Features

Requirements

Installation

Quick Start

Basic Example

Extending Existing Post Types and Taxonomies

JSON Configuration

Field Types

Basic Fields

Type Description Key Options
text Single-line text input placeholder, maxlength, pattern
textarea Multi-line text input rows, cols, maxlength
number Numeric input min, max, step
email Email input Automatic validation
url URL input Automatic validation
password Password input Masked input
date Date picker min, max
color Color picker WordPress color picker

Choice Fields

Type Description Key Options
select Dropdown select options, multiple
checkbox Checkbox input options (for multiple)
radio Radio button group options

Rich Content

Type Description Key Options
wysiwyg Visual editor TinyMCE with media buttons
upload Media uploader button_text, library_type, preview
custom_html Display custom HTML content, allowed_tags, raw_html

Container Fields

Type Description Key Options
tabs Tabbed container orientation, tabs[]
metabox Metabox container context, priority, fields[]
group Field group label, description, fields[]
repeater Repeatable fields button_label, min, max, fields[]

Retrieving Values

Cassette-CMF provides a universal static method to retrieve field values regardless of their storage location:

Method Signature

Parameter Type Description
$field_name string The field name as defined in your config
$context int|string Post ID, term ID, or settings page ID
$context_type string 'post' (default), 'term', or 'settings'
$default mixed Default value if field is empty

Context-Specific Helper Methods

Legacy Approach (Still Works)

Before-Save Filters

Modify or validate field values before saving:

Examples

Example Description
01-simple-array Book CPT + Genre Taxonomy + Library Settings (PHP)
02-simple-json Event CPT + Event Taxonomies + Settings (JSON)
03-advanced-array Full demo: CPTs, taxonomies, settings, containers, filters
04-advanced-json Full demo with multi-file JSON configuration

Documentation

Testing

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Write tests for your changes
  4. Ensure all tests pass (composer test)
  5. Submit a pull request

License

GPL-2.0-or-later. See LICENSE for details.

Support


All versions of wp-cmf with dependencies

PHP Build Version
Package Version
Requires php Version >=8.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 pedalcms/wp-cmf contains the following files

Loading the files please wait ...