How to require a Composer package by a custom extension?

2 posts were split to a new topic: Should I download a composer package (used by a Magento 2 extension) manually?