PHP code example of lbdawkes / request-helper
1. Go to this page and download the library: Download lbdawkes/request-helper 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/ */
lbdawkes / request-helper example snippets
// Ruleset with key matching request parameter and value matching rules
$rules = [
"name" => "for request parameters with special characters
$aliases = [
"name" => "Full Name"
];
// Will either be true for success, or an array of error messages
$result = RequestHelper::validatePost($rules, $aliases);
"human_check_hidden" => "null"