tylercd100/laravel-validator-state
Validate that a states and provinces for US and Canada
44
1
Larablocks Analysis
tylercd100/laravel-validator-state works with Laravel 5 (latest release 1.0.0, Apr 13, 2017), which reached end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: Apr 13, 2017)
- 0 downloads a month (needs 10,000)
- 1 GitHub star (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Apr 13, 2017.
- No releases in the last 12 months.
- First released: Apr 13, 2017.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.
| Install | |
|---|---|
composer require tylercd100/laravel-validator-state |
|
| Latest Version: | 1.0.0 |
| PHP: | ^5.5.9|^7.0 |
| Laravel: | 5 |
| License: | MIT |
| Last Updated: | Oct 18, 2017 |
| Links: | GitHub · Packagist |
Maintainer: tylercd100
Validate states and provinces for USA and Canada with Laravel 5
This Package has moved to here for laravel 5.5+. Please use that instead. Also check out these other community validation rules
Installation
Install via composer - In the terminal:
composer require tylercd100/laravel-validator-state
Now add the following to the providers array in your config/app.php
Tylercd100\Validator\State\ServiceProvider::class
Usage
# USA vs Canada
Validator::make(['test' => 'UT'], ['test' => 'state']); //true
Validator::make(['test' => 'UT'], ['test' => 'state:usa']); //true
Validator::make(['test' => 'BC'], ['test' => 'state:canada']); //true
# Abbreviation vs Full
Validator::make(['test' => 'Utah'], ['test' => 'state:full']); //true
Validator::make(['test' => 'UT'], ['test' => 'state:abbr']); //true
# Mix and match
Validator::make(['test' => 'UT'], ['test' => 'state:usa,abbr']); //true
Validator::make(['test' => 'Alberta'], ['test' => 'state:canada,full']); //true
Alternatives to tylercd100/laravel-validator-state
stuyam/laravel-phone-validator
A phone validator for Laravel using the free Twilio phone lookup service.
63,478
28
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.0.0 | ^5.5.9| | ^5.0 | MIT |

