PHPackages                             sukohi/laravel-jp-postal-code - 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. sukohi/laravel-jp-postal-code

ActiveLibrary

sukohi/laravel-jp-postal-code
=============================

A Laravel package that allows you to search address with Japanese postal code.

1.0.1(6y ago)31.4k7MITPHP

Since Dec 10Pushed 6y ago1 watchersCompare

[ Source](https://github.com/SUKOHI/laravel-jp-postal-code)[ Packagist](https://packagist.org/packages/sukohi/laravel-jp-postal-code)[ RSS](/packages/sukohi-laravel-jp-postal-code/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (4)Used By (0)

laravel-jp-postal-code
======================

[](#laravel-jp-postal-code)

A Laravel package that allows you to search address with Japanese postal code.
(This package is maintained under Laravel 5.7.)

Installation
============

[](#installation)

Run the following command.

```
composer require sukohi/laravel-jp-postal-code:1.*

```

Preparation
===========

[](#preparation)

The migration file is automatically loaded.
So just run this command.

```
php artisan migrate

```

And download "ken\_all.zip" from the below by clicking "全国一括".

[読み仮名データの促音・拗音を小書きで表記するもの](https://www.post.japanpost.jp/zipcode/dl/kogaki-zip.html)

Set a csv file in `/storage/app/csv/KEN_ALL.CSV` after unzip.

Now the time to import postal data.
Run this command.

```
php artisan import:jp-postal-code

```

***Note:*** Import takes time because the csv file has over 120,000 lines.

Configuration
=============

[](#configuration)

If you'd like to configure, publish `jp_postal_code.php`.

```
php artisan vendor:publish --provider="Sukohi\LaravelJpPostalCode\LaravelJpPostalCodeServiceProvider"

```

Now you have `jp_postal_code.php` in `/config` folder.

***endpoint***

This is URL that provides feature of address search.
So you can search Japanese address as follows though Ajax.

1. /api/jp\_postal\_code?code=131-0045
2. /api/jp\_postal\_code?first\_code=131&amp;last\_code=0045

Multi-byte character like "１３１００４５" is also available.

\[Response example\]

```
{
    address: "押上"
    city: "墨田区"
    first_code: "131"
    full_address: "〒131-0045 東京都墨田区押上"
    full_code: "131-0045"
    id: 39342
    last_code: "0045"
    prefecture: "東京都"
}

```

- You can change format of `full_address` and `full_code` in `/config/jp_postal_code.php`.

***import\_path***

The path of "KEN\_ALL.CSV".

***address\_format***

The format of `full_address` when retrieving address.

***postal\_code\_format***

The format of `full_code` when retrieving address.

License
=======

[](#license)

This package is licensed under the MIT License. Copyright 2019 Sukohi Kuhoh

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

2344d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2980d59b309d45df3f2e6e51b1d336614da063240b8f76f873f287cd745ec5db?d=identicon)[Sukohi](/maintainers/Sukohi)

---

Top Contributors

[![SUKOHI](https://avatars.githubusercontent.com/u/5362394?v=4)](https://github.com/SUKOHI "SUKOHI (4 commits)")

### Embed Badge

![Health badge](/badges/sukohi-laravel-jp-postal-code/health.svg)

```
[![Health](https://phpackages.com/badges/sukohi-laravel-jp-postal-code/health.svg)](https://phpackages.com/packages/sukohi-laravel-jp-postal-code)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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