Installation
Installing Ecotone for Symfony, Laravel or Stand Alone
Install for Symfony
Use composer in order to download Ecotone Symfony Bundle
composer require ecotone/symfony-bundle
If you're using Symfony Flex, bundle will auto-configure. If that did not happen, register bundle in config/bundles.php
By default Ecotone will look for Attributes in default Symfony catalog "src". If you do follow different structure, you can use "namespaces" configuration to tell Ecotone, where to look for.
Install for Laravel
Use composer in order to download Ecotone Laravel
composer require ecotone/laravel
Provider should be automatically registered. If that did not happen, register provider
By default Ecotone will look for Attributes in default Laravel catalog "app". If you do follow different structure, you can use "namespaces" configuration to tell Ecotone, where to look for.
Install Ecotone Lite (No framework)
If you're using no framework or framework different than Symfony or Laravel, then you may use Ecotone Lite to bootstrap Ecotone.
composer require ecotone/ecotone
In order to start, you need have to composer.json
with PSR-4 or PSR-0 autoload setup.
With Custom Dependency Container
If you already have Dependency Container configured, then:
Load namespaces
By default Ecotone will look for Attributes only in Classes provided under "classesToResolve". If we want to look for Attributes in given set of Namespaces, we can pass it to the configuration.
With no Dependency Container
You may actually run Ecotone without any Dependency Container. That may be useful for small applications, testing or when we want to run some small Ecotone's script.
Ecotone Lite Application
You may use out of the box Ecotone Lite Application, which provide you with Dependency Container.
composer require ecotone/lite-application
With default configuration, Ecotone will look for classes inside "src" catalog.
Last updated