How to require a Composer package by a custom extension?

Hi

How to use third party lib files to the magento 2 custom module.

How extend the class and use module helper or model classes…

What exact library do you want to use?

“require”: {
“mandrill/mandrill”: “1.0.*”
}

Mandrill lib files
download files this link
https://mandrillapp.com/api/docs/

An example of the right require usage:

https://github.com/checkout/checkout-magento2-plugin/blob/1.1.8/composer.json?ts=4#L20-L24

2 posts were split to a new topic: How to add a custom PHP library as a non-GitHub composer package to a custom Magento 2 extension?

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