1. Go to this page and download the library: Download seymenkonuk/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/ */
seymenkonuk / validator example snippets
$validator = new Validator(new Translator(
new FileLoader(),
"tr",
));
$validator = new Validator(new Translator(
new FileLoader(__DIR__ . "/lang"),
"tr",
));
return [
" "Bu alan metin olmalıdır.",
"email" => "Bu alan geçerli bir e-posta olmalıdır.",
'min' => 'Bu alan en az {value} olmalıdır!',
// ve daha fazlası...
];