Download the PHP package johannschopplich/kirby-tools-utils without Composer
On this page you can find all versions of the php package johannschopplich/kirby-tools-utils. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download johannschopplich/kirby-tools-utils
More information about johannschopplich/kirby-tools-utils
Files in johannschopplich/kirby-tools-utils
Download johannschopplich/kirby-tools-utils
More information about johannschopplich/kirby-tools-utils
Files in johannschopplich/kirby-tools-utils
Vendor johannschopplich
Package kirby-tools-utils
Short Description Shared utility classes for Kirby Tools plugins
License AGPL-3.0-or-later
Homepage https://github.com/kirby-tools/utils#readme
Package kirby-tools-utils
Short Description Shared utility classes for Kirby Tools plugins
License AGPL-3.0-or-later
Homepage https://github.com/kirby-tools/utils#readme
Please rate this library. Is it a good library?
Informations about the package kirby-tools-utils
Kirby Tools Utils
Shared utility classes for Kirby Tools plugins. This package provides common model and field resolution logic used across multiple plugins to avoid ambiguous class resolution when multiple plugins are installed together.
Requirements
- Kirby 6
- PHP 8.3+
Kirby 4 and 5 plugins stay on ^0.1.
Installation
All classes live in the KirbyTools\Utils namespace:
Classes
ModelResolver
Resolves Kirby CMS models from different identifier formats:
resolveFromId: Resolves a model from a model ID (e.g.,site,page-id,file-id)resolveFromPath: Resolves a model from a Panel view path (e.g.,site,pages/xxx,pages/xxx/files/yyy)
FieldResolver
Resolves blueprint fields from Kirby models:
resolveModelFields: Creates a Kirby Form from the model's blueprint fields and returns the exported field properties (excludingtitle,slug, and field values), keyed by the lowercased field name. Custom blueprint keys such ascopilotare not exported; read them from$model->blueprint()->fields(), whose keys keep the field name's casing
FieldNormalizer
Normalizes blueprint field definitions to their base types:
resolveBaseType: Resolves a custom field type to its base type: the type of the nearest core field class among its registered class and that class's parents. Core types,markdown, and types Kirby can't resolve are returned as isnormalizeFields: Normalizes a fields array, recursing into nested fields andfieldsets[*].tabs[*].fields
Used By
License
Johann Schopplich
All versions of kirby-tools-utils with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.3
The package johannschopplich/kirby-tools-utils contains the following files
Loading the files please wait ...