Slim 4 Dipendency / Container Paypal,RabbitMQ,Doctrine

Hello Guys,
I need a couple of tips.
Paypal ( https://github.com/paypal/PayPal-PHP-SDK) .
I want to use the PayPal library inside slim. Do I need to create a container for that? Or is better if I create a middleware?
RabbiMQ (https://github.com/php-amqplib/php-amqplib)
I want to use rabbiMQ library inside slim. Do I need to create a container for that too? Or is better if I create a middleware?
Doctrine
I want to use Doctrine but I don’t see in new guide the installation instruction. someone can help me?

Thank for your advice.

Upgrading from Slim 3 to 4 didn’t break Doctrine for me, so you can base your ORM integration on http://www.slimframework.com/docs/v3/cookbook/database-doctrine.html .

It depends on what you want to do with those libraries but it is likely you’ll need to use both middleware and register services in your container.