Updating component usage to use composer require

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3+
| Fixed tickets | n/a

Hi guys!

This shows using the new `composer require` command instead of manually updating `composer.json`. It shortens and simplifies things quite a bit :grinning: 

Thanks!
missing ``/`` (``__DIR__`` does not have a trailing directory separator)