PHP code example of majida / ir-validator

1. Go to this page and download the library: Download majida/ir-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/ */

    

majida / ir-validator example snippets


Majida\IrValidator\IrValidatorServiceProvider::class,

return [
    'code' => '

 $validatedData = $request->validate([
    'code' => 'national_code',
]);

return [
    'account' => 'iban'
];

return [
    'account' => 'iban:false'
];

return [
    'account' => 'iban:false,DE'
];

return [
    'code' => '

 $validatedData = $request->validate([
    'code' => 'debit_card',
]);

return [
    'code' => '

return [
    'code' => '

 $validatedData = $request->validate([
    'code' => 'postal_code',
]);