PHPackages                             xzxzyzyz/laravel-japanese-validation - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. xzxzyzyz/laravel-japanese-validation

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

xzxzyzyz/laravel-japanese-validation
====================================

Japanese Validation For Laravel

v1.11.0(2mo ago)1425.8k↓46.7%10MITPHPPHP ^8.2CI passing

Since Oct 16Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/xzxzyzyz/laravel-japanese-validation)[ Packagist](https://packagist.org/packages/xzxzyzyz/laravel-japanese-validation)[ RSS](/packages/xzxzyzyz-laravel-japanese-validation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (22)Used By (0)

Laravel Japanese Validation
===========================

[](#laravel-japanese-validation)

[![phpunit](https://github.com/xzxzyzyz/laravel-japanese-validation/actions/workflows/ci.yml/badge.svg)](https://github.com/xzxzyzyz/laravel-japanese-validation/actions/workflows/ci.yml)[![Release](https://camo.githubusercontent.com/33cfe93c8e6d89b8aa0bb49b450080bb9682ad6ec10a79460a5818fe19cf2dbf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f787a787a797a797a2f6c61726176656c2d6a6170616e6573652d76616c69646174696f6e2e7376673f7374796c653d666c6174)](https://camo.githubusercontent.com/33cfe93c8e6d89b8aa0bb49b450080bb9682ad6ec10a79460a5818fe19cf2dbf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f787a787a797a797a2f6c61726176656c2d6a6170616e6573652d76616c69646174696f6e2e7376673f7374796c653d666c6174)[![Packagist](https://camo.githubusercontent.com/4e2c33fca776087670278db4d41d6c331b14a8fe98c45b17c7c96f90e41d677f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f787a787a797a797a2f6c61726176656c2d6a6170616e6573652d76616c69646174696f6e2e737667)](https://packagist.org/packages/xzxzyzyz/laravel-japanese-validation)[![GitHub license](https://camo.githubusercontent.com/3e9de8bdaabf0b49dad74b316136190b02947b715a2305cbaa866d4b25015fb6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f787a787a797a797a2f6c61726176656c2d6a6170616e6573652d76616c69646174696f6e2e7376673f7374796c653d666c6174)](https://camo.githubusercontent.com/3e9de8bdaabf0b49dad74b316136190b02947b715a2305cbaa866d4b25015fb6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f787a787a797a797a2f6c61726176656c2d6a6170616e6573652d76616c69646174696f6e2e7376673f7374796c653d666c6174)

Laravelで利用する日本のバリデーションルール

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

[](#installation)

```
composer require xzxzyzyz/laravel-japanese-validation
```

Usage
-----

[](#usage)

### ひらがな

[](#ひらがな)

```
use Xzxzyzyz\Laravel\JapaneseValidation\Rules\Hiragana;

Validator::make(['name' => 'ひらがなのもじれつ'], ['name' => new Hiragana])->passes(); // true

use Xzxzyzyz\Laravel\JapaneseValidation\Rules\HiraganaAndSpace;

Validator::make(['name' => 'ひらがなの もじれつ'], ['name' => new HiraganaAndSpace])->passes(); // true
```

### カタカナ

[](#カタカナ)

```
use Xzxzyzyz\Laravel\JapaneseValidation\Rules\Katakana;

Validator::make(['kana' => 'カタカナノモジレツ'], ['kana' => new Katakana])->passes(); // true

use Xzxzyzyz\Laravel\JapaneseValidation\Rules\KatakanaAndSpace;

Validator::make(['kana' => 'カタカナノ モジレツ'], ['kana' => new KatakanaAndSpace])->passes(); // true
```

### 半角英数字

[](#半角英数字)

```
use Xzxzyzyz\Laravel\JapaneseValidation\Rules\Alpha;

Validator::make(['alpha' => 'ABC'], ['alpha' => new Alpha])->passes(); // true
Validator::make(['alpha' => 'ＡＢＣ'], ['alpha' => new Alpha])->passes(); // false

use Xzxzyzyz\Laravel\JapaneseValidation\Rules\AlphaDash;

Validator::make(['alpha_dash' => 'ABC-_'], ['alpha_dash' => new AlphaDash])->passes(); // true
Validator::make(['alpha_dash' => 'ＡＢＣー'], ['alpha_dash' => new AlphaDash])->passes(); // false

use Xzxzyzyz\Laravel\JapaneseValidation\Rules\AlphaNumber;

Validator::make(['alpha_num' => 'ABC123'], ['alpha_num' => new AlphaNumber])->passes(); // true
Validator::make(['alpha_num' => 'ＡＢＣ１２３'], ['alpha_num' => new AlphaNumber])->passes(); // false
```

### 電話番号

[](#電話番号)

```
use Xzxzyzyz\Laravel\JapaneseValidation\Rules\Phone;

Validator::make(['phone' => '00-0000-0000'], ['phone' => new Phone])->passes(); // true
Validator::make(['phone' => '0000000000'], ['phone' => new Phone])->passes(); // true
```

### FAX番号

[](#fax番号)

```
use Xzxzyzyz\Laravel\JapaneseValidation\Rules\Fax;

Validator::make(['fax' => '00-0000-0000'], ['fax' => new Fax])->passes(); // true
Validator::make(['fax' => '0000000000'], ['fax' => new Fax])->passes(); // true
```

### 携帯電話番号

[](#携帯電話番号)

```
use Xzxzyzyz\Laravel\JapaneseValidation\Rules\MobilePhone;

Validator::make(['phone' => '090-1111-2222'], ['phone' => new MobilePhone])->passes(); // true
Validator::make(['phone' => '09011112222'], ['phone' => new MobilePhone])->passes(); // true
```

### 郵便番号

[](#郵便番号)

```
use Xzxzyzyz\Laravel\JapaneseValidation\Rules\PostalCode;

Validator::make(['zip' => '000-0000'], ['zip' => new PostalCode])->passes(); // true
Validator::make(['zip' => '0000000'], ['zip' => new PostalCode])->passes(); // true
```

### 都道府県

[](#都道府県)

```
use Xzxzyzyz\Laravel\JapaneseValidation\Rules\Pref;

Validator::make(['pref' => '東京'], ['pref' => new Pref])->passes(); // true
```

###  Health Score

60

—

FairBetter than 99% of packages

Maintenance87

Actively maintained with recent releases

Popularity37

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 97.1% 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 ~170 days

Recently: every ~276 days

Total

19

Last Release

62d ago

PHP version history (9 changes)1.0.0PHP &gt;=7.0

1.0.3PHP ^7.1.3

v1.1.0PHP &gt;=5.6.4

v1.1.1PHP &gt;=7.1

v1.4.0PHP &gt;=7.2

v1.5.0PHP ^7.3

v1.6.0PHP ^7.4|^8.0

v1.9.0PHP ^8.1

v1.11.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/92c21b559b926a5727a1a39ada90d00d9d0e7fa8c26e0d87d680d86b62f76e40?d=identicon)[xzxzyzyz](/maintainers/xzxzyzyz)

---

Top Contributors

[![xzxzyzyz](https://avatars.githubusercontent.com/u/5880474?v=4)](https://github.com/xzxzyzyz "xzxzyzyz (67 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")

---

Tags

laravelvalidationlaravelvalidation

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/xzxzyzyz-laravel-japanese-validation/health.svg)

```
[![Health](https://phpackages.com/badges/xzxzyzyz-laravel-japanese-validation/health.svg)](https://phpackages.com/packages/xzxzyzyz-laravel-japanese-validation)
```

###  Alternatives

[propaganistas/laravel-phone

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

3.0k35.7M107](/packages/propaganistas-laravel-phone)[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)[galahad/laravel-addressing

Laravel package providing addressing functionality

70316.6k](/packages/galahad-laravel-addressing)[orkhanahmadov/laravel-zip-validator

Laravel ZIP file content validator

12424.9k](/packages/orkhanahmadov-laravel-zip-validator)[yorcreative/laravel-argonaut-dto

Argonaut is a lightweight Data Transfer Object (DTO) package for Laravel that supports nested casting, recursive serialization, and validation out of the box. Ideal for service layers, APIs, and clean architecture workflows.

1062.8k1](/packages/yorcreative-laravel-argonaut-dto)

PHPackages © 2026

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