1. Go to this page and download the library: Download mivir/pupil 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/ */
mivir / pupil example snippets
$pupil = new \Mivir\Pupil\Pupil();
$pupil->validate($rules, $values);
isValid() // Whether the validation was successful or not
hasErrors() // The opposite of isValid()
errors() // Returns the fields that didn't pass validation
fields() // Returns all of the fields and their validation results