znframework / package-validation
ZN Framework Validation Package
8.21.0
2025-01-05 14:02 UTC
Requires
- php: >=7.0.0
- znframework/package-captcha: >=6.0
- znframework/package-datetime: >=6.0
- znframework/package-security: >=6.0
- znframework/package-storage: >=6.0
- znframework/package-zerocore: >=6.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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());