housepedia-data-intelligence-laravel maintained by henzeb
Housepedia Data Intelligence for Laravel
Laravel integration for henzeb/housepedia-data-intelligence, the PHP SDK for the Housepedia Data Intelligence API. It adds configuration, a facade, container bindings and Laravel Collections with the metadata of the answer for every endpoint that returns a list.
Table of contents
Installation
You may install the package via Composer:
composer require henzeb/housepedia-data-intelligence-laravel
The core SDK is installed with it, and the service provider and the Housepedia facade
are registered automatically. Add your API key to .env:
HOUSEPEDIA_API_KEY=hp_...
Usage
use Henzeb\Housepedia\Data\Intelligence\Laravel\Facades\Housepedia;
$address = Housepedia::addresses()
->withPostcode('1076LJ', 12, '2')
->find();
$suggestions = Housepedia::addresses()
->suggest('1076LJ 12-2'); // Results<AddressSuggestion>, a Laravel Collection with meta()
$streets = $suggestions->map->street()->filter()->unique();
Documentation
Every endpoint, locator, response object and exception is documented in the core SDK documentation.
AI agents
The package ships Laravel Boost guidelines. Run
php artisan boost:install (or boost:update) after installing it, and your coding agent
knows how to use the Housepedia client.
Changelog
See CHANGELOG.md.
Testing this package
composer test
composer analyse
composer format-check
Security
See SECURITY.md for how to report a vulnerability.
Credits
License
The MIT License (MIT). Please see License File for more information.