PHP code example of hakim / rotadilav

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

    

hakim / rotadilav example snippets


    $login = 'Username';
    $password = '321password123';
        
    $validator = new Rotadilav([
        $login => new Rules(
            new Required(),
            new MaxLength(18)
        ),
        $password => new Rules(
            new Required(),
            new MaxLength(32)
        )
    ]);

    $validator->validate();