PHP code example of weap-io / laravel-validation-rules

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

    

weap-io / laravel-validation-rules example snippets


use Weap\LaravelValidationRules\Rules\Network\Hostname;

// Given input must be a valid hostname (with or without TLD)
return [
    'host' => ['

use Weap\LaravelValidationRules\Rules\Network\Port;

// The input must be a valid port number (0 excluded)
return [
    'port' => ['

use Weap\LaravelValidationRules\Rules\Bank\Iban;

return [
    'iban' => ['

use Weap\LaravelValidationRules\Rules\Bank\Bic;

return [
    'bic' => ['

use Weap\LaravelValidationRules\Rules\Services\Aws\S3BucketName;

return [
    'bucket_name' => ['