Composer is like a package manager however not in the same structure in composer you install dependencies instead of packages like in npm and yarn
it also manages the dependencies per project , and the dependencies can be installed globally like in npm and yarn package managers.
References :
LINK: https://getcomposer.org/
LINK:https://stripe.com/docs/api?lang=php