Installing Ecotone for Symfony, Laravel or Stand Alone

Install for Symfony

  1. 1.
    Use composer in order to download Ecotone Symfony Bundle
composer require ecotone/symfony-bundle
If you're using Symfony Flex, bundle will auto-configure.
2. Register bundle, if needed
new Ecotone\SymfonyBundle\EcotoneSymfonyBundle::class => ['all' => true]

Install for Laravel

  1. 1.
    Use composer in order to download Ecotone Laravel
composer require ecotone/laravel
Provider should be automatically registered.
2. Register provider, if needed
'providers' => [

Install Lite (No framework)

Make use of prepared setup

Wire manually

  1. 1.
    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)
use Ecotone\Lite\EcotoneLiteConfiguration;
use Ecotone\Lite\GatewayAwareContainer;
use Ecotone\Messaging\Config\ServiceConfiguration;
$rootCatalog = __DIR__;
require $rootCatalog . "/vendor/autoload.php";
$container = new class() implements GatewayAwareContainer {
private Container $container;
public function __construct()
$this->container = // @TODO set up your container here
public function get($id)
return $this->container->get($id);
public function has($id)
return $this->container->has($id);
public function addGateway(string $referenceName, object $gateway): void
$this->container->set($referenceName, $gateway);
$messagingSystem = EcotoneLiteConfiguration::createWithConfiguration(