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

Composer package badge #110

Open
rdohms opened this issue Jan 20, 2014 · 6 comments
Open

Composer package badge #110

rdohms opened this issue Jan 20, 2014 · 6 comments

Comments

@rdohms
Copy link

rdohms commented Jan 20, 2014

Would be cool to add a new badge that had something like:

composer | phpunit/phpunit

So that the package name is also apparent and instantly viewable.

@liuggio
Copy link
Member

liuggio commented Jan 20, 2014

good idea, the user wants to know how to install a repo
and wants to have both repo name and version name...

and what do you think about adding a badge containing also the command to install
like:

composer require phpunit/phpunit:v2.1.4

@rdohms
Copy link
Author

rdohms commented Jan 20, 2014

The idea is to easily pick out the name of the package in this repo.

so the black part of the button would say composer or package name and the colored part would print out the packagist name of the package in this repo.

Motivation:
Not everyone adds the composer require xxx\yyy install instructions, so to get the package name i usually click on the json and grab it from there, this would give me a faster way of seeing it.

@agiuliano
Copy link
Member

👍

@liuggio
Copy link
Member

liuggio commented Jun 30, 2014

I think this could also not be a badge but an svg image that emulates the text of installing instruction in the readme,
the result would be something like:

composer install symfony/symfony v2.0

(this is a png github doesn't support svg in the comment)

@wapmorgan
Copy link

wapmorgan commented Jan 17, 2017

I made this and it looks that: Composer
it's just a svg with variable width
landing page for this http://xn--e1adiijbgl.xn--p1acf/en.html

@wapmorgan
Copy link

wapmorgan commented Jan 31, 2017

Also it supports different sizes:

  • badge
  • badge
  • badge

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

No branches or pull requests

4 participants