ZN Framework Validation Package
Follow the steps below for installation and use.
Installation
You only need to run the following code for the installation.
composer require znframework/package-validation
Documentation
Click for documentation of your library.
Example Usage
Basic level usage is shown below.
<?php require 'vendor/autoload.php';
ZN\ZN::run();
use ZN\Request\Post;
Post::username('ExampleUser');
Post::password('1234');
Validation::rules('username', ['required', 'email'], 'Username:');
Validation::rules('password', ['required', 'minchar' => 8, 'maxhar' => 32], 'Username:');
Output::display(Validation::error());