Skip to content

Conversation

@aadmathijssen
Copy link

Description

The composer/composer package dependency was only used to read the contents of the extra section of a project's composer.json file. This commit replaces this logic by standard PHP functions.

As a result, the composer/composer dependency has been removed which results in potentially 21 less dependencies when installing this package as a dependency.

Motivation and context

Closes: #103

How has this been tested?

The existing test suite has been updated to reflect the changes.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

PR checklist

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING.md document.
  • I have added tests to cover my changes.

The composer/composer package dependency was only used to read the
contents of the extra section of a project's composer.json file.
This commit replaces this logic by standard PHP functions.

As a result, the composer/composer dependency has been removed
which results in potentially 21 less dependencies when installing
this package as a dependency.

Closes: ramsey#103
@aadmathijssen aadmathijssen force-pushed the refactor/remove-composer-package-dependency branch from 5cd8fc1 to 589d44e Compare November 24, 2025 12:59
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.

Requirement of composer/composer actually needed?

1 participant