PHPackages                             lukaszlesniewski/expertsender - 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. lukaszlesniewski/expertsender

ActiveLibrary[API Development](/categories/api)

lukaszlesniewski/expertsender
=============================

Simple API for ExpertSender service

0125PHP

Since Dec 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/lukaszlesniewski/expertsender)[ Packagist](https://packagist.org/packages/lukaszlesniewski/expertsender)[ RSS](/packages/lukaszlesniewski-expertsender/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

expertsender
============

[](#expertsender)

Simple ExpertSender Service API (ECDP) for Laravel

#### Installation

[](#installation)

1. Require package: `composer require lukaszlesniewski/expertsender`
2. Add following package service provider in config/app.php file: `Lukaszlesniewski\ExpertSender\Providers\ExpertSenderProvider::class`
3. Publish package config: `php artisan vendor:publish --provider="Lukaszlesniewski\ExpertSender\Providers\ExpertSenderProvider"`

#### Usage examples

[](#usage-examples)

##### Add new subscriber

[](#add-new-subscriber)

```
$es = new Customers(YOUR_API_KEY);
$es->setEmail($email);
$es->setConsentsData(1, 'True');
$es->setConsentsData(2, 'True');
$result = $es->add(ExpertSenderEnum::MODE_ADD);

if ($result->ifSuccess()) { ... }

```

##### Get information about the subscriber by e-mail

[](#get-information-about-the-subscriber-by-e-mail)

```
$es = new Customers(YOUR_API_KEY);
$result = $es->getByEmail($customerEmail);

```

##### Get information about the subscriber by customer ID

[](#get-information-about-the-subscriber-by-customer-id)

```
$es = new Customers(YOUR_API_KEY);
$result = $es->getById($customerId);

```

#### Results object

[](#results-object)

You can use the following methods to read result of the request

1. `ifSuccess()` – returns true if http\_code for request is less than 299
2. `getCode()` – returns http code for request
3. `getInfo($option)` – returns the information defined in $option variable; if $option is null, it returns the array containing all information
4. `getResponse()` – returns array containing the result
5. `getMessage() `– returns the message based on the http code

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

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

---

Top Contributors

[![lukaszlesniewski](https://avatars.githubusercontent.com/u/58590279?v=4)](https://github.com/lukaszlesniewski "lukaszlesniewski (6 commits)")[![u27pl](https://avatars.githubusercontent.com/u/129777390?v=4)](https://github.com/u27pl "u27pl (4 commits)")

### Embed Badge

![Health badge](/badges/lukaszlesniewski-expertsender/health.svg)

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

###  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.1M452](/packages/google-gax)

PHPackages © 2026

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