PHP code example of answear / poczta-polska-bundle

1. Go to this page and download the library: Download answear/poczta-polska-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

answear / poczta-polska-bundle example snippets


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();
    ...
}