PHPackages                             rackbeat/laravel-validate-mysql-integers - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. rackbeat/laravel-validate-mysql-integers

ActiveLibrary[Database &amp; ORM](/categories/database)

rackbeat/laravel-validate-mysql-integers
========================================

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

2.0(3y ago)539.7k4MITPHPPHP &gt;=7.1CI failing

Since May 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Rackbeat/laravel-validate-mysql-integers)[ Packagist](https://packagist.org/packages/rackbeat/laravel-validate-mysql-integers)[ RSS](/packages/rackbeat-laravel-validate-mysql-integers/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (11)Used By (0)

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

[](#validation-rule-to-ensure-a-value-is-within-valid-mysql-integer-ranges)

Works for signed and unsigned integers of type: TinyInt, SmallInt, Int, BigInt.

 [![Build Status](https://camo.githubusercontent.com/a6d343235a59366d48f69d4ab4522eee9f72209415ea53b3824fb94441e32673/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5261636b626561742f6c61726176656c2d76616c69646174652d6d7973716c2d696e7465676572732e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Rackbeat/laravel-validate-mysql-integers)[![Coverage](https://camo.githubusercontent.com/c4e4b9336ced37f32207026bf8c54c8c28e0bb9305db646505c7e26a2280aef2/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f5261636b626561742f6c61726176656c2d76616c69646174652d6d7973716c2d696e7465676572732e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/Rackbeat/laravel-validate-mysql-integers)[![Total Downloads](https://camo.githubusercontent.com/307bbb3b42e5c3036cb9bbce91e01636546401f230c20cc8737d7353229ebf52/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7261636b626561742f6c61726176656c2d76616c69646174652d6d7973716c2d696e7465676572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rackbeat/laravel-validate-mysql-integers)[![Latest Stable Version](https://camo.githubusercontent.com/b37fe095786feb506bc4f9d93af3ff2ce4a68b344abd73d6527f00bba9b052e2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7261636b626561742f6c61726176656c2d76616c69646174652d6d7973716c2d696e7465676572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rackbeat/laravel-validate-mysql-integers)[![License](https://camo.githubusercontent.com/7dc04ac064e1ebc8d3a2610daf22a0c8774e45a5ac85f4b2d41822fbd59e79f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7261636b626561742f6c61726176656c2d76616c69646174652d6d7973716c2d696e7465676572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rackbeat/laravel-validate-mysql-integers)

Installation
------------

[](#installation)

You just require using composer and you're good to go!

```
composer require rackbeat/laravel-validate-mysql-integers
```

The Service Provider is automatically registered.

Usage
-----

[](#usage)

### Class

[](#class)

- `Rackbeat\Rules\TinyInteger`
- `Rackbeat\Rules\SmallInteger`
- `Rackbeat\Rules\Integer`
- `Rackbeat\Rules\BigInteger`

```
'number' => [
    new Rackbeat\Rules\BigInteger($unsigned = true),
],
```

### Helper

[](#helper)

The helpers are prefixed with "real\_" to prevent overlapping. It can take an optional parameter to determine if its unsigned. Defaults to `false`.

- `real_tiny_int`
- `real_small_int`
- `real_int`
- `real_big_int`

```
'id'        => ['real_tiny_int:1'], // unsigned
'number'    => ['real_tiny_int:0'], // signed
```

Requirements
------------

[](#requirements)

- PHP &gt;= 7.1

[Contributors](https://github.com/Rackbeat/laravel-validate-mysql-integers/graphs/contributors)
-----------------------------------------------------------------------------------------------

[](#contributors)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 77.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~182 days

Recently: every ~164 days

Total

10

Last Release

1270d ago

Major Versions

1.8 → 2.02022-11-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/fd953630eb9784e977637a0fe53be91b9dd4b0262a5b5b1fa9277e0c2806b65c?d=identicon)[lasserafn](/maintainers/lasserafn)

---

Top Contributors

[![LasseRafn](https://avatars.githubusercontent.com/u/2689341?v=4)](https://github.com/LasseRafn "LasseRafn (14 commits)")[![jstoone](https://avatars.githubusercontent.com/u/1711456?v=4)](https://github.com/jstoone "jstoone (3 commits)")[![chrisk-7777](https://avatars.githubusercontent.com/u/55621012?v=4)](https://github.com/chrisk-7777 "chrisk-7777 (1 commits)")

---

Tags

laravelvalidationmysqlintegerruleintunsignedtinyintbigintsmallint

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rackbeat-laravel-validate-mysql-integers/health.svg)

```
[![Health](https://phpackages.com/badges/rackbeat-laravel-validate-mysql-integers/health.svg)](https://phpackages.com/packages/rackbeat-laravel-validate-mysql-integers)
```

###  Alternatives

[watson/validating

Eloquent model validating trait.

9723.3M47](/packages/watson-validating)[propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

3.0k35.7M107](/packages/propaganistas-laravel-phone)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
