Skip to content

MixinLibraries - Restore support for writing *.phar files#432

Merged
totten merged 1 commit intomasterfrom
master-phar-again
Jan 31, 2026
Merged

MixinLibraries - Restore support for writing *.phar files#432
totten merged 1 commit intomasterfrom
master-phar-again

Conversation

@totten
Copy link
Copy Markdown
Owner

@totten totten commented Jan 30, 2026

Overview

Update the way in which {$ext}/mixin/lib/ is populated. Specifically, given that we want to backport something from civix:lib/, how will we write the file?

(Over time, this topic is a bit flip-floppy. The impetus behind the present change is that CiviCRM 6.1+ is more broadly deployed now. So "what works" is shifting.)

(cc @colemanw; related to discussion on #427.)

Before + After

  • Original Behavior: Create a backport-file {$ext}/mixin/lib/civimix-schema@X.Y.Z.phar
  • Status Quo Behavior: Create backport-folder {$ext}/mixin/lib/civimix-schema@X.Y.Z/
  • New Behavior: Create the file or the folder, depending on your target <compatibility>.
    • If your extension targets CiviCRM v6.1 or newer, then create file {$ext}/mixin/lib/civimix-schema@X.Y.Z.phar
    • If your extension targets CiviCRM v6.0 or older, then create folder {$ext}/mixin/lib/civimix-schema@X.Y.Z/

@totten totten merged commit 1c8d53d into master Jan 31, 2026
1 check passed
@totten totten deleted the master-phar-again branch January 31, 2026 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant