PHPackages                             sukohi/japanese-prefectures - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sukohi/japanese-prefectures

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sukohi/japanese-prefectures
===========================

A PHP package mainly developed for Laravel to manage Japanese prefectures.

19PHP

Since Aug 11Pushed 10y ago1 watchersCompare

[ Source](https://github.com/SUKOHI/JapanesePrefectures)[ Packagist](https://packagist.org/packages/sukohi/japanese-prefectures)[ RSS](/packages/sukohi-japanese-prefectures/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

JapanesePrefectures
===================

[](#japaneseprefectures)

A PHP package mainly developed for Laravel to manage Japanese prefectures.

**Note:**This package was integrated into [Wafu](https://github.com/SUKOHI/Wafu).

Installation&amp;setting for Laravel
====================================

[](#installationsetting-for-laravel)

After installation using composer, add the followings to the array in app/config/app.php

```
'providers' => array(
    ...Others...,
    'Sukohi\JapanesePrefectures\JapanesePrefecturesServiceProvider',
)

```

Also

```
'aliases' => array(
    ...Others...,
    'JapanesePrefectures' =>'Sukohi\JapanesePrefectures\Facades\JapanesePrefectures',
)

```

Usage
=====

[](#usage)

```
$prefectures = JapanesePrefectures::prefectures();
print_r($prefectures);

echo JapanesePrefectures::prefectureName(1);		// 北海道
echo JapanesePrefectures::prefectureId('兵庫県');	// 28

$regions = JapanesePrefectures::regions();
print_r($regions);

echo JapanesePrefectures::regionName(3);			// 関東
echo JapanesePrefectures::regionId('東北');			// 2

$region_prefecture_ids = JapanesePrefectures::regionPrefectureIds();
print_r($region_prefecture_ids);

```

Example

```
foreach ($region_prefecture_ids as $region_id => $prefecture_ids) {

	echo ''. JapanesePrefectures::regionName($region_id) .'';

	foreach ($prefecture_ids as $prefecture_id) {

		echo '&nbsp;'. JapanesePrefectures::prefectureName($prefecture_id) .'';

	}

}

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### 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 (1 commits)")

### Embed Badge

![Health badge](/badges/sukohi-japanese-prefectures/health.svg)

```
[![Health](https://phpackages.com/badges/sukohi-japanese-prefectures/health.svg)](https://phpackages.com/packages/sukohi-japanese-prefectures)
```

###  Alternatives

[marvinlabs/laravel-html-font-awesome

A fluent html builder for Font Awesome icons

151.7k](/packages/marvinlabs-laravel-html-font-awesome)

PHPackages © 2026

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