answear/econt-pickup-point-bundle

API Client for EcontBundle

Installs: 9 042

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 1

Open Issues: 2

Type:symfony-bundle

2.0.0 2022-08-18 10:12 UTC

This package is auto-updated.

Last update: 2024-04-18 13:56:59 UTC


README

Econt integration for Symfony.
Documentation of the API can be found here: https://ee.econt.com/services/Nomenclatures/

Installation

  • install with Composer
composer require answear/econt-pickup-point-bundle

Answear\EcontBundle\AnswearEcontBundle::class => ['all' => true],
should be added automatically to your config/bundles.php file by Symfony Flex.

Setup

# config/packages/answear_econt.yaml
answear_econt:
    user: 'username'
    password: 'password'

config will be passed to \Answear\EcontBundle\ConfigProvider class.

Usage

Get Offices

use Answear\EcontBundle\Command\GetOffices;
use Answear\EcontBundle\Request\GetOfficesRequest;

/** @var GetOffices $getOfficesCommand */
$getOfficeResponse = $getOfficesCommand->getOffices(new GetOfficesRequest());

Get Cities

use Answear\EcontBundle\Command\GetCities;
use Answear\EcontBundle\Request\GetCitiesRequest;

/** @var GetCities $getCitiesCommand */
$getCitiesResponse = $getCitiesCommand->getCities(new GetCitiesRequest());

Final notes

Feel free to open pull requests with new features, improvements or bug fixes. The Answear team will be grateful for any comments.