PHPackages                             dawnangel/trovit-api - 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. dawnangel/trovit-api

ActiveLibrary[API Development](/categories/api)

dawnangel/trovit-api
====================

A simple PHP implementation of Trovit Affiliates API http://publishers.trovit.com

v1.0.0(11y ago)2201GPL2PHPPHP &gt;=5.3.0

Since Dec 26Pushed 11y ago3 watchersCompare

[ Source](https://github.com/DawnAngel/trovit-api)[ Packagist](https://packagist.org/packages/dawnangel/trovit-api)[ Docs](https://publishers.trovit.com)[ RSS](/packages/dawnangel-trovit-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

trovit-api
==========

[](#trovit-api)

[![Latest Stable Version](https://camo.githubusercontent.com/d8dd90aa7506ae0f571054a2dbe2610b086f9f959f1527aba707504d823797c2/68747470733a2f2f706f7365722e707567782e6f72672f6461776e616e67656c2f74726f7669742d6170692f762f737461626c652e737667)](https://packagist.org/packages/dawnangel/trovit-api) [![Total Downloads](https://camo.githubusercontent.com/409ade6974cb86d9661dd355d6f2ee5bf5b0e9e71c7afe4fc77a00ee099d4c36/68747470733a2f2f706f7365722e707567782e6f72672f6461776e616e67656c2f74726f7669742d6170692f646f776e6c6f6164732e737667)](https://packagist.org/packages/dawnangel/trovit-api) [![License](https://camo.githubusercontent.com/8e50135ff080e46f097060d9cc03aae53b469860f4f2b525a499dadd0dbe0528/68747470733a2f2f706f7365722e707567782e6f72672f6461776e616e67656c2f74726f7669742d6170692f6c6963656e73652e737667)](https://packagist.org/packages/dawnangel/trovit-api)

A simple PHP implementation of Trovit Affiliates API

Tests Status [![Build Status](https://camo.githubusercontent.com/714d6811153057c0bd96361d9b27c6cb2ce154b78d123dd8aa3a2f95b34e3ef5/68747470733a2f2f7472617669732d63692e6f72672f4461776e416e67656c2f74726f7669742d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/DawnAngel/trovit-api)

Configuration
-------------

[](#configuration)

Before using this implementation you need to get a API token from the main Trovit Affiliates website:

First you need to signup as a Trovit Affiliate providing your business details and website.

After their acceptance of your signup, you have to go to the "API Feed" section and provide some information about how you will use this API service for, accept the terms and conditions and in a short time they will provide you with the API token you need.

Usage
-----

[](#usage)

First in your code depending if you are using the composer autoload integration or a direct "require" method you need some lines of code.

- For composer autoload.php:

```
use DawnAngel\TrovitApi\TrovitApi;

require_once '/autoload.php';
```

- For direct require:

```
use DawnAngel\TrovitApi\TrovitApi;

require_once '/TrovitApi.php';
```

You'll need to replace the following "&lt;YOUR-TOKEN-ID&gt;" in the code with your real API token key:

```
/**
 * TrovitApi Token:
 *
 * Get your Token by signing up in the following url with your details
 *
 * https://publishers.trovit.com/
 */
define('TROVIT_API_TOKEN', '');

// Set TrovitApi Token
TrovitApi::setToken(TROVIT_API_TOKEN);
```

Then on the point you want to use the API request code:

```
$apiParams = array(
    // Main params for the request
    'country' => 'es',
    'what'    => 'piso',
    'where'   => '',
    'type'    => '2', /* 1 -> Homes for sale, 2 -> Homes for rent */

    // Filter params for the request
    'region' => 'barcelona',
    'city'   => 'barcelona',

    // Params for API configuration
    'page'     => '1',
    'per_page' => '10',
    'order'    => 'relevance',
);

$ads = TrovitApi::doRequest(TrovitApi::VERTICAL_HOMES, $apiParams);
```

Thanks for using this library, I hope you enjoy it.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.6% 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

Unknown

Total

1

Last Release

4155d ago

### Community

Maintainers

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

---

Top Contributors

[![DawnAngel](https://avatars.githubusercontent.com/u/1183757?v=4)](https://github.com/DawnAngel "DawnAngel (11 commits)")[![juanramon](https://avatars.githubusercontent.com/u/296442?v=4)](https://github.com/juanramon "juanramon (1 commits)")[![repejota](https://avatars.githubusercontent.com/u/36673?v=4)](https://github.com/repejota "repejota (1 commits)")

---

Tags

trovit

### Embed Badge

![Health badge](/badges/dawnangel-trovit-api/health.svg)

```
[![Health](https://phpackages.com/badges/dawnangel-trovit-api/health.svg)](https://phpackages.com/packages/dawnangel-trovit-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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