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

Suggestion: Display package's "homepage" instead of "description" in composer show list #9367

Closed
ThomasLandauer opened this issue Oct 28, 2020 · 7 comments · Fixed by #10430
Labels
Milestone

Comments

@ThomasLandauer
Copy link
Contributor

I'm suggesting to replace the last column of the output table of composer show and composer outdated: Show the packages website (i.e. homepage) instead of its description

Reasons:

  • When I'm looking at that list, most of the time I need more information about the package. So I usually copy the package name into my web browser to search for it. An url which is clickable right away would be quicker.
  • The description of most packages is non-saying, If I really don't know what this package is, its description certainly won't tell me. To find out, I'd have to, well, visit its website :-)
  • While not fully solving Feature suggestion: composer outdated advanced #8104, it would at least be a step in this direction.

Which URL to display?
If given, use homepage from composer.json. If not, use the package's packagist.org URL.

@Seldaek
Copy link
Member

Seldaek commented Oct 28, 2020

I think this will have to wait until we can upgrade dependencies in 2.2, then we can make use of https://symfony.com/blog/new-in-symfony-4-3-console-hyperlinks which would be a more elegant way to fix this IMO, making the name clickable or adding short [home] [repo] links before the description for example.

@Seldaek Seldaek added this to the 2.2 milestone Oct 28, 2020
@ThomasLandauer
Copy link
Contributor Author

Well, replacing the description could be done immediately, without waiting till all consoles support hyperlinks ;-)

However, when you do take the hyperlink route, I'd suggest:

  • Link the package name with the homepage key.
  • New idea: Add an internal link named [why] just before the description, linked to composer why this/package
  • By repo you mean the packagist.org URL?

@Seldaek
Copy link
Member

Seldaek commented Oct 29, 2020

I realize we could do it now, but I'd rather not lose the description, and I'd also rather not have this output change in every other release, people like stability. So it'll have to wait a bit :)

repo I was thinking the git repo URL, which I'd typically head to to find a changelog, as the homepage is often too vague.

@ThomasLandauer
Copy link
Contributor Author

So it'll have to wait a bit :)

Sure :-)

Repo: I was assuming most packages would put that into homepage ;-) I certainly agree that repo URL is better than any marketing website. But where can you obtain the URL from?

@Seldaek
Copy link
Member

Seldaek commented Oct 29, 2020

We can use the homepage and/or support.source which is set for github packages, or source.url worst case..

@Seldaek
Copy link
Member

Seldaek commented Jan 4, 2022

See #10430

@Seldaek
Copy link
Member

Seldaek commented Jan 4, 2022

New idea: Add an internal link named [why] just before the description, linked to composer why this/package

This sounds nice but I don't think we can link to a shell command :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants