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

ActiveLibrary[API Development](/categories/api)

coderflexx/laravel-sendy
========================

Laravel Sendy is a simple and clean wrapper for the Sendy API, making it easy to manage subscribers, lists, and campaigns directly from your Laravel application.

v1.0.0(1y ago)213[3 PRs](https://github.com/coderflexx/laravel-sendy/pulls)MITPHPPHP ^8.3CI passing

Since Apr 24Pushed 1mo ago1 watchersCompare

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

READMEChangelog (1)Dependencies (13)Versions (15)Used By (0)

Laravel Sendy is a simple and clean wrapper for the Sendy API
=============================================================

[](#laravel-sendy-is-a-simple-and-clean-wrapper-for-the-sendy-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8715901874dd8d6e861e149e672d8ef74db3b2cd48ba942ed36b4e25bb71fb06/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f646572666c6578782f6c61726176656c2d73656e64792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/coderflexx/laravel-sendy)[![GitHub Tests Action Status](https://camo.githubusercontent.com/f5b002e96358fc7888c273c2028c2eb1ea3fe8ef5e48d7506a8e4d63216063a6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f636f646572666c6578782f6c61726176656c2d73656e64792f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/coderflexx/laravel-sendy/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/c7a8f124a59f0ee41d2502f519d50625f984928697e6f7dfbc0471015bcdd0ec/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f636f646572666c6578782f6c61726176656c2d73656e64792f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/coderflexx/laravel-sendy/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)

---

Laravel Sendy is a simple and clean wrapper for the Sendy API, making it easy to manage subscribers, lists, and campaigns directly from your Laravel application.

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

[](#installation)

You can install the package via composer:

```
composer require coderflexx/laravel-sendy
```

You can publish the config file with:

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

This is the contents of the published config file:

```
return [
    /*
    |--------------------------------------------------------------------------
    | Sendy Installation URL
    |--------------------------------------------------------------------------
    |
    | This URL is used to connect to your Sendy installation. It should
    | point to the root of your Sendy installation. For example:
    | https://your-sendy-installation.com
    */
    'sendy_installation_url' => env('SENDY_INSTALLATION_URL', 'https://your-sendy-installation.com'),

    /*
    |--------------------------------------------------------------------------
    | Sendy API Key
    |--------------------------------------------------------------------------
    |
    | This key is used to authenticate your application with the Sendy
    | installation. You can find your API key in the Sendy settings.
    | Make sure to keep this key secure and do not share it with anyone.
    | It is recommended to use environment variables to store sensitive
    | information like API keys. You can set the SENDY_API_KEY
    */
    'sendy_api_key' => env('SENDY_API_KEY', 'your-sendy-api-key'),
];
```

API Keys
--------

[](#api-keys)

After Installation, you can grab your `API KEYS` from the sendy app installation, then add them in `.env` file

```
SENDY_INSTALLATION_URL=https://your-app-installation.com/
SENDY_API_KEY=your-api-key
```

Sendy Version
-------------

[](#sendy-version)

This package is compatible with **Sendy v6.1.2** (Latest)

Usage
-----

[](#usage)

In order to use the package, you can use the facade directly, followed by the main method api (e.g. `subscribers()` then the verb (action))

```
use Coderflex\LaravelSendy\Facades\Sendy;

$sendy = Sendy::{$service()}->{$action()}
```

### Async Argument for HTTP Requests

[](#async-argument-for-http-requests)

All HTTP requests support an `async` option, allowing you to **defer execution**. This is useful when a request doesn't need to run immediately or isn't a high priority. You can handle it later using await when you're ready to process the result.

Example:

```
$promise = Sendy::subscribers()->subscribe(
    data: $data,
    async: true // The request is deferred and returns a promise
);

// perform other tasks/operation here

// later, wait for the response when you're ready.
$response = $promise->await();
```

### Subscribers

[](#subscribers)

In order to create a create/delete a subscriber, you have to access the subscribers service first, then to the action

#### Subscribe a User

[](#subscribe-a-user)

```
use Coderflex\LaravelSendy\Facades\Sendy;

$data = [
    'name' => 'John Doe',
    'email' => 'john@example.com',
    'list' => '123',
    'country' => 'US',
];

$response = Sendy::subscribers()->subscribe(
            data: $data,
            async: false
        );
```

Full Documentation [Here](https://sendy.co/api#subscribe)

#### Unsubscribe a User

[](#unsubscribe-a-user)

```
use Coderflex\LaravelSendy\Facades\Sendy;

$data = [
    'email' => 'john@example.com',
    'list' => '123',
    'boolean' => true, // to get plan text response, instead of json.
];

$response = Sendy::subscribers()->unsubscribe(
                data: $data,
                async: false
            );
```

Full Documentation [Here](https://sendy.co/api#unsubscribe)

#### Delete Subscriber

[](#delete-subscriber)

```
use Coderflex\LaravelSendy\Facades\Sendy;

$data = [
    'email' => 'john@example.com',
    'list_id' => '123',
];

$response = Sendy::subscribers()->delete(
                data: $data,
                async: false
            );
```

Full Documentation [Here](https://sendy.co/api#delete-subscriber)

#### Subscriber Status

[](#subscriber-status)

```
use Coderflex\LaravelSendy\Facades\Sendy;

$data = [
    'email' => 'john@example.com',
    'list_id' => '123',
];

$response = Sendy::subscribers()->status(
                data: $data,
                async: false
            );
```

Full Documentation [Here](https://sendy.co/api#subscription-status)

#### Subscribers Count

[](#subscribers-count)

```
use Coderflex\LaravelSendy\Facades\Sendy;

$data = [
    'email' => 'john@example.com',
    'list_id' => '123',
];

$response = Sendy::subscribers()->count(
                listId: '123',
                async: false
            );
```

Full Documentation [Here](https://sendy.co/api#active-subscriber-count)

### Lists

[](#lists)

Same thing as the **subscribers** service, you can access the `lists()` service, then the http action you want.

#### Get Lists

[](#get-lists)

```
use Coderflex\LaravelSendy\Facades\Sendy;

$data = [
    'brand_id' => '123',
    'include_hidden' => 'yes', // either yes or no.
];

$response = Sendy::lists()->get(
                data: $data,
                async: false
            );
```

Full Documentation [Here](https://sendy.co/api#get-lists)

### Brands

[](#brands)

**Laravel Sendy** allows you to retrieve all the brand list you have by

```
use Coderflex\LaravelSendy\Facades\Sendy;

$response = Sendy::brands()->get();
```

Full Documentation [Here](https://sendy.co/api#get-brands)

### Create &amp; Send Compaigns

[](#create--send-compaigns)

```
use Coderflex\LaravelSendy\Facades\Sendy;

$data = [
    'subject' => 'Test Subject',
    'from_name' => 'John Doe',
    'from_email' => 'john@example.com',
    'reply_to' => 'alex@example.com',
    'title' => 'Test Title',
    'plain_text' => 'This is a plain text version of the email.',
    'html_text' => 'This is a HTML version of the email.',
    'list_ids' => 'abc123',
    'segment_ids' => 'xyz456',
    'exclude_list_ids' => null,
    'exclude_segment_ids' => null,
    'brand_id' => '123',
    'query_string' => null,
    'track_opens' => 1,
    'track_clicks' => 1,
    'send_campaign' => 1, // if set to 1 the compaign will be created & sent.
    'schedule_date_time' => null,
    'schedule_timezone' => null,
];

$response = Sendy::compaigns()->create(
                data: $data,
                async: false
            );
```

If you want to create and send the compaign at the same time, use `createAndSend` method

```
$response = Sendy::compaigns()->createAndSend(
                data: $data,
                async: false
            );
```

Full Documentation [Here](https://sendy.co/api#create-send-campaigns)

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Oussama Sid](https://github.com/ousid)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance72

Regular maintenance activity

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

378d ago

### Community

Maintainers

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

---

Top Contributors

[![ousid](https://avatars.githubusercontent.com/u/21012933?v=4)](https://github.com/ousid "ousid (43 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")

---

Tags

laravellaravel-packagephpsendysendy-apisendy-newsletterlaravelcoderflexlaravel-sendy

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ryangjchandler/bearer

Minimalistic token-based authentication for Laravel API endpoints.

8129.8k](/packages/ryangjchandler-bearer)[combindma/laravel-facebook-pixel

Meta pixel integration for Laravel

4956.9k](/packages/combindma-laravel-facebook-pixel)[stechstudio/laravel-hubspot

A Laravel SDK for the HubSpot CRM Api

2971.0k](/packages/stechstudio-laravel-hubspot)[njoguamos/laravel-plausible

A laravel package for interacting with plausible analytics api.

208.8k](/packages/njoguamos-laravel-plausible)[tapp/filament-webhook-client

Add a Filament resource and a policy for Spatie Webhook client

1120.2k](/packages/tapp-filament-webhook-client)

PHPackages © 2026

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