PHPackages                             borja/trovimap-php-client - 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. [API Development](/categories/api)
4. /
5. borja/trovimap-php-client

ActiveLibrary[API Development](/categories/api)

borja/trovimap-php-client
=========================

Simple client to interact with trovimap evaluation API

v0.5(6y ago)177[7 PRs](https://github.com/BRafols/trovimap-php-client/pulls)GPL-3.0+PHP

Since Oct 29Pushed 3y agoCompare

[ Source](https://github.com/BRafols/trovimap-php-client)[ Packagist](https://packagist.org/packages/borja/trovimap-php-client)[ RSS](/packages/borja-trovimap-php-client/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (13)Used By (0)

Trovimap PHP client
===================

[](#trovimap-php-client)

Simple client to interact with trovimap evaluation API

SETUP
-----

[](#setup)

```
use Trovimap\Propertista\TrovimapPhpClient\TrovimapFactory;
$client = TrovimapFactory::create();

```

1 Getting the cadastral unit
----------------------------

[](#1-getting-the-cadastral-unit)

#### 1.1 By Address

[](#11-by-address)

##### 1.1.1 Retrieve all parcels using an adress

[](#111-retrieve-all-parcels-using-an-adress)

```
$address = 'Passatge Escudellers, 7, 08002, Barcelona';
$parcels = $client->getParcelByAddress($address);

```

##### 1.1.2 get the list of the building units of a parcel, with all their apartments

[](#112-get-the-list-of-the-building-units-of-a-parcel-with-all-their-apartments)

```
$buildingUnits = $client->getBuildingUnitByParcelId($parcel->Id);

```

#### 1.2 get the list of the building units of the parcel that contains the apartments with the cadastral reference passed

[](#12-get-the-list-of-the-building-units-of-the-parcel-that-contains-the-apartments-with-the-cadastral-reference-passed)

```
$cadastralReference = '1213625DF3811C0009ZX';

$buildingUnits = $client->getBuildingUnitByCadastralReference($cadastralReference);

```

---

Now out of the buildingUnits retrieved above, we should be able to retrieve data of one `Apartment` from it's `ID`

#### 2.- Evaluate get the trovivalue of the property

[](#2--evaluate-get-the-trovivalue-of-the-property)

#### 3.- Evaluate get the trovivalue of the property with comparables

[](#3--evaluate-get-the-trovivalue-of-the-property-with-comparables)

```
use Trovimap\Propertista\TrovimapPhpClient\Models\Request\EvaluationRequest;

$apartmentId = 'asdfasdfasdfasdf';
$request = new EvaluationRequest([
    'ApartmentId' => '8_900_1213625DF3811C_001_10',
    'ParcelId' => '8_900_1213625DF3811C_0001',
    'LivingArea' => 165,
]);
$data = $client->evaluate($apartmentId, $request);

```

#### 4.- Generate the pdf report of a previous evaluation and download it.

[](#4--generate-the-pdf-report-of-a-previous-evaluation-and-download-it)

```
$client->download('buildingUnitId', '/path/to/download/folder');

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~10 days

Total

5

Last Release

2344d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b01dab7220587ad368502bc03dd058766a20caedd086dfaebb0b66a66e1b80f2?d=identicon)[BorjaRafols](/maintainers/BorjaRafols)

---

Top Contributors

[![BRafols](https://avatars.githubusercontent.com/u/47739335?v=4)](https://github.com/BRafols "BRafols (7 commits)")

### Embed Badge

![Health badge](/badges/borja-trovimap-php-client/health.svg)

```
[![Health](https://phpackages.com/badges/borja-trovimap-php-client/health.svg)](https://phpackages.com/packages/borja-trovimap-php-client)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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