PHP code example of pajerdesign / pesel-validator
1. Go to this page and download the library: Download pajerdesign/pesel-validator 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/ */
pajerdesign / pesel-validator example snippets
return [
// ...
PAJERdesign\PeselValidator\PeselValidator::class => ['all' => true]
];
use PAJERdesign\PeselValidator\PeselValidator;
// ...
#[PeselValidator]
private ?string $pesel = null;
public function isSuperUser(): bool
{
return true;
}
use PAJERdesign\PeselValidator\PeselValidator;
// ...
/**
* @PeselValidator
*/
public $iban;