answear / speedy-pickup-point-bundle
API Client for Speedy.bg.
Installs: 11 375
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^8.2
- ext-json: *
- guzzlehttp/guzzle: ^6.0|^7.0
- symfony/http-kernel: ^6.0|^7.0
- symfony/property-access: ^6.0|^7.0
- symfony/serializer: ^6.0|^7.0
- webmozart/assert: ^1.11
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.64
- phpro/grumphp: ^2.8
- phpstan/phpstan: ^1.12
- phpstan/phpstan-webmozart-assert: ^1.2
- phpunit/phpunit: ^10.5
- roave/security-advisories: dev-master
- symfony/phpunit-bridge: 6.1.*|^7.0
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.