Skip to content

composer requirements verification #353

@deubert-it

Description

@deubert-it

New Feature request

Summary

Verify or suggest changes to a given composer.json - php version/php extension requirements.

Description

Based on the required modules and php version the analyzer detects for a given path, I would like to be able to compare this information to a given composer.json.

The composer.json can hold requirements like this:

"require": {
  "php": "^7.3",
  "ext-zip": "*",
  "ext-simplexml": "*",
  "ext-json": "*",
[..]

The output of the compatinfo analysis should be compared against this to either verify its correctness, or if there are mismatches, suggest changes to the composer.json to match actual requirements from the code.

The composer.json can contain php version pinning, which should also be taken into consideration:

"config": {
  "platform": {
    "php": "7.3.24"
  }
}

If you think it makes sense to add this feature to this library, and could give me some pointers where to put what, I'd be happy to invest some time into this for implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions