answear / poczta-polska-bundle
Poczta Polska integration for Symfony.
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.3
- ext-json: *
- ext-simplexml: *
- ext-zip: *
- marc-mabe/php-enum: ^3.0
- symfony/http-kernel: ^4.1
- webmozart/assert: ^1.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- phpro/grumphp: ^0.18.0
- phpstan/phpstan: ^0.12.13
- phpstan/phpstan-webmozart-assert: ^0.12.2
- phpunit/phpunit: ^8.0
- roave/security-advisories: dev-master
- symfony/phpunit-bridge: ^5.0
This package is auto-updated.
Last update: 2024-12-10 22:57:40 UTC
README
Poczta Polska integration for Symfony.
Documentation regarding integration of a shop with pickup points can be found here: https://odbiorwpunkcie.poczta-polska.pl/integracja-sklepu/.
Installation
- install with Composer
composer require answear/poczta-polska-bundle
Answear\PocztaPolskaBundle\AnswearPocztaPolskaBundle::class => ['all' => true],
should be added automatically to your config/bundles.php
file by Symfony Flex.
Usage
- Fetch array of Poczta Polska Pickup Points
use Answear\PocztaPolskaBundle\Request\FetchPickupPointsRequest; // ... /** * @var FetchPickupPointsRequest */ private $fetchPickupPointsRequest; public function __construct( ... FetchPickupPointsRequest $fetchPickupPointsRequest ) { ... $this->fetchPickupPointsRequest = $fetchPickupPointsRequest; } ... public function pickupPoints(): Response { $pickupPoints = $this->fetchPickupPointsRequest->request(); ... }
Final notes
Feel free to open pull requests with new features, improvements or bug fixes. The Answear team will be grateful for any comments.