PHP code example of faicchia / laravel-iban-validation-rule

1. Go to this page and download the library: Download faicchia/laravel-iban-validation-rule 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/ */

    

faicchia / laravel-iban-validation-rule example snippets


// in a `FormRequest`

use Faicchia\IbanValidation\Rules\Iban;

public function rules(): array
{
    return [
        'iban' => [new Iban()]
    ];
}
bash
php artisan vendor:publish --provider="Faicchia\IbanValidation\IbanValidationRuleServiceProvider"