Explain the use of dependency management in WordPress with Composer.

Composer manages PHP dependencies, simplifying library updates. In WordPress, Composer is used to install plugins, themes, or external libraries. It creates a composer.json file that defines project dependencies, enabling consistent versions and smooth updates across environments.