Installation & Requirements
Installing Mystique (trk/mystique) automatically installs its bundled companion modules FieldtypeMystique and InputfieldMystique.
Requirements
Section titled “Requirements”| Component | Version |
|---|---|
| PHP | 8.4+ |
| ProcessWire | 3.0.210+ |
| First-Party Dependencies | None (standalone module) |
Install Mystique
Section titled “Install Mystique”-
Require the package from your project root:
Terminal window composer require trk/mystique -
Refresh modules and install
Mystiqueviaprocesswire-console(or Modules -> Refresh in Admin):Terminal window php vendor/bin/wire module:refreshphp vendor/bin/wire module:install --name=Mystique
- Log in as a superuser and navigate to Modules -> New.
- Use Add Module from Directory (enter
Mystique), Add Module from URL, or Add Module from Upload (ZIP archive). - Click Modules -> Refresh, locate Mystique under the Site tab, and click Install.
FieldtypeMystiqueandInputfieldMystiqueare installed automatically.
- Download and extract the release archive into
site/modules/Mystique/. - Open Modules -> Refresh in the ProcessWire Admin (or run
php vendor/bin/wire module:refresh). - Click Install next to Mystique under Modules -> Site.
Create Your First Mystique Field
Section titled “Create Your First Mystique Field”- Open Setup -> Fields -> Add New.
- Set Type to Mystique (
FieldtypeMystique), enter a field name (for exampleyacht_specs), and click Save. - Open the Input tab and select a discovered resource under Resource (for example
Example: Dive (mystique)or your ownsite/templates/configs/Mystique.*.phpfile), or enable Use JSON to paste an inline JSON schema. - Attach the field to any template under Setup -> Templates.