Download the PHP package harryosmar/plugin-validation without Composer

On this page you can find all versions of the php package harryosmar/plugin-validation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package plugin-validation

Validation

Composer plugin for validation purpose, contains set of validation rules.

Latest Version Build Status Scrutinizer Code Quality Code Coverage

Features

validation structure

Installation

Add this composer.json file

Then running

Or type

in composer.json root directory

How To Use

1. initialize
2. add fields to $validation object
3. call the $validation run method
4. get the errors message if $status is false

$erros values

validation with option break validation chain

You can break the validation chain if there is a field get an error. In step 3, when calling the method run of $validation object, add parameter true to enable break the chain when error occured

then $erros values will be

2 Types Validation

Validation

see the sample code

Form Validation

The $erros will be

Field

There are 2 type of field available :

The $errors will be

The $errors will be

Available Rules

required
numeric
email
aplha
alpha or numeric
decimal
natural
natural with no zero
equal
less than
greater than
less or equal than
greater or equal than
between
between or equal
length
length less than
length greater than
length less or equal than
length greater or equal than
length between
length between or equal
is true for custom rule logic
valid phone

Custom translation

If you want to use your own translation, when instantiate Language class provide the parameter $translation array

Submitting bugs and feature requests

Harry Osmar Sitohang - https://github.com/harryosmar
See also the list of contributors which participated in this project.


All versions of plugin-validation with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
giggsey/libphonenumber-for-php Version ^8.8
zendframework/zend-diactoros Version ^1.7
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package harryosmar/plugin-validation contains the following files

Loading the files please wait ....