I use composer all the time, but never really known what Im doing, just copy pasting commands. Today Daniel has been explaining what Composer is, and how it is used. Quite clear morning session, very helpful to start to gain an understanding.
Created empty php project (using ddev). ssh into it.
Libraries usually found through packagist.org or GitHub.