PHPackages                             servicein/leadclient - 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. servicein/leadclient

ActiveLibrary[API Development](/categories/api)

servicein/leadclient
====================

Client PHP to send Lead at Servicein/CloudCare

1.0.2(9y ago)076MITPHPPHP &gt;=5.5

Since Jan 13Pushed 7y ago4 watchersCompare

[ Source](https://github.com/servicein/leadclient)[ Packagist](https://packagist.org/packages/servicein/leadclient)[ RSS](/packages/servicein-leadclient/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Lead Client
===========

[](#lead-client)

Lead Client is a PHP client that makes it easy to send Lead at Servicein/Cloudcare.

This library require an additional info for work, you must define three constants:

- API\_URL
- API\_KEY
- DEFAULT\_CAMPAIGN

The constant value should be asked to the commercial department.

```
define("API_URL", "**asked to the commercial department**");
define("API_KEY", "**asked to the commercial department**");
define("DEFAULT_CAMPAIGN", "**asked to the commercial department**");
//define("PROXY", "tpc://xxx.xxx.xxx.xxx:3128");
$lead = new Lead();
$lead->setFirstname("Tester")
        ->setLastname("Tester")
        ->setMail("tester@test.com")
        ->setPhone("33333333333")
        ->setCity("Roma")
        ->setProvince("RM")
        ->setSex("M")
        ->setNote("Nota");
        # set other campaign
        ->setCampaign("OTHER_CAMPAIGN")
try{
    $leadClient = new Client($lead);
    $result = $leadClient->sendLead();
    if($result->isValid()){
        echo "Lead successfully loaded".PHP_EOL;
    }else{
        echo "Error: ".$result->message.PHP_EOL;
    }
} catch (Exception $ex) {
    echo $ex->getMessage().PHP_EOL;
}
```

Installing Lead Client
----------------------

[](#installing-lead-client)

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

```
# Install Composer
curl -sS https://getcomposer.org/installer | php
```

Next, run the Composer command to install the latest stable version of Client:

```
php composer.phar require servicein/leadclient
```

After installing, you need to require Composer's autoloader:

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

You can then later update Client using composer:

```
composer.phar update
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~1 days

Total

3

Last Release

3454d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7521590?v=4)[servicein](/maintainers/servicein)[@servicein](https://github.com/servicein)

---

Top Contributors

[![tspicchio](https://avatars.githubusercontent.com/u/7838387?v=4)](https://github.com/tspicchio "tspicchio (6 commits)")[![CorradoRonci](https://avatars.githubusercontent.com/u/7524462?v=4)](https://github.com/CorradoRonci "CorradoRonci (4 commits)")[![servicein](https://avatars.githubusercontent.com/u/7521590?v=4)](https://github.com/servicein "servicein (2 commits)")

### Embed Badge

![Health badge](/badges/servicein-leadclient/health.svg)

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M966](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1943.1k5](/packages/aimeos-prisma)

PHPackages © 2026

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