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
Postcodenl Api Bundle

Postcodenl Api Bundle Laravel Package

keesschepers/postcodenl-api-bundle

A Symfony bundle that integrates the Postcode.nl API for looking up Dutch addresses and postcodes. It provides service configuration and a simple client wrapper so you can validate postcodes and retrieve street, city and coordinates within your Symfony application.

View on GitHub
Deep Wiki
Context7

A bundle which integrates http://api.postcode.nl into a Symfony application.

Frequently asked questions about Postcodenl Api Bundle
Can I install keesschepers/postcodenl-api-bundle in a Laravel application?
No. This is a Symfony bundle built on Symfony's kernel registration, dependency injection container, services.xml definitions and configuration tree, none of which Laravel understands. Laravel's container, package auto-discovery via extra.laravel and service provider contract are different in every meaningful way. Wiring it in would require a compatibility shim that costs far more than the handful of lines of lookup logic the package actually contains. Build a small first-party adapter instead.
What does this package actually do?
It is a thin wrapper around the Postcode.nl REST endpoints: one HTTP request, response mapping and exception handling, plus the Symfony plumbing needed to register it as a service. The genuine logic is a few dozen lines. The rest is configuration and container wiring you would have to discard in a Laravel app. Its real value to a Laravel team is as documentation of the Postcode.nl request and response contract.
Is keesschepers/postcodenl-api-bundle actively maintained?
Effectively no. The package has a single star, zero dependents and a very low composite score, and it carries old Symfony and Guzzle constraints with a PHP floor below what modern applications run. An unmaintained wrapper around a paid, credentialed third-party API is a compounding risk because the upstream contract can change without anyone watching. Expect supply-chain review to block it outright.
How do I perform a Dutch postcode lookup in Laravel without this bundle?
Define a small interface such as PostcodeLookup with methods like lookup(postcode, houseNumber, addition) returning an Address value object, and a validate call. Implement it with Laravel's HTTP client using Http::withBasicAuth(config('services.postcode_nl.key'), config('services.postcode_nl.secret')), then bind the interface to the implementation in a service provider. Configure credentials in config/services.php and .env. Expect roughly one to three developer days including tests, and you own every line, including the custom validation rule you attach to it.
Which PHP, Symfony and Guzzle versions does the bundle require, and will they conflict with Laravel?
The bundle declares its own Symfony DI and Guzzle constraints plus a PHP version floor, and those are the most likely failure points against a current Laravel skeleton. Laravel's HTTP client historically pinned a specific Guzzle major version, so expect collisions. Before attempting any partial reuse, verify the Guzzle major version, the PHP requirement and the Symfony DI constraint, and be prepared for all three to conflict.
Is the Postcode.nl API free, and what are its rate limits and pricing?
Postcode.nl is a paid, credentialed third-party service; the package itself documents none of the commercial terms. You need to confirm volume allowances, per-lookup pricing, rate limits and SLA directly with the vendor. Also confirm whether your use case is checkout autofill or batch enrichment, since those have very different cost and latency profiles.
How do I test postcode lookups without calling the paid Postcode.nl API?
If you own the adapter, bind a fake implementation of your PostcodeLookup interface in the test container and return fixture Address objects. For tests that exercise the gateway itself, use Http::fake() to assert the request URL, basic auth header and payload, and to return a canned success or error response. That gives you deterministic tests without burning paid lookups or depending on a third party in CI.
Is a Dutch postcode plus house number personal data under GDPR?
Yes. In the Netherlands a postcode combined with a house number resolves to a specific address and is treated as personal data. Decide where lookup results are stored, for how long, on what lawful basis, and whether you need a processor agreement with the vendor. If you cache results, define a retention policy and document it.
What are the alternatives to this bundle for Dutch address validation in Laravel?
Use Postcode.nl's own maintained client or SDK if one exists, write a first-party Laravel adapter behind an interface, or call the REST API directly from a service class. For pure validation, also evaluate national or internal datasets that remove the per-call vendor dependency. None of these options consume this Symfony bundle at runtime.
Can I reuse the request logic from the bundle in my own Laravel code?
Possibly, but check the license first and treat the code as a specification rather than a dependency. The valuable parts are the endpoint shape, authentication scheme, request parameters, response fields and error codes. Verify against the live Postcode.nl documentation before trusting any example, because an older bundle may predate the current credential model and endpoint structure.
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.
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
frankyso/ipaymu
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core