PHPackages                             affittocertificato/clientapi - 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. affittocertificato/clientapi

ActiveLibrary[API Development](/categories/api)

affittocertificato/clientapi
============================

Lightweight implementation for services of Affitto Certificato API

1.0.39(5y ago)013GPL-3.0-or-laterPHPPHP &gt;=7.0

Since Aug 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/bradiporitmico/affittocertificato_clientapi)[ Packagist](https://packagist.org/packages/affittocertificato/clientapi)[ Docs](https://github.com/bradiporitmico/affittocertificato_clientapi)[ RSS](/packages/affittocertificato-clientapi/feed)WikiDiscussions master Synced today

READMEChangelog (4)DependenciesVersions (7)Used By (0)

Affitto Certificato Client API Library
======================================

[](#affitto-certificato-client-api-library)

Simple and fast implementation for Affitto Certificato web service API

[![Latest Stable Version](https://camo.githubusercontent.com/3646361ca9ff40d9cc734d4e6976a41cbff32b0f842b5d1600f6166de6a90676/68747470733a2f2f706f7365722e707567782e6f72672f6166666974746f636572746966696361746f2f636c69656e746170692f76)](//packagist.org/packages/affittocertificato/clientapi)[![License](https://camo.githubusercontent.com/883052f729449792fbc79b119b32d23f8275e465a5acfc3e954d2365f7022240/68747470733a2f2f706f7365722e707567782e6f72672f6166666974746f636572746966696361746f2f636c69656e746170692f6c6963656e7365)](https://packagist.org/packages/affittocertificato/clientapi)

Basic example
-------------

[](#basic-example)

```
$client = new \AffittoCertificato\Api\Client();

if (!$client->login('username','password')){
  throw new Exception ("Unable to login");
}

// get ratings using user's email address
if (!$client->userRatingByEmail('test@mail.com')){
  throw new Exception ("Unable to get ratings");
}

// to get api results use method getResponse() which return an object as described later in ## responses section
$result = $client->getResponse();
if (!$result->success){
  throw new Exception ("Request failed");
}

```

Response structure
------------------

[](#response-structure)

API calls always return a structured response, as in the example below:

```
{
    "success": true,
    "requestID": "4e7b02eb-c17e-4046-9449-caca246d5bb8",
    "errorType": null,
    "errorMessage": null,
    "response": {
        "registered": false,
        "referenced": false,
        "probed": false
    }
}
```

- "success" (boolean) means that the call has been succesfully processed, this not means "success" of the operations itself, but only mean "succesfull" of the api call. Anyway if the "success" is true you can be sure that the response is valid and all data you need is there.
- "requestID" is an universal id that identify the request for future logging and debugging operations
- "errorType" is a unique string that identify the type of error. This field is useful, to the client, to discriminate the type of error and adopt the appropriate measures (display an error message, rollback on the database, and so...)
- "errorMessage" is a descriptive text of error (if any)
- "response" is the "real" response produced by API method, and the structure depend on it. In the example above is shown the response for "userRatingByEmail" call. To test and see al the different response structures, you can visit [this page](https://api.affittocertificato-services.cloud/api-doc/index.html) and try the call by yourself

Requirements
------------

[](#requirements)

- PHP &gt;= 7.0

Installation
------------

[](#installation)

The recommended way is to install the lib [through Composer](http://getcomposer.org/).

Simply run `composer require affittocertificato/clientapi` for it to be automatically installed and included in your `composer.json`.

Now you can use the autoloader, and you will have access to the library:

```
require 'vendor/autoload.php';
```

Documentation
-------------

[](#documentation)

A swagger testing page can be found [here](https://api.affittocertificato-services.cloud/api-doc/index.html). You can use this page to test the API calls.

License
-------

[](#license)

This library is released under the GPL-3.0 license

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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 ~109 days

Recently: every ~136 days

Total

6

Last Release

1922d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/519e55b4e3db712c36c60692f8d01ae83c9f6d10e9d09fb754c28792e354713a?d=identicon)[bradiporitmico](/maintainers/bradiporitmico)

---

Top Contributors

[![bradiporitmico](https://avatars.githubusercontent.com/u/9455142?v=4)](https://github.com/bradiporitmico "bradiporitmico (26 commits)")

---

Tags

affittocertificato

### Embed Badge

![Health badge](/badges/affittocertificato-clientapi/health.svg)

```
[![Health](https://phpackages.com/badges/affittocertificato-clientapi/health.svg)](https://phpackages.com/packages/affittocertificato-clientapi)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M270](/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.1M453](/packages/google-gax)

PHPackages © 2026

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