2017 © Pedro Peláez
 

library laravel-validate-mysql-integers

Validation Rule to ensure a value is within valid Mysql Integer ranges.

image

rackbeat/laravel-validate-mysql-integers

Validation Rule to ensure a value is within valid Mysql Integer ranges.

  • Wednesday, May 30, 2018
  • by lasserafn
  • Repository
  • 1 Watchers
  • 2 Stars
  • 278 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Validation Rule to ensure a value is within valid Mysql Integer ranges.

Works for signed and unsigned integers of type: TinyInt, SmallInt, Int, BigInt., (*1)

Build Status Coverage Total Downloads Latest Stable Version License , (*2)

Installation

You just require using composer and you're good to go!, (*3)

composer require rackbeat/laravel-validate-mysql-integers

The Service Provider is automatically registered., (*4)

Usage

Class

  • Rackbeat\Rules\TinyInteger
  • Rackbeat\Rules\SmallInteger
  • Rackbeat\Rules\Integer
  • Rackbeat\Rules\BigInteger
'number' => [
    new Rackbeat\Rules\BigInteger($unsigned = true),
],

Helper

The helpers are prefixed with "real_" to prevent overlapping. It can take an optional parameter to determine if its unsigned. Defaults to false., (*5)

  • real_tiny_int
  • real_small_int
  • real_int
  • real_big_int
'id'        => ['real_tiny_int:1'], // unsigned
'number'    => ['real_tiny_int:0'], // signed

Requirements

  • PHP >= 7.1

Contributors

The Versions

30/05 2018

dev-master

9999999-dev

Validation Rule to ensure a value is within valid Mysql Integer ranges.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rackbeat

laravel validation mysql integer bigint rule int unsigned tinyint smallint

30/05 2018

1.2

1.2.0.0

Validation Rule to ensure a value is within valid Mysql Integer ranges.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rackbeat

laravel validation mysql integer bigint rule int unsigned tinyint smallint

30/05 2018

1.1

1.1.0.0

Validation Rule to ensure a value is within valid Mysql Integer ranges.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rackbeat

laravel validation mysql integer bigint rule int unsigned tinyint smallint

30/05 2018

1.0

1.0.0.0

Validation Rule to ensure a value is within valid Mysql Integer ranges.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rackbeat

laravel validation mysql integer bigint rule int unsigned tinyint smallint