1. Go to this page and download the library: Download stellarwp/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/ */
stellarwp / validation example snippets
use StellarWP\Validation\Config;
Config::setServiceContainer(MyContainer::class); // ionClass(MyInvalidArgumentException::class); // optional
Config::setValidationExceptionClass(MyValidationException::class); // optional
Config::initialize(); // mounts rules registrar to service container