2017 © Pedro Peláez
 

library validate-laravel

Extends the Laravel validation service with additional rules

image

hampel/validate-laravel

Extends the Laravel validation service with additional rules

  • Friday, May 22, 2015
  • by hampel
  • Repository
  • 0 Watchers
  • 0 Stars
  • 889 Installations
  • 2 Dependents
  • 2 Suggesters
  • 0 Forks
  • 0 Open issues
  • 28 Versions
  • 0 % Grown

The README.md

Additional Laravel Validation Rules

Custom Validators for Laravel, (*1)

By Simon Hampel., (*2)

Installation

The recommended way of installing this validation library is through Composer:, (*3)

Require the package via Composer in your composer.json, (*4)

{
    "require": {
        "hampel/validate-laravel": "~2.1"
    }
}

Run Composer to update the new requirement., (*5)

$ composer update

The package is built to work with the Laravel Framework., (*6)

Open your Laravel config file config/app.php and add the service provider in the $providers array:, (*7)

"providers" => array(

    ...

    "Hampel\Validate\Laravel\ValidateServiceProvider"

),

Notes

Version 2.0 of this library removes several rules previously available:, (*8)

unique_or_zero and exists_or_zero have been removed as they were deemed to be of little value, (*9)

domain, domain_in, tld and tld_in have been moved to a new package hampel/tlds., (*10)

The getTlds helper function has also been removed and you should install the hampel/tlds package to gain access to all new functions for retrieving an up-to-date list of all valid TLDs directly from IANA or other sources., (*11)

Usage

This package adds additional validators for Laravel - refer to Laravel Documentation - Validation for general usage instructions., (*12)

bool, (*13)

The field under validation must be the equivalent of a "boolean" (either true or false) in a variety of forms. Acceptable values include: "1", "true", "on" and "yes", "0", "false", "off", "no", "", and NULL, (*14)

ipv4_public, (*15)

The field under validation must be a public IPv4 address - ie. not in the "private" or "reserved" ranges., (*16)

ipv6_public, (*17)

The field under validation must be a public IPv6 address - ie. not in the "private" or "reserved" ranges., (*18)

ip_public, (*19)

The field under validation must be a public IPv4 or IPv6 address - ie. not in the "private" or "reserved" ranges., (*20)

uploaded_file, (*21)

The field under validation must be an uploaded file of type Symfony\Component\HttpFoundation\File\UploadedFile, as returned from Input::file(). The file upload must also be valid, that is, the upload must have succeeded with an error return of UPLOAD_ERR_OK (see File Upload Error Messages Explained for more details on file upload errors), (*22)

The Versions

22/05 2015

dev-master

9999999-dev https://bitbucket.org/hampel/validate-laravel

Extends the Laravel validation service with additional rules

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel validation

22/05 2015

2.1.1

2.1.1.0 https://bitbucket.org/hampel/validate-laravel

Extends the Laravel validation service with additional rules

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel validation

14/02 2015

2.1.0

2.1.0.0 https://bitbucket.org/hampel/validate-laravel

Extends the Laravel validation service with additional rules

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel validation

03/10 2014

2.0.0

2.0.0.0 https://bitbucket.org/hampel/validate-laravel

Extends the Laravel validation service with additional rules

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel validation

08/10 2013
27/09 2013
15/08 2013

0.4.0

0.4.0.0 https://bitbucket.org/hampel/validate-laravel

Custom Laravel 4 Validator service provider composer package

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel php validation

25/07 2013

0.3.0

0.3.0.0 https://bitbucket.org/hampel/validate-laravel

Custom Laravel 4 Validator service provider composer package

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel php validation

24/07 2013

0.2.0

0.2.0.0 https://bitbucket.org/hampel/validate-laravel

Custom Laravel 4 Validator service provider composer package

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel php validation

24/07 2013

0.1.0

0.1.0.0 https://bitbucket.org/hampel/validate-laravel

Custom Laravel 4 Validator service provider composer package

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel php validation