PHP code example of wijzijnweb / laravel-bsn-validator

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

    

wijzijnweb / laravel-bsn-validator example snippets


use Wijzijnweb\LaravelBsnValidator\LaravelBsnValidator;

app(LaravelBsnValidator::class)->isValid('123456782'); // true

use Illuminate\Validation\Rule;

$request->validate([
    'bsn' => ['

use Wijzijnweb\LaravelBsnValidator\Faker\BsnProvider;

$faker->addProvider(new BsnProvider($faker));

$faker->bsn(); // e.g. '123456782'
bash
php artisan vendor:publish --tag="laravel-bsn-validator"
bash
php artisan vendor:publish --tag="laravel-bsn-validator-lang"