PHPackages                             heterodoks/laravel-sendy - 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. heterodoks/laravel-sendy

ActiveLibrary[API Development](/categories/api)

heterodoks/laravel-sendy
========================

Laravel package for Sendy API integration

v1.0.2(1y ago)0101MITPHPPHP ^8.1

Since Nov 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/heterodoks/laravel-sendy)[ Packagist](https://packagist.org/packages/heterodoks/laravel-sendy)[ RSS](/packages/heterodoks-laravel-sendy/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

Laravel Sendy
=============

[](#laravel-sendy)

A Laravel package for integrating with the Sendy API.

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

[](#requirements)

- PHP 8.1 or higher
- Laravel 10.x|11.x
- Sendy 6.1

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

[](#installation)

You can install the package via composer:

```
composer require heterodoks/laravel-sendy
```

The package will automatically register its service provider.

Configuration
-------------

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --tag="sendy-config"
```

Add these variables to your .env file:

```
SENDY_URL=your-sendy-installation-url
SENDY_API_KEY=your-api-key
SENDY_BRAND_ID=your-brand-id
SENDY_TIMEOUT=10
```

Usage
-----

[](#usage)

### Subscribe a User

[](#subscribe-a-user)

```
use Heterodoks\LaravelSendy\Facades\Sendy;

// Basic subscription
$result = Sendy::subscribe('list_id', 'user@example.com');

// With additional details
$result = Sendy::subscribe(
    'list_id',
    'user@example.com',
    'John Doe',
    ['custom_field' => 'value'],
    true // GDPR consent
);
```

### Unsubscribe a User

[](#unsubscribe-a-user)

```
$result = Sendy::unsubscribe('list_id', 'user@example.com');
```

### Check Subscription Status

[](#check-subscription-status)

```
$status = Sendy::getSubscriptionStatus('list_id', 'user@example.com');
// Returns: "Subscribed", "Unsubscribed", "Unconfirmed", "Bounced", "Soft bounced", or "Complained"
```

### Get Active Subscriber Count

[](#get-active-subscriber-count)

```
$count = Sendy::getActiveSubscriberCount('list_id');
```

### Campaign Management

[](#campaign-management)

#### Create and Send Campaign

[](#create-and-send-campaign)

```
$result = Sendy::createCampaign(
    'John Doe',                  // From Name
    'john@example.com',         // From Email
    'reply@example.com',        // Reply To
    'Campaign Title',           // Title
    'Email Subject',            // Subject
    'Plain text version',       // Plain Text
    'HTML version',      // HTML Text
    'list-id',                  // List ID or array of List IDs
    'brand-id',                 // Optional: Brand ID
    'utm_source=newsletter'     // Optional: Query String
);  ```

#### Create Draft Campaign

```php
$result = Sendy::createDraftCampaign(
    'John Doe',
    'john@example.com',
    'reply@example.com',
    'Campaign Title',
    'Email Subject',
    'Plain text version',
    'HTML version',
    ['list-id-1', 'list-id-2'], // Multiple lists
    'brand-id',
    'utm_source=newsletter'
);  ```

#### Schedule Campaign

```php
$result = Sendy::scheduleCampaign(
    'John Doe',
    'john@example.com',
    'reply@example.com',
    'Campaign Title',
    'Email Subject',
    'Plain text version',
    'HTML version',
    'list-id',
    '2024-12-31 23:59:59',     // Schedule datetime
    'brand-id',
    'utm_source=newsletter'
);  ```

### Subscriber Management

#### Delete Subscriber

```php
$result = Sendy::deleteSubscriber('list_id', 'user@example.com');
```

#### Get Subscriber Count by Status

[](#get-subscriber-count-by-status)

```
// Available statuses: active, unconfirmed, unsubscribed, bounced, complained
$count = Sendy::getSubscriberCountByStatus('list_id', 'active');
```

#### Get Total Active Subscribers

[](#get-total-active-subscribers)

```
// Get total active subscribers for default brand
$total = Sendy::getTotalActiveSubscribers();

// Get total active subscribers for specific brand
$total = Sendy::getTotalActiveSubscribers('brand-id');
```

#### Update Subscriber

[](#update-subscriber)

```
// Basic update
$result = Sendy::updateSubscriber('list_id', 'user@example.com', 'New Name');

// Update with custom fields
$result = Sendy::updateSubscriber(
    'list_id',
    'user@example.com',
    'New Name',
    ['custom_field' => 'new_value']
);
```

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

Total

3

Last Release

548d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/64be3b1e0c59367a936ebacea0593a3aac681598f365a7956219fd49843c64fe?d=identicon)[heterodoks](/maintainers/heterodoks)

---

Top Contributors

[![thomas-pedersen](https://avatars.githubusercontent.com/u/2892484?v=4)](https://github.com/thomas-pedersen "thomas-pedersen (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/heterodoks-laravel-sendy/health.svg)

```
[![Health](https://phpackages.com/badges/heterodoks-laravel-sendy/health.svg)](https://phpackages.com/packages/heterodoks-laravel-sendy)
```

###  Alternatives

[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[dcblogdev/laravel-microsoft-graph

A Laravel Microsoft Graph API (Office365) package

168285.5k1](/packages/dcblogdev-laravel-microsoft-graph)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1344.8k1](/packages/jasara-php-amzn-selling-partner-api)[grantholle/powerschool-api

A Laravel package to make interacting with PowerSchool less painful.

1715.6k1](/packages/grantholle-powerschool-api)

PHPackages © 2026

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