Download the PHP package bvp/prefecture without Composer
On this page you can find all versions of the php package bvp/prefecture. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bvp/prefecture
More information about bvp/prefecture
Files in bvp/prefecture
Informations about the package prefecture
BVP Prefecture
日本語
The BVP Prefecture provides structured data about all Japanese prefectures, including their names in various scripts (Kanji, Hiragana, Katakana, English), region information, and identifier numbers. It is useful for applications that need to handle Japanese geographic data in a consistent and normalized way.
Installation
Usage
Available Methods
Retrieving All Prefectures
Prefecture::all()
Filtering by Prefecture
Prefecture::byNumber()
Prefecture::byName()
Prefecture::byShortName()
Prefecture::byHiraganaName()
Prefecture::byKatakanaName()
Prefecture::byEnglishName()
Filtering by Region
Prefecture::byRegionNumber()
Prefecture::byRegionName()
Prefecture::byRegionShortName()
Each method also supports byRegionNameList()
for multiple inputs.
Retrieve All Prefectures
Filter by Prefecture Number
Filter by Prefecture Name
Filter by Prefecture Short Name
Filter by Prefecture Hiragana Name
Filter by Prefecture Katakana Name
Filter by Prefecture English Name
Filter by Region Number
Filter by Region Name
Filter by Region Short Name
Filter by Multiple Criteria (Lists)
Data Format
The prefecture codes used in this library are based on JIS X 0401 (Japanese Prefecture Codes), with leading zeros removed and represented as integers.
Why use this?
- Consistent and normalized prefecture data for Japanese apps
- Multiple name formats supported (Kanji, Hiragana, Katakana, English)
- Easy to filter by region or name
License
The BVP Prefecture is open source software licensed under the MIT license.