PHPackages                             imo-tikuwa/cakephp-zipcode-jp - 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. imo-tikuwa/cakephp-zipcode-jp

ActiveCakephp-plugin

imo-tikuwa/cakephp-zipcode-jp
=============================

ZipcodeJp plugin for CakePHP

v2.2.0(3y ago)0126MITPHPPHP &gt;=8.0

Since Aug 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/imo-tikuwa/cakephp-zipcode-jp)[ Packagist](https://packagist.org/packages/imo-tikuwa/cakephp-zipcode-jp)[ RSS](/packages/imo-tikuwa-cakephp-zipcode-jp/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (1)Versions (18)Used By (0)

ZipcodeJp plugin for CakePHP 3 and 4
====================================

[](#zipcodejp-plugin-for-cakephp-3-and-4)

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](https://getcomposer.org).

The recommended way to install composer packages is:

```
# for CakePHP4
composer require imo-tikuwa/cakephp-zipcode-jp "2.*"

# for CakePHP3
composer require imo-tikuwa/cakephp-zipcode-jp "1.*"

```

Load the plugin in Application.php.

```
class Application extends BaseApplication
{
    public function bootstrap()
    {
        $this->addPlugin('ZipcodeJp', ['routes' => true]);
    }
}
```

Initialization
--------------

[](#initialization)

Execute migration to create `zipcode_jps` table.
When you execute the `initialize_zipcode_jp` command, the latest postal code data of Japan Post will be acquired and stored in the database.

```
bin\cake.bat migrations migrate --plugin ZipcodeJp
bin\cake.bat initialize_zipcode_jp

```

Usage(server side)
------------------

[](#usageserver-side)

```
$zipcode = '1010032';

$this->ZipcodeJps = $this->fetchTable('ZipcodeJp.ZipcodeJps');
$result = $this->ZipcodeJps->findByZipcode($zipcode);
```

Usage(client side)
------------------

[](#usageclient-side)

```

```

```
$("#zipcode").on("keyup", function(){
    $("#pref").text('');
    $("#city").text('');
    $("#address").text('');
    if ($(this).val().length == 7) {
        let requesturl = '/zipcode-jp/' + $(this).val() + '.json';
        $.ajax({
            type: 'get',
            url: requesturl,
            dataType: 'json'
        }).done(function(result) {
            if (result != null) {
                $("#pref").text(result['pref']);
                $("#city").text(result['city']);
                $("#address").text(result['address']);
            }
        });
    }
});
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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 ~71 days

Recently: every ~161 days

Total

13

Last Release

1249d ago

Major Versions

v0.1.1 → v2.0.12020-10-09

v2.0.1 → 3.x-dev2020-10-09

v1.0.1 → v2.0.22020-10-15

PHP version history (2 changes)v2.0.4PHP &gt;=7.2

v2.0.5PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/03ffdd79ec95f91c916b789ff16fc94e60bd8a53bdd2a4cd64a79963c9878c6b?d=identicon)[imo-tikuwa](/maintainers/imo-tikuwa)

---

Top Contributors

[![imo-tikuwa](https://avatars.githubusercontent.com/u/48991931?v=4)](https://github.com/imo-tikuwa "imo-tikuwa (43 commits)")

### Embed Badge

![Health badge](/badges/imo-tikuwa-cakephp-zipcode-jp/health.svg)

```
[![Health](https://phpackages.com/badges/imo-tikuwa-cakephp-zipcode-jp/health.svg)](https://phpackages.com/packages/imo-tikuwa-cakephp-zipcode-jp)
```

###  Alternatives

[friendsofcake/cakepdf

CakePHP plugin for creating and/or rendering Pdfs, several Pdf engines supported.

3752.1M3](/packages/friendsofcake-cakepdf)[cakephp/bake

Bake plugin for CakePHP

11211.2M158](/packages/cakephp-bake)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

338920.1k32](/packages/dereuromark-cakephp-tools)[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308850.3k14](/packages/dereuromark-cakephp-queue)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1862.1M27](/packages/dereuromark-cakephp-ide-helper)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

129228.6k10](/packages/dereuromark-cakephp-tinyauth)

PHPackages © 2026

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