Skip to content

Commit 1366165

Browse files
authored
Merge branch '5.x-dev' into dev-20125
2 parents dfd714b + 7998f15 commit 1366165

256 files changed

Lines changed: 1334 additions & 817 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.ddev/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
/config.local.y*ml
1212
/config.*.local.y*ml
1313
/db_snapshots
14+
/docker-compose.local-plugins.yaml
1415
/mutagen/mutagen.yml
1516
/mutagen/.start-synced
1617
/nginx_full/nginx-site.conf

.ddev/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,22 @@ The command `ddev matomo:console` provides access to all Matomo console commands
8484
- `cache:clear` - Remove all caches, including CSS and JavaScript
8585
- `vue:build` - Builds vue modules for one or more plugins
8686

87+
To mount local plugin repositories into Matomo without symlinks, use the host commands:
88+
89+
```
90+
ddev matomo:plugins:mount
91+
ddev matomo:plugins:mount ../plugin-FormAnalytics ../plugin-HeatmapSessionRecording
92+
ddev matomo:plugins:mount ../ '^.*/plugin-(FormAnalytics|Funnels)$'
93+
ddev matomo:plugins:unmount FormAnalytics
94+
ddev matomo:plugins:unmount
95+
```
96+
97+
`ddev matomo:plugins:mount` creates a local-only `.ddev/docker-compose.local-plugins.yaml`, adds bind mounts for discovered `plugin-*` directories, and restarts DDEV automatically. If you pass a plugin directory path directly, the command reads the plugin name from `plugin.json` when present and otherwise infers it from directory names like `plugin-FormAnalytics`.
98+
99+
When a plugin declares `require.php` in `plugin.json`, the mount command compares it with the PHP version currently used by DDEV. Simple constraints such as `>=7.2.0` are enforced and incompatible plugins are skipped. More complex Composer-style expressions are only warned about and the plugin is mounted anyway.
100+
101+
`ddev matomo:plugins:unmount` removes one or more managed plugin mounts by plugin name. If all managed mounts are removed, the generated compose override is deleted automatically.
102+
87103
For more information about Matomo development, check out the official [Matomo Developer Documentation](https://developer.matomo.org/).
88104

89105
## Update PHP or MySQL version

0 commit comments

Comments
 (0)