Carbon Fields is the closest comparable package to Cassette CMF, our new content modeling framework for WordPress. And we totally respect what they've built: a solid, developer-focused, and Composer-native custom fields library.
If you're currently weighing your options, here's a quick breakdown to help.
Carbon Fields: custom fields library, build using fluent method chains, support for Gutenberg blocks.
Cassette: content modeling framework, build using config arrays or JSON, no support for blocks.
What’s the difference between a custom fields library and a content modeling framework? The latter includes the former but also allows you to create your entire content model. In our case, you can create custom post types, custom taxonomies, and settings pages from a single array and single method call.
Even if Carbon Fields added CPT registration tomorrow, this would still be the difference. It's about how you define things.
Take a look:
Container::make('post_meta', 'Book Details')
->where('post_type', '=', 'book')
->add_fields([
Field::make('text', 'isbn', 'ISBN'),
Field::make('text', 'author', 'Author'),
]);
Manager::init()->register_from_array([
'cpts' => [
[
'fields' => [
['name' => 'isbn', 'type' => 'text', 'label' => 'ISBN'],
['name' => 'author', 'type' => 'text', 'label' => 'Author'],
],
],
],
]);If you do try Cassette, we’d love your feedback! You can contact us or reach out on github.
