PHP code example of runner / validation

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

    

runner / validation example snippets


use Runner\Validation\RequestValidatorInterface;

class OrderStoreRequestValidator implements RequestValidatorInterface
{
    public function rules()
    {
        return [
            'price' => '

#file: config/config.php

return [
    'validation' => [
        'orders.store' => OrderStoreRequestValidator::class
    ],
];