Download the PHP package global-source/javascript-form-validator without Composer

On this page you can find all versions of the php package global-source/javascript-form-validator. 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 javascript-form-validator

Global Source - JavaScript Form Validator [Ready to Use]

Packagist Packagist License

Installation

git clone https://github.com/global-source/javascript_form_validator.git
git checkout -b [VERSION]

Why me ?

Steps to Integrate to Form :

Then Integrate your form with Validator.

Options

Name Values Descriptions Mandatory
form #ID ID of the Form to handle validations and filters. Yes
forceFilter Bool True, to allow form filter without form validations. False, default. No
message Object Response message for all HTML elements. No
Log Bool To enable error log on console. No

Actions

check() : Return as Form is Valid or Not.

update() : Update Newly created DOM elements to Validator.


Attributes

Name Values Descriptions
required True, False Set the fields is required to submit the Form.
min Integer To set the Minimun value to proceed.
max Integer To set the Maximum value to proceed.
data-maxlength="10" Integer To set the Maximum length of characters to proceed.
maxLength="10" Integer To set the Maximum length of characters to proceed.
type="password" AlphaNumeric To set and compare password.
type="email" AlphaNumeric To check the email is valid or not.
type="file" string ['png,jpeg..'] To check the file format is allowed or not.
data-message="Error Message" String User defined, element based direct error message to handle.
data-allow="onlyAlpha" Alphabets Only Allow only string, no digits and no special characters.
data-allow="string" Alphabets + Numbers Only Allow only string and digits, no special characters.
data-allowSpecial="/_+" Special characters Allow only given special characters.
[INDEX] Numeric Now supports Min&Max validation to show the limit.

Currently the validation will trigger on submit button trigger.

It has automated listener to monitor every changes on form.

Note:

  1. Validation take place between tags, so need to specify the ID
    of the Form or any other tags.

For General Input Validation

  1. Input Fields should specify the type of validation.

  2. In form use novalidate to avoid browser interuptions.

Sample

It Will listen the Submit event Automatically and initiating the validation checks. And based on response, it will allow to submit or throw messages.

License

Copyright (c) 2016 Shankar Thiyagaraajan

MIT License


All versions of javascript-form-validator with dependencies

PHP Build Version
Package Version
No informations.
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 global-source/javascript-form-validator contains the following files

Loading the files please wait ....