PHPackages                             antistatique/pricehubble-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. antistatique/pricehubble-php-sdk

ActiveLibrary

antistatique/pricehubble-php-sdk
================================

Super-simple, minimum abstraction Pricehubble API v1.x wrapper, in PHP

1.1.0(2mo ago)01.1k[1 PRs](https://github.com/antistatique/pricehubble-php-sdk/pulls)MITPHPPHP &gt;=8.3CI passing

Since Sep 24Pushed 2mo ago7 watchersCompare

[ Source](https://github.com/antistatique/pricehubble-php-sdk)[ Packagist](https://packagist.org/packages/antistatique/pricehubble-php-sdk)[ Docs](https://github.com/antistatique/pricehubble-php-sdk)[ RSS](/packages/antistatique-pricehubble-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (8)Versions (9)Used By (0)

Pricehubble PHP SDK
===================

[](#pricehubble-php-sdk)

Super-simple, minimum abstraction Pricehubble API v1.x wrapper, in PHP.

I hate complex wrappers. This lets you get from the Pricehubble API docs to the code as directly as possible.

[![Build](https://github.com/antistatique/pricehubble-php-sdk/actions/workflows/tests.yml/badge.svg)](https://github.com/antistatique/pricehubble-php-sdk/actions/workflows/tests.yml)[![Coverage Status](https://camo.githubusercontent.com/79cfbf1120845f36a24ed32c6edeb099fd64f8bd8fac3b2a26693d149d0d2b22/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f616e746973746174697175652f7072696365687562626c652d7068702d73646b2f62616467652e737667)](https://coveralls.io/github/antistatique/pricehubble-php-sdk)[![Packagist](https://camo.githubusercontent.com/48f07d68eea6aca9405fe9edf996eb4a27d6ace00a0b9090d1cceda047ea8604/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e746973746174697175652f7072696365687562626c652d7068702d73646b2e7376673f6d61784167653d32353932303030)](https://packagist.org/packages/antistatique/pricehubble-php-sdk)[![License](https://camo.githubusercontent.com/d5e1a111eef95dd6a4ed9e7c7e48a48659b2db4bfadf96c2497dce32a7c8c6ff/68747470733a2f2f706f7365722e707567782e6f72672f616e746973746174697175652f7072696365687562626c652d7068702d73646b2f6c6963656e7365)](https://packagist.org/packages/antistatique/pricehubble-php-sdk)[![PHP Versions Supported](https://camo.githubusercontent.com/9c50dc780fa576f5c39b4feff00c05345c1471be0808881a09e750b91220dc54/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e332d3838393242462e737667)](https://packagist.org/packages/antistatique/pricehubble-php-sdk)

Getting started
---------------

[](#getting-started)

You can install `pricehubble-php-sdk` using Composer:

```
composer require antistatique/pricehubble-php-sdk

```

Examples
--------

[](#examples)

See the `examples/` directory for examples of the key client features. You can view them in your browser by running the php built-in web server.

```
php -S localhost:8000 -t examples/
```

And then browsing to the host and port you specified (in the above example, `http://localhost:8000`).

### Basic Example

[](#basic-example)

Start by `use`-ing the class and creating an instance with your API key

```
use \Antistatique\Pricehubble\Pricehubble;
```

Every request should contain a valid access token. use the `Pricehubble::authenticate` method prior any requests. All operational requests require an authentication to be present and unexpired.

### Valuation

[](#valuation)

Performs valuations for the specified real estate properties on the specified valuation dates. The endpoint can be used to do a valuation of a single property, to create time series or to perform bulk valuations.

The number of valuations per call may not exceed 50, i.e. you can perform valuations for 1 property on 50 dates or for 50 properties on 1 date, but not for 50 properties on 50 dates.

👉

```
$pricehubble = new Pricehubble();
$pricehubble->authenticate($username, $password)
$response = $pricehubble->valuation()->full([
    'dealType' => 'sale',
    'valuationInputs' => [
        [
            'property' => [
                'location' => [
                    'address' => [
                        'postCode' => '8037',
                        'city' => 'Zürich',
                        'street' => 'Nordstrasse',
                        'houseNumber' => '391'
                    ],
                ],
                'buildingYear' => 1850,
                'livingArea' => 800,
                'propertyType' => [
                    'code' => 'apartment'
                ],
            ],
        ],
    ],
    'countryCode' => 'CH',
]);
print_r($response);
```

### Valuation Light

[](#valuation-light)

Performs a simple valuation of the specified property.

If you would like to perform valuations for multiple properties (in a single call), create time series, or achieve better valuations by taking more parameters into account, consider using the full-fledged Valuation endpoint.

👉 [https://docs.pricehubble.com/international/valuation\_light/](https://docs.pricehubble.com/international/valuation_light/)

```
$pricehubble = new Pricehubble();
$pricehubble->authenticate($username, $password)
$response = $pricehubble->valuation()->light([
    'dealType' => 'sale',
    'property' => [
        'location' => [
            'address' => [
                'postCode' => '8037',
                'city' => 'Zürich',
                'street' => 'Nordstrasse',
                'houseNumber' => '391'
            ],
        ],
        'buildingYear' => 1850,
        'livingArea' => 800,
        'propertyType' => [
            'code' => 'apartment'
        ],
    ],
    'countryCode' => 'CH',
]);
print_r($response);
```

### Points of Interest

[](#points-of-interest)

Returns point of interests such as schools, shops, etc. that match the specified search criteria.

👉

```
$pricehubble = new Pricehubble();
$pricehubble->authenticate($username, $password)
$response = $pricehubble->pointsOfInterest()->gather([
    'coordinates' => [
        'latitude' => 47.3968601,
        'longitude' => 8.5153549,
    ],
    'radius' => 1000,
    'category' => [
        'education',
        'leisure',
    ],
    'subcategory' => [
        'kindergarten',
        'playground',
    ],
    'offset' => 0,
    'limit' => 10,
    'countryCode' => 'CH',
]);
print_r($response);
```

Troubleshooting
---------------

[](#troubleshooting)

To get the last error returned by either the HTTP client or by the API, use `getLastError()`:

```
echo $pricehubble->getLastError();
```

For further debugging, you can inspect the headers and body of the response:

```
print_r($pricehubble->getLastResponse());
```

If you suspect you're sending data in the wrong format, you can look at what was sent to Pricehubble by the wrapper:

```
print_r($pricehubble->getLastRequest());
```

If your server's CA root certificates are not up to date you may find that SSL verification fails and you don't get a response. The correction solution for this [is not to disable SSL verification](http://snippets.webaware.com.au/howto/stop-turning-off-curlopt_ssl_verifypeer-and-fix-your-php-config/). The solution is to update your certificates. If you can't do that, there's an option at the top of the class file. Please don't just switch it off without at least attempting to update your certs -- that's lazy and dangerous. You're not a lazy, dangerous developer are you?

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance85

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 97.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~276 days

Recently: every ~338 days

Total

6

Last Release

78d ago

PHP version history (3 changes)1.0.0PHP &gt;=7.4

1.0.3PHP &gt;=8.0

1.1.0PHP &gt;=8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/96db85b7eb9ffa4a58bc5e2c673818ca7823524d40e1dd383c071b5c2d9a3884?d=identicon)[WengerK](/maintainers/WengerK)

![](https://www.gravatar.com/avatar/41e19d9a50bbea2e69af1459ffdaa1d732de38b56f83cf7f0a85276287faa2bc?d=identicon)[gido](/maintainers/gido)

---

Top Contributors

[![WengerK](https://avatars.githubusercontent.com/u/1841592?v=4)](https://github.com/WengerK "WengerK (90 commits)")[![Gurakh](https://avatars.githubusercontent.com/u/6770704?v=4)](https://github.com/Gurakh "Gurakh (1 commits)")[![RSickenberg](https://avatars.githubusercontent.com/u/16922548?v=4)](https://github.com/RSickenberg "RSickenberg (1 commits)")

---

Tags

phppricehubblepricehubble-apisdk

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/antistatique-pricehubble-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/antistatique-pricehubble-php-sdk/health.svg)](https://phpackages.com/packages/antistatique-pricehubble-php-sdk)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
