Download the PHP package evolutionphp/form_validation without Composer

On this page you can find all versions of the php package evolutionphp/form_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 form_validation

PHP Form Validation Library

Simple PHP Form Validator based in Code Igniter library.

Installation

Use Composer to install Logger into your project:

Setting Validation Rules

Here is an example to set validation rules:

A complete code looks like this:

Setting Rules Using an Array

Before moving on it should be noted that the rule setting method can be passed an array if you prefer to set all your rules in one action. If you use this approach, you must name your array keys as indicated:

Validating an Array (other than $_POST)

Sometimes you may want to validate an array that does not originate from $_POST data.

[!IMPORTANT] For a full documentation visit the CodeIgniter Form Validation page.

Extra Validation Rules

Rule Parameter Description Example
valid_date Yes Fails if field does not contain a valid date. Any string that strtotime() accepts is valid if you don’t specify an optional parameter that matches a date format. So it is usually necessary to specify the parameter. valid_date[d/m/Y]
valid_json No Fails if field does not contain a valid JSON string.
uploaded No It works like 'required' but for $_FILES
is_image No Fails if the file cannot be determined to be an image based on the mime type.
mime_in Yes Fails if the file’s mime type is not one listed in the parameters. mime_in[image/png,image/jpeg]
ext_in Yes Fails if the file’s extension is not one listed in the parameters. ext_in[png,jpg,gif]
max_size Yes Fails if the uploaded file is larger than the second parameter in kilobytes (kb). max_size[1024]
max_dims Yes Fails if the maximum width and height of an uploaded image exceed values. max_dims[468,60]
min_dims Yes Fails if the minimum width and height of an uploaded image not meet values. min_dims[468,60]
exact_dims Yes Fails if the width and height of an uploaded image has different values. exact_dims[468,60]

Use translated error messages

By default, error messages are located in /src/Lang/data.php, you can use your own translation loading a new array data:

Authors

This library was primarily developed by CodeIgniter 3 and modified by Andres M.


All versions of form_validation with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
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 evolutionphp/form_validation contains the following files

Loading the files please wait ...