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
Province City Area

Province City Area Laravel Package

aoxiang/province-city-area

Laravel package for Chinese province, city, and area data. It supplies ready-to-use administrative divisions and helpers for cascading address selectors, making it easy to add province-city-area pickers to forms without manually maintaining region lists. Ideal for checkout, user profiles, and other...

View on GitHub
Deep Wiki
Context7

全国「省市区县乡镇街道」数据,来源于【京东】,【内置爬虫】,可自行获取最新数据)

Frequently asked questions about Province City Area
How do I install the aoxiang/province-city-area package in Laravel?
Install it with Composer using composer require aoxiang/province-city-area, then follow the package's documented publish or install steps for migrations, config, and seed data. Run the install in a disposable environment first so you can inspect the schema and confirm the seed process works with your Laravel version.
Which Laravel and PHP versions does this province-city-area package support?
The exact Laravel and PHP constraints should be checked in the package's composer.json before installing, because the evaluation flags compatibility as a key proof-of-concept item. The last release was in May 2023, so test against your target Laravel and PHP versions instead of assuming current support.
What region levels are included: province, city, area, county, town, and street?
The package description covers province, city, area/county, and township/street levels, written as sheng shi qu xian xiang zhen jie dao. Confirm the actual table depth and row counts after seeding, because the short blurb emphasizes province-city-area while the overview mentions the deeper administrative levels.
Does the package include official Chinese administrative codes or just region names?
The evaluation flags code consistency and whether official administrative codes are included as an open question. Inspect the schema and sample rows after installation, and do not assume official GB/T codes or stable IDs until you have verified them against an authoritative source.
How do I get the latest Chinese province, city, and area data with this package?
The package overview says it ships with a built-in crawler and sources data from JD.com so you can fetch newer region data. Treat that crawler as a governed refresh tool: validate its output, compare samples against an authoritative source, and document how you will run and review updates.
Can I use this package for cascading address dropdowns in a Laravel checkout form?
Yes, that is its main use case: it supplies reference data for cascading province-city-area selectors in forms such as checkout, user profiles, and delivery address entry. Wrap data access in your own repository or adapter so the package's models and table names do not leak into UI or domain code.
What database tables and migrations does this package create, and are they reversible?
The package likely publishes migrations and seeders, but the evaluation recommends a proof-of-concept to audit schema creation, migration reversibility, and table-name collisions. Run the install and rollback in a disposable database and check whether migrations are idempotent before using it in production.
Is the JD.com sourced region data safe and licensed for production use?
The code is MIT licensed, but the evaluation warns that the license may not cover the underlying JD.com-sourced data rights. Confirm data provenance and licensing with your legal or security team before production use, and keep license notices if you fork the dataset.
How large is the dataset and how long does seeding take?
Row counts and seed duration are not documented in the provided context and are flagged as proof-of-concept checks. Seed a disposable MySQL or PostgreSQL database, measure runtime and memory usage, and verify index coverage before committing to the package.
What are the alternatives if this package becomes stale or abandoned?
Given the May 2023 last release, zero dependents, and a single-maintainer profile, plan for staleness and abandonment. Keep the package behind an internal RegionRepository, pin the Composer version, and be ready to fork the data into first-party migrations and seeders. Alternatives include maintaining your own region tables or using another actively maintained China region dataset validated against an authoritative source.
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.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource