Skip to content

Installation & Requirements

Installing Mystique (trk/mystique) automatically installs its bundled companion modules FieldtypeMystique and InputfieldMystique.

Component Version
PHP 8.4+
ProcessWire 3.0.210+
First-Party Dependencies None (standalone module)
  1. Require the package from your project root:

    Terminal window
    composer require trk/mystique
  2. Refresh modules and install Mystique via processwire-console (or Modules -> Refresh in Admin):

    Terminal window
    php vendor/bin/wire module:refresh
    php vendor/bin/wire module:install --name=Mystique
  1. Open Setup -> Fields -> Add New.
  2. Set Type to Mystique (FieldtypeMystique), enter a field name (for example yacht_specs), and click Save.
  3. Open the Input tab and select a discovered resource under Resource (for example Example: Dive (mystique) or your own site/templates/configs/Mystique.*.php file), or enable Use JSON to paste an inline JSON schema.
  4. Attach the field to any template under Setup -> Templates.

Next steps