PHP code example of cerbero / command-validator

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

    

cerbero / command-validator example snippets

 php
protected function messages()
{
    return [
        'min' => 'The minimum allowed :attribute is :min'
    ];
}

protected function attributes()
{
    return [
        'year' => 'year of birth'
    ];
}