16

I just found the tag , and the questions there look pretty similar to those tagged with . Do you think it would make sense to merge them or create a synonym?

Edit: Oleg Valter suggested to cross-check postings through [composer.json] -[php] -[composer-php]. Through brief scanning, I could not find any posts where would be definitely wrong, even if I had not used any composer related tag in some of them. To me, it looks like the posts where only is used were tagged so without the users knowing that would give their posts more visibility.

3

1 Answer 1

18

My vote is to synonymize the tag into [composer-php].

I use Composer. It’s a pretty simple program:

  1. You have composer.phar which allows you to run Composer.
  2. You start your program by writing a composer.json file, then use it to get all your dependencies. This generates a composer.lock file which is a JSON file listing exactly what was installed.
  3. Both of these files are in version control (but your dependencies’ files aren’t) so when you deploy your program you run a command that will tell Composer to use the lock file to replicate the versions of the dependencies that you tested with.

(This works the same way that NPM and Yarn do.)

So, while not all Composer questions involve composer.json, all composer.json questions involve Composer. Looking through all of the questions tagged [composer.json] (but not [composer-php]), it seems that none of them are mistagged and can all just be tagged [composer-php] instead.

Because Composer is so simple and also because the vast majority of Composer questions involve debugging composer.json (but may not be tagged with it), I think it’s not worth having two tags. Plus, this would solve the problem with questions only having the sub tag and falling into obscurity.

4
  • 2
    Agreed - one thing I would amend, though, is to keep composer.json as a synonym of the main tag. Nothing valuable in the tag itself, but pragmatically speaking, it will prevent it from being recreated ( somebody created in the first place, after all ) and allows questioners to enter whatever they want by silently remapping the tag. Sep 29, 2020 at 14:01
  • 1
    @OlegValter yeah that sounds good, so I edited.
    – Laurel
    Sep 29, 2020 at 15:26
  • 2
    thanks 👍 Seems like everything is covered. To other readers: composer-php has a request for adding composer.json to the list of its synonyms, please vote for it if you agree with the reasoning of the Q&A. Sep 29, 2020 at 16:01
  • 2
    Approved and merged. Of the 81 tagged [composer.json], only 31 lacked [composer-php], so it wasn't much of a merge overall
    – Machavity Mod
    Sep 30, 2020 at 12:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .