PHPackages                             rewake/sendlane - 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. rewake/sendlane

ActiveLibrary[API Development](/categories/api)

rewake/sendlane
===============

Sendlane API SDK for PHP

v1.0.1(7y ago)0437proprietaryPHP

Since Jun 13Pushed 7y agoCompare

[ Source](https://github.com/rewake/sendlane)[ Packagist](https://packagist.org/packages/rewake/sendlane)[ Docs](http://github.com)[ RSS](/packages/rewake-sendlane/feed)WikiDiscussions master Synced yesterday

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

Sendlane PHP SDK
================

[](#sendlane-php-sdk)

This is a quick SDK for the Sendlane API ([www.sendlane.com](http://www.sendlane.com)). Method names match the API endpoints to help keep things consistent and hopefully a bit easier to integrate with Sendlane.

Some Notes:

- This library throws exceptions, which should be handled by your application
- You can use this library as an instantiated object or statically
- Please see Sendlane's API documentation for more information on how their API works:
- I have a few instantiation tests in place, but will likely not have time to get around to writing more anytime soon

Examples
========

[](#examples)

Instantiation
-------------

[](#instantiation)

**Basic Instantiation**

```
try {

    // Create Sendlane object
    $sendlane = new Sendlane('subdomain', 'key', 'hash');

} catch (\Exception $e) {

    // Echo error message
    echo $e->getMessage();
}

```

**Configuration After Instantiation**

Allows the possibility of switching accounts without destroying and re-creating the Sendlane class (untested). The `configure()` method is also chain-able.

```
try {

    // Create Sendlane object
    $sendlane = new Sendlane();

    // Configure
    $sendlane->configure('subdomain', 'key', 'hash');

} catch (\Exception $e) {

    // Echo error message
    echo $e->getMessage();
}

```

Add subscriber to a list
------------------------

[](#add-subscriber-to-a-list)

**Object oriented call**

```
try {

    // Create Sendlane object
    $sendlane = new Sendlane('subdomain', 'key', 'hash');

    // Add subscriber to a list
    $result = $sendlane->list_subscriber_add([
        'email' => 'test@test.com',
        'list_id' => 1
    ]);

} catch (\Exception $e) {

    // Echo error message
    echo $e->getMessage();
}

```

**Static call**

```
try {

    // Make static API call
    SendlaneClient::api(
        'subdomain',
        'list-subscriber-add',
        [
            'key' => 'your-api-key',
            'hash' => 'your-api-hash',
            'email' => 'user@domain.com',
            'list_id' => 1
        ]
    );

} catch (\Exception $e) {

    // Echo error message
    echo $e->getMessage();
}

```

Get user details
----------------

[](#get-user-details)

Note that this method has required arguments. For endpoints where all properties are required, the properties are enforced as method arguments to help prevent missing data. Please refer to API documentation to see what properties can be sent to which endpoint.

```
try {

    // Create Sendlane object
    $sendlane = new Sendlane('subdomain', 'key', 'hash');

    // Add subscriber to a list
    $result = $sendlane->user_details('test@test.com', 'password');

} catch (\Exception $e) {

    // Echo error message
    echo $e->getMessage();
}

```

General API information
-----------------------

[](#general-api-information)

**Example API call (POST method for all calls)**

[https://SUBDOMAIN.sendlane.com/api/v1/METHOD?api=APIKEY&amp;hash=HASHKEY](https://SUBDOMAIN.sendlane.com/api/v1/METHOD?api=APIKEY&hash=HASHKEY)

**List of API Calls (POST method for all calls)**

```
/api/v1/user-details
/api/v1/list-subscribers-add
/api/v1/list-subscriber-add
/api/v1/subscribers-delete
/api/v1/unsubscribe
/api/v1/list-create
/api/v1/list-update
/api/v1/list-delete
/api/v1/lists
/api/v1/opt-in-form
/api/v1/opt-in-create
/api/v1/subscriber-export
/api/v1/tags
/api/v1/tag-create
/api/v1/tag-subscriber-add
/api/v1/tag-subscriber-remove
/api/v1/subscriber-exists

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~3 days

Total

2

Last Release

2619d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c15eb3aaf9f56916dc41382bf2d3400426631a95990fb6456eede9ec7cd7f1c?d=identicon)[rewake](/maintainers/rewake)

---

Top Contributors

[![rkomatz-envisia](https://avatars.githubusercontent.com/u/20566030?v=4)](https://github.com/rkomatz-envisia "rkomatz-envisia (4 commits)")[![rewake](https://avatars.githubusercontent.com/u/5678582?v=4)](https://github.com/rewake "rewake (1 commits)")

---

Tags

sendlane

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rewake-sendlane/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.5M7](/packages/exsyst-swagger)[lucasdotvin/laravel-soulbscription

A straightforward interface to handle subscriptions and features consumption.

709209.3k](/packages/lucasdotvin-laravel-soulbscription)[pimax/fb-messenger-php

Facebook Messenger Bot PHP API

313188.5k2](/packages/pimax-fb-messenger-php)

PHPackages © 2026

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