Skip to content

How to require specific libraries dependencies #109

@macintoshplus

Description

@macintoshplus

I think it would be interesting to specify in the required elements of the composer.json file the libraries needed for the extension. Like extension, the prefix lib- can be used.

These dependencies would allow us to check for security vulnerabilities and during compilation, retrieve the source code or binary/SDK automatically.

Exemple:

{
	"name": "php/imap",
	"type": "php-ext",
	"require": {
		"php": ">=8.0",
                "lib-c-client": "2007f",
                "lib-openssl": ">=3.0.8"
	},
	"php-ext": {
		"extension-name": "imap"
	}
}

For openssl the tag used are openssl-3.0.8 or openssl-3.0.15.pl1 or newer.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestmaintainer investigatingThis ticket is being investigated by maintainers. Please check with us before contributing PRs etc!

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions