Download the PHP package fyre/validation without Composer

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

FyreValidation

FyreValidation is a free, open-source validation library for PHP.

Table Of Contents

Installation

Using Composer

In PHP:

Validators

Add

Add a validation rule.

Clear

Clear all rules from the Validator.

Get Field Rules

Get the rules for a field.

Remove

Remove a validation rule.

If the $name argument is omitted, all rules will be removed instead.

Validate

Perform validation and return any errors.

Rules

Alpha

Create an "alpha" Rule.

Alpha Numeric

Create an "alpha-numeric" Rule.

Ascii

Create an "ASCII" Rule.

Between

Create a "between" Rule.

Boolean

Create a "boolean" Rule.

Decimal

Create a "decimal" Rule.

Date

Create a "date" Rule.

DateTime

Create a "date/time" Rule.

Differs

Create a "differs" Rule.

Email

Create an "email" Rule.

Empty

Create an "empty" Rule.

Equals

Create an "equals" Rule.

Exact Length

Create an "exact length" Rule.

Greater Than

Create a "greater than" Rule.

Greater Than Or Equals

Create a "greater than or equals" Rule.

In

Create an "in" Rule.

Integer

Create an "integer" Rule.

Ip

Create an "IP" Rule.

Ipv4

Create an "IPv4" Rule.

Ipv6

Create an "IPv6" Rule.

Less Than

Create a "less than" Rule.

Less Than Or Equals

Create a "less than or equals" Rule.

Matches

Create a "matches" Rule.

Max Length

Create a "maximum length" Rule.

Min Length

Create a "minimum length" Rule.

Natural Number

Create a "natural number" Rule.

Not Empty

Create an "not empty" Rule.

Regex

Create a "regular expression" Rule.

Required

Create a "required" Rule.

Require Presence

Create a "require presence" Rule.

Time

Create a "time" Rule.

Url

Create a "URL" Rule.

Error Messages

Custom error messages can be used by supplying the message property of the $options array to the Validator add method.

Alternatively, for custom validation callbacks, a string can be returned and that will be used as the error messages.

If a custom error message is not supplied, the rule name will be used to retrieve a Lang value. The field placeholder can be used for the field name, and any arguments supplied to the rule will be available as numeric placeholders.

If no error message is available, the error message will simply be set to "invalid".


All versions of validation with dependencies

PHP Build Version
Package Version
Requires fyre/container Version ^1.0
fyre/lang Version ^4.0
fyre/typeparser Version ^5.0
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 fyre/validation contains the following files

Loading the files please wait ....