johannschopplich/kirby-tools-utils

Shared utility classes for Kirby Tools plugins

Maintainers

Package info

github.com/kirby-tools/utils

Homepage

pkg:composer/johannschopplich/kirby-tools-utils

Statistics

Installs: 9

Dependents: 4

Suggesters: 0

Stars: 2

Open Issues: 0

0.1.0 2026-03-02 15:46 UTC

This package is auto-updated.

Last update: 2026-03-03 12:36:11 UTC


README

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.

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 field properties (excluding title, slug, and field values)

Used By

License

AGPL License © 2026-PRESENT Johann Schopplich