answear/speedy-pickup-point-bundle

API Client for Speedy.bg.

Installs: 9 131

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:symfony-bundle

2.0.0 2022-08-18 10:23 UTC

This package is auto-updated.

Last update: 2024-04-18 14:09:43 UTC


README

Speedy integration for Symfony.
Documentation of the API can be found here: https://api.speedy.bg/web-api.html

Installation

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

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

Setup

  • provide required config data: privateKey
# config/packages/answear.yaml
answear_speedy:
    username: 'your_username'
    password: 'your_password'
    language: 'BG' 
    clientSystemId: 12345

config will be passed to \Answear\SpeedyBundle\ConfigProvider.php class.

Usage

Find Office

use Answear\SpeedyBundle\Command\FindOffice;
use Answear\SpeedyBundle\Request\FindOfficeRequest;

/** @var FindOffice $findOfficeCommand */
$findOfficeResponse = $findOfficeCommand->findOffice(new FindOfficeRequest());

Final notes

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