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

Zipcode Laravel Package

canducci/zipcode

canducci/zipcode is a PHP/Laravel package for Brazilian CEP (zip code) lookups, providing a simple API to fetch address data from supported web services and add postal-code search to your applications. It is lightweight, installs via Composer, and is useful for forms, shipping, and address validatio...

View on GitHub
Deep Wiki
Context7

canducci/zipcode is a PHP package for looking up Brazilian addresses from a CEP (postal code). It queries popular web services such as ViaCEP, Postmon, and RepublicaVirtual, returning structured data like street, neighborhood, city, and state.

It ships with Laravel integration via a service provider and facade, while remaining usable in any PHP project through a simple, consistent API.

  • Multiple CEP providers with a unified interface
  • Laravel ServiceProvider and Facade support
  • Returns structured address objects (street, district, city, state)
  • Simple, framework-agnostic PHP usage
  • Easy to extend with custom lookup services
Frequently asked questions about Zipcode
How do I install canducci/zipcode in a Laravel application?
Install the package through Composer and check the README for any service provider or facade registration steps. Because it is MIT licensed and distributed via Composer, a branch-level spike is inexpensive. Verify the package behavior in your target Laravel version before wiring it into application code. Keep it behind an internal adapter so facades and provider response shapes do not leak into your domain.
Which PHP and Laravel versions does canducci/zipcode support?
The overview does not list exact PHP or Laravel constraints, so verify them in the package composer.json and README. Run a Composer spike and use composer why-not against your target Laravel and PHP matrix. Pin the package version before committing. This matters because the repository has limited adoption and may lag framework upgrades.
Does canducci/zipcode call an external CEP provider, and what are the risks?
The package fetches address data from a CEP or finds a CEP by address, which implies an external postal-code provider or data source. The assessment flags provider availability, latency, rate limits, and response-schema drift as primary risks. Confirm which endpoints it calls and their terms, quotas, and SLAs before production use. Add caching, timeouts, retries, and observability at your adapter boundary.
How should I integrate canducci/zipcode into checkout or onboarding without coupling my domain code?
Wrap it behind an internal PostalCodeLookup or AddressLookup interface and map package responses into your own address value object. Use the package only inside an adapter, not directly through its facade in controllers or domain services. Keep manual address entry as a first-class fallback so lookup failures never block checkout or customer creation. This also makes replacing the package with ViaCEP, Postmon, or another provider low-cost.
Does canducci/zipcode support caching, timeouts, and retries?
The provided overview and assessment do not confirm built-in timeout, retry, or caching support, so treat those as adapter responsibilities. Cache normalized CEP results and avoid per-keystroke provider calls by debouncing autocomplete. Add explicit timeouts, retries, circuit breaking, and logging at your integration boundary. This protects checkout and onboarding from provider latency and outages.
How do I handle invalid Brazilian CEP input with canducci/zipcode?
Normalize input to the standard 8-digit CEP format before calling the package, and handle masking in your UI layer. Define clear behavior for invalid CEPs, including validation messages that guide users to correct the format. Keep manual address entry available when lookup cannot resolve a CEP. Test edge cases such as masked input, empty values, and non-numeric characters.
Is canducci/zipcode actively maintained, and does it have automated tests?
The repository has only about 45 stars and 0 dependents, so ecosystem evidence and maintainer depth are limited. Verify automated test coverage and release activity as part of your proof-of-concept. Pin the package version and track PHP and Laravel end-of-life changes. Keep an internal adapter as the main hedge against abandonment or incompatible upgrades.
Can canducci/zipcode perform bulk CEP lookups or only interactive requests?
The provided context does not confirm bulk lookup support, so do not assume it can handle batch jobs. The assessment lists bulk lookup as an open key question. For bulk needs, test carefully and throttle jobs to respect provider quotas, or implement queued lookups behind your adapter. Cache normalized results to reduce repeated provider calls.
What should I do if the CEP provider behind canducci/zipcode is down or rate-limited?
Treat lookup failure as non-blocking: show a clear message and fall back to manual address entry. Add timeouts, retries, and circuit breaking in your adapter, and cache successful lookups. Monitor error rates and latency so support staff can distinguish provider outages from invalid CEPs. The assessment recommends keeping manual entry as a first-class path so checkout or customer creation is never blocked.
What alternatives to canducci/zipcode should I consider for Brazilian CEP lookup?
You can integrate directly with providers such as ViaCEP or Postmon, or keep an existing provider integration and compare results behind a feature flag. The assessment suggests running the package in parallel with any current integration before replacing it. Because the package is small in scope, an internal adapter makes switching providers inexpensive. Evaluate terms, quotas, response contracts, and test coverage before choosing.
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