In order to start we have to have composer.json with PSR-4 or PSR-0 autoload setup.
Create composer.json in root catalog with autoload for src catalog.
And add Ecotone
composer require ecotone/ecotone
2. As Ecotone require access to Dependency Container, you have to choose one in order to run the example. As Ecotone may register classes for easier usage, we will make our container implement GatewayAwareContainer to access them.
Create console.php and set up your container (look #13 line)