Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Gb T 2260 Laravel Package

medz/gb-t-2260

medz/gb-t-2260 gives PHP and Laravel apps offline access to China's GB/T 2260 administrative division codes, mapping provinces, cities, districts and counties to standard codes. Look up regions by code or name, build cascading address selectors, and seed region tables. Handy for registration forms,...

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • China-market address capture: powers province → city → district cascading selectors, so checkout, KYC, onboarding, and merchant-registration forms can collect a standardized region rather than free text. That is a direct conversion and data-quality decision, not just an engineering convenience.
  • Region as a dimension in analytics: enables consistent rollups of orders, GMV, service coverage, and support tickets by administrative level, and makes "same region" comparisons possible across systems that would otherwise store incompatible free-text addresses.
  • Territory and coverage planning: assigning sales reps, distributors, delivery zones, or service partners to province/city/county units, and answering coverage-gap questions ("which county-level markets have no partner?").
  • Compliance and reporting: Chinese regulatory and tax reporting often keys off administrative division codes; a code-based model is cleaner than name matching when filing or reconciling.
  • Build vs buy: the standard itself is public and the code is thin. The real product question is who owns the data refresh, not whether to write a lookup class. This package is a shortcut to a working prototype and a reasonable starting schema; it is not a substitute for a data-currency process.
  • Roadmap signal: a high opportunity score with zero dependents and a last release in April 2020 describes a maintained-data gap, not a code gap. If China region data is on the roadmap, the strategic bet is a small internal dataset pipeline, with this package as the seed and reference implementation.

When to Consider This Package

Consider it when:

  • You are building a China-facing product and need a hierarchical province/city/district model with standard codes rather than inventing one.
  • You need a fast prototype or an internal tool — admin panels, internal reporting, a first-pass address form — where a 2020-vintage baseline is acceptable.
  • Your architecture is PHP/Laravel and you want the schema and lookup ergonomics to come pre-shaped, so engineering can focus on the form and validation logic.
  • You intend to fork and vendor the dataset anyway, and want a head start on structure and naming conventions.

Look elsewhere, or plan to replace, when:

  • Data currency is product-critical. Administrative divisions change regularly; a dataset frozen in 2020 will be missing reorganizations and will mis-map newer districts. If addresses drive shipping, tax, or regulatory filing, treat the bundled data as unusable without an internal refresh.
  • You need geocoding, coordinates, boundaries, or street-level address parsing — this is a code table, not a geo or address-parsing service. Use a mapping provider or a dedicated address parser.
  • You need multi-country coverage — this is China-only by definition.
  • You need maintenance guarantees: zero dependents and no release in years is a clear signal to expect no upstream fixes. That is fine for a frozen code table, fatal for anything you expect to be updated.
  • You need historical/effective-dated codes (what a code meant in a prior year). That requires your own versioned dataset; this package does not model time.

Adoption criteria, in short: adopt the structure, own the data, and be explicit that the dependency is disposable.

How to Pitch It (Stakeholders)

For executives: This is a free, small PHP library that supplies the official Chinese administrative region codes — the province/city/district hierarchy used in address forms and regional reporting. It lets us ship a China-market address flow in days instead of weeks, and it gives us a shared region vocabulary across checkout, CRM, and analytics. The cost is near zero; the risk is not technical but operational — the bundled data has not been updated since 2020, and Chinese districts do change. So the recommendation is to adopt it as the starting structure and fund a lightweight internal process to keep the region list current. That turns a free package into a durable asset, and it is a small, bounded effort compared to building the model from scratch.

For engineering: Use it for the schema, code lookups, and Laravel integration ergonomics; do not treat the shipped dataset as authoritative. Fork or vendor the data, add a versioned refresh path with a reviewed source, and isolate the package behind our own region service interface so it can be swapped without touching product code. Assume no upstream support — zero dependents and no release since April 2020 means we are the maintainers in practice. Keep the dependency behind an adapter, log the dataset version with any stored address, and add a test that fails loudly if a referenced code is absent after a refresh.

One-line version: cheap to adopt, cheap to outgrow — take the structure, own the data, and don't let a stale dependency quietly become the source of truth for where our customers are.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource