Skip to content

fix: declare MIT license in composer.json - #20

Merged
erikfrerejean merged 1 commit into
6from
fix/declare-license-in-composer-json
Jul 28, 2026
Merged

fix: declare MIT license in composer.json#20
erikfrerejean merged 1 commit into
6from
fix/declare-license-in-composer-json

Conversation

@erikfrerejean

Copy link
Copy Markdown
Member

Packagist lists the package as having no license.

The LICENSE file (MIT) has been in the repo since the first commit, but composer.json never declared a license key — and Packagist reads the license from the composer metadata, not from the file on disk.

  • composer.json — add "license": "MIT"
  • CHANGELOG.md — record it under 6.0.0-rc.1

composer validate passes.

Note: Packagist stores metadata per tag, so previously released versions stay license-less. The listing clears once a tag containing this change is published and Packagist syncs. The SilverStripe 5 line has the same gap and is not touched here.

The LICENSE file has shipped since the first commit, but composer.json
never declared a `license` key. Packagist reads the license from the
composer metadata, so the package was listed as having no license.
@erikfrerejean
erikfrerejean merged commit e3fff01 into 6 Jul 28, 2026
4 checks passed
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