Download the PHP package simon-ugorji/octavalidate-php without Composer

On this page you can find all versions of the php package simon-ugorji/octavalidate-php. 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 octavalidate-php

octaValidate-PHP V2.1

This is a feature-rich Library that helps to validate your forms server-side using sophisticated regular expressions, PHP's inbuilt validation, and validation rules.

We have included a demo folder containing some forms with validation rules applied to each of them. Open any of the files in your local server and submit the form.

This Library also helps to validate your frontend forms using JavaScript. Visit the repository

OTHER RELEASES

Octavalidate - JS

Use the JavaScript release of this library to validate your frontend (HTML) forms.

Visit the repository

Octavalidate - NodeJS

Use the NodeJS release of this library to validate your forms server-side.

Visit the repository

DOCUMENTATION

Visit the DOCUMENTATION to learn more about this GREAT Library, and play with the forms there!

INSTALL

COMPOSER

LOCAL

How to Use

ABOUT THE VALIDATE FIELDS METHOD

The validateFields method accepts 2 arguments;

This method returns a boolean.

The validateFields method does not validate uploaded files! Keep reading to learn how you can validate uploaded files.

VALIDATION RULES

Here are the inbuilt validation rules.

Didn't see the validation rule that you need for your form? Don't worry!

With this library, you have the power to define your custom rule and it will be processed as if it were an inbuilt rule.

CUSTOM VALIDATION RULES

Syntax for defining a custom rule

Here's a custom rule to validate a password.

MORE CUSTOM RULES

What if you want to define more validation rules?

All you have to do is to create an array that will contain the rule title as the array's property, and its value is another array containing the rule's regular expression, and error text separated by a comma.

Here's the syntax

Here's a custom username & password validation rules

Note that: All Rule Titles are case-sensitive!

ATTRIBUTES VALIDATION

Currently we have 4 types of attribute validation:

All attribute validation follows the syntax below

LENGTH VALIDATION RULES

You can check the number of characters provided by the user using this validation.

For Example;

EQUALTO VALIDATION RULES

You can check if two inputs contain the same values using the rule EQUALTO. The value of this validation rule must be the other input name you wish to check against.

FILE VALIDATION RULES

In File validation, we have rules such as;

Note that size, minsize & maxsize works on both single or multiple files upload.

For example;

Please refer to the documentation to learn more about file validation.

API METHODS

CONFIGURATION

We have 3 configuration options:

To use any of these options, provide it as an array and pass it as the second argument when creating an instance of octaValidate.

REFERENCE METHODS

After creating a new instance of the function, the methods below becomes available for use.

There are more methods in the documentation, Please refer to the documentation to learn more.

DEMO

Author

Simon Ugorji

Support Me

Donate with PayPal

Contributors

Simon Ugorji


All versions of octavalidate-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.40
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 simon-ugorji/octavalidate-php contains the following files

Loading the files please wait ....