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

China Distpicker Laravel Package

laravel-admin-ext/china-distpicker

Laravel Admin extension that adds a cascading China province, city, and district picker to forms. It provides an easy-to-use regional selector for Chinese addresses, with built-in province, city, and district data and seamless integration into laravel-admin.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit. laravel-admin-ext/china-distpicker is not a general-purpose Laravel package — it is a form-field extension for Encore's laravel-admin admin panel. It registers a distpicker field on the Form builder that renders a three-level cascading province → city → district selector, backed by a bundled static JS dataset. It introduces no service provider of consequence, no database schema, no API, and no server-side domain model. That makes it a UI concern only: it governs how an operator enters an address, not how the address is stored, validated, or used.

Integration feasibility. Binary and stack-dependent:

Incumbent admin stack Feasibility
laravel-admin 1.8+, Laravel 5.5–9, PHP 7.4–8.1 High — composer require plus one $form->distpicker([...]) line
laravel-admin via community Laravel 10/11 fork Medium — needs verification against the fork
Filament / Nova / Livewire / Inertia / custom SPA Low — PHP wrapper is inert; only the JS dataset is reusable

Technical risk. Ranked:

  1. Dataset staleness (high). China's administrative divisions (统计用区划代码) are revised annually; county-level city → district conversions and new districts have been frequent since 2020. A 2021-10 release almost certainly predates several current divisions. Stale options mean operators pick wrong codes, which propagates into shipping and tax logic.
  2. Upstream abandonment (high). No release in ~2.5 years, no visible PHP 8.2/8.3 CI, no CVE cadence. Because laravel-admin itself is in maintenance mode, this package sits on a decaying dependency chain — the highest-severity failure is being blocked from a Laravel upgrade by your admin panel.
  3. Client-side-only enforcement (medium). The widget constrains input in the browser; nothing stops an invalid province/city/district combination from being POSTed or written by an API client. Server-side validation must be added by us.
  4. Asset delivery posture (medium). If the JS is CDN-loaded rather than published to the app origin, that collides with CSP, offline admin environments, and data-residency review for China-hosted deployments.

Key questions for the maintainer (or our own fork):

  • Which year of the national division codes does the bundled dataset reflect, and is there a regeneration script against an official source?
  • Are assets vendored/published, or fetched at runtime?
  • Is there a shipped Laravel validation rule for the three-column combination?
  • Does it support fourth-level (street/township) or urban-rural classification, which logistics routing often needs?
  • What is the license/provenance of the bundled distpicker JS and the division data (the wrapper is MIT; the data often is not)?
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.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator