PHP code example of gawrys / counterparty-bundle
1. Go to this page and download the library: Download gawrys/counterparty-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/ */
gawrys / counterparty-bundle example snippets
public function __construct(private \Gawrys\Counterparty\Verifier $verifier) {}
$outcome = $this->verifier->verify(new \Gawrys\Counterparty\Counterparty('Acme', 'PL', nip: '1234567890'));
use Gawrys\Counterparty\Symfony\Validator\NotSanctioned;
#[NotSanctioned(country: 'PL')]
private string $counterpartyName;