znframework/package-validation

ZN Framework Validation Package

7.2.0 2022-12-18 13:57 UTC

This package is auto-updated.

Last update: 2024-10-18 18:19:50 UTC


README

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());