Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packagist dependency version support #6963

Closed
Gummibeer opened this issue Aug 31, 2021 · 2 comments
Closed

Packagist dependency version support #6963

Gummibeer opened this issue Aug 31, 2021 · 2 comments
Labels
good first issue New contributors, join in! service-badge New or updated service badge

Comments

@Gummibeer
Copy link

📋 Description

A badge for Packagist to display the version constraint of a dependency. This should be similar/same to the already existing packagist/php-v badge but instead of showing hardcoded PHP version constraint it should return the version constrained for a dynamic dependency.
I'm not sure what the best URL structure would be as we would have to pass two package names to the shields.io service. First idea would be something like:

packagist/dependency-v/:user/:repo/:dependencyVendor/:dependencyRepo

🔗 Data

The data is already available in the https://github.com/badges/shields/blob/master/services/packagist/packagist-php-version.service.js - but instead of packageVersion.require.php it should use something like packageVersion.require[vendor+'/'+name].

🎤 Motivation

Some repositories want to showcase version constraints for important dependencies - for example the supported Symfony or Laravel versions.

@Gummibeer Gummibeer added the service-badge New or updated service badge label Aug 31, 2021
@chris48s chris48s added the good first issue New contributors, join in! label Sep 1, 2021
@PaulaBarszcz
Copy link
Collaborator

I would like to work on this one

@chris48s
Copy link
Member

feel free 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue New contributors, join in! service-badge New or updated service badge
Projects
None yet
Development

No branches or pull requests

3 participants