PHPackages                             smarkio/smarkio-revisor-api-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. smarkio/smarkio-revisor-api-client

ActiveLibrary

smarkio/smarkio-revisor-api-client
==================================

Accelerator to communicate with the Smarkio Feedback API

1.1.0(9y ago)112MITPHP

Since Oct 3Pushed 9y ago26 watchersCompare

[ Source](https://github.com/smarkio/smarkio-revisor-api-client)[ Packagist](https://packagist.org/packages/smarkio/smarkio-revisor-api-client)[ Docs](https://github.com/smarkio/smarkio-revisor-api-client)[ RSS](/packages/smarkio-smarkio-revisor-api-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

\#Smarkio Revisor - API
=======================

[](#smarkio-revisor---api)

An accelerator to communicate with © Smarkio Feedback API

Installation and usage with Composer
------------------------------------

[](#installation-and-usage-with-composer)

Add the following to your composer.json file in order to fetch the latest stable version of the project:

```
{
    "require": {
        "smarkio/smarkio-revisor-api-client": "*"
    }
}

```

Then, in order to use the accelerator on your own PHP file, add the following:

```
require '[COMPOSER_VENDOR_PATH]/autoload.php';

```

Contents
--------

[](#contents)

- src/Smarkio/Revisor - Code to interact with the Smarkio Feedback API.
- examples/ - Some examples on how to use this accelerator.

Before you start
----------------

[](#before-you-start)

You need to obtain one API token to use the API. This token enables the API to recognize the Revisor trying to send requests.

Usage
=====

[](#usage)

Send Lead Feedback
------------------

[](#send-lead-feedback)

```
$api_token = 'YOUR API TOKEN HERE';
$lead_id = '123456789';
$status = 'converted';

// create Feedback based on the leadId in LeadOffice
$feedback = Feedback::createWithLeadId($api_token, $lead_id, $status);

// set Lead's optional parameters
$feedback->setInstantAt(date('Y-m-d H:i:s'));
$feedback->setDescription('Additional information about what happened');

// add Lead's optional extra fields
$feedback->addExtraFields(array('field_1'=>'value_1','field_2'=>'value_2'));

// send the Feedback
$response = $feedback->send();

```

Send Lead Feedback without Lead ID
----------------------------------

[](#send-lead-feedback-without-lead-id)

```
$api_token = 'YOUR API TOKEN HERE';
$external_id = '123456789';
$supplier_id = '1';
$status = 'converted';

// create Feedback with mandatory parameters
$feedback = Feedback::createWithSupplierExternalId($api_token, $supplier_id, $external_id, $status);

// send the Feedback
$response = $feedback->send();

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 57.1% 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 ~912 days

Total

2

Last Release

3327d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/78048ae9e61dbef99ac702acb4a6194da75c2c1b6c92fe23eea6ae3a45ec3b20?d=identicon)[developers@smark.io](/maintainers/developers@smark.io)

---

Top Contributors

[![adc-pamaral](https://avatars.githubusercontent.com/u/5681250?v=4)](https://github.com/adc-pamaral "adc-pamaral (4 commits)")[![ruicampos](https://avatars.githubusercontent.com/u/1894978?v=4)](https://github.com/ruicampos "ruicampos (3 commits)")

---

Tags

leadsmarkiorevisor

### Embed Badge

![Health badge](/badges/smarkio-smarkio-revisor-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/smarkio-smarkio-revisor-api-client/health.svg)](https://phpackages.com/packages/smarkio-smarkio-revisor-api-client)
```

PHPackages © 2026

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