answear/speedy-pickup-point-bundle

API Client for Speedy.bg.

Installs: 11 364

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:symfony-bundle

2.3.0 2024-10-02 13:08 UTC

This package is auto-updated.

Last update: 2024-11-02 13:20:03 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.