• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (deprecated)
You are here: Home / Archives for jq composer

jq composer

Find dependency in composer.json with jq

Last updated on October 1, 2023 by Sal Ferrarello

Sometimes I need the full Composer dependency name but I only know part of it. For example, I may know Block X-ray Attributes is a Composer dependency but I don’t remember the full package name. While I could open the composer.json file and find the dependency, I can also leverage jq to do the work for me.

Filed Under: Computing, Dev Tips, Solution Tagged With: command line, jq, jq composer, zsh

Compare composer.json on Two Different Git Branches

Last updated on October 12, 2023 by Sal Ferrarello

I have composer.json files on two different branches and I want to compare their (non-dev) dependencies. This is the command I run to compare the “require” section of composer.json on my current branch to the “require” section of composer.json on another branch.

Filed Under: Dev Tips, Solution Tagged With: composer, Git, jq, jq composer

Copyright © 2026 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in