PHPackages                             craftcodery/clicksend - 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. craftcodery/clicksend

ActiveLibrary[API Development](/categories/api)

craftcodery/clicksend
=====================

ClickSend integration for Laravel

5.0.0(2mo ago)01.8kMITBladePHP ^8.2

Since Jan 5Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/craftcodery/clicksend)[ Packagist](https://packagist.org/packages/craftcodery/clicksend)[ Docs](https://github.com/craftcodery/clicksend)[ RSS](/packages/craftcodery-clicksend/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (9)Dependencies (10)Versions (10)Used By (0)

Simple ClickSend mailers for Laravel
====================================

[](#simple-clicksend-mailers-for-laravel)

This package makes it easy to send letters and postcards via ClickSend for your Laravel app.

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

[](#installation)

You can install the package via composer:

```
composer require craftcodery/clicksend
```

#### Preparing the database

[](#preparing-the-database)

You must publish and run migrations:

```
php artisan vendor:publish --provider="CraftCodery\ClickSend\ClickSendServiceProvider" --tag="migrations"
php artisan migrate
```

#### Publishing the config file

[](#publishing-the-config-file)

You can publish the config file with:

```
php artisan vendor:publish --provider="CraftCodery\ClickSend\ClickSendServiceProvider" --tag="config"
```

Publishing the config allows you to customize the environment variables used for setting your ClickSend username and API key.

Configuring for usage
---------------------

[](#configuring-for-usage)

Start by setting environment variables for your ClickSend username and API Key. By default the package looks for `CLICKSEND_USERNAME` and `CLICKSEND_KEY`.

Any models that you want to be able to receive mailers need to use `CraftCodery\ClickSend\Traits\CanReceiveMailers`. This trait only requires one method, `mailerRecipientAddress`, which returns an array of formatted address information. An example of the required array structure is below.

```
/**
 * Get the recipient's address for ClickSend mailers.
 *
 * @return array
 */
public function mailerRecipientAddress()
{
    return [
        'address_name'        => $this->name,
        'address_line_1'      => $this->address,
        'address_line_2'      => $this->address_2,
        'address_city'        => $this->city,
        'address_state'       => $this->state,
        'address_postal_code' => $this->postal_code,
        'address_country'     => $this->country,
    ];
}
```

Similarly, any models that you want to be able to send mailers need to use `CraftCodery\ClickSend\Traits\CanSendMailers`. This trait only requires the method `mailerReturnAddress`, which returns an array of formatted return address information. An example of the required array structure is below.

```
/**
 * Get the sender's return address for ClickSend mailers.
 *
 * @return array
 */
public function mailerReturnAddress()
{
    return [
        'address_name'        => $this->name,
        'address_line_1'      => $this->address,
        'address_line_2'      => $this->address_2,
        'address_city'        => $this->city,
        'address_state'       => $this->state,
        'address_postal_code' => $this->postal_code,
        'address_country'     => $this->country,
    ];
}
```

Sending items
-------------

[](#sending-items)

The `sendLetterTo` and `sentPostcardTo` methods are available to any models using the `CanSendMailers` trait.

Each method requires a recipient model (that uses the `CanReceiveMailers` trait) as the first parameter. Letters require the content as the second parameter, while postcards require a PDF URL for the second parameter, and the content for the third parameter.

The PDF used as the second parameter in the postcard method will be sent on the front of the postcard. The content will be sent on the rear.

```
$user->sendLetterTo($recipient, 'This is the content of the letter.');
$user->sendPostcardTo($recipient, 'https://example.com/postcard-image.pdf', 'This is the content on the rear of the postcard.');
```

License
-------

[](#license)

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

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance88

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity72

Established project with proven stability

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

Recently: every ~495 days

Total

9

Last Release

60d ago

Major Versions

1.0.4 → 2.02022-02-08

2.0 → 3.02022-07-27

3.0 → 4.0.02023-03-07

4.0.0 → 5.0.02026-06-18

PHP version history (3 changes)1.0PHP ^7.4|^8.0

4.0.0PHP ^8.1

5.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ab2a3ee8b51b91f030e53380e1038a5e12bd7b00cc0c61d4ae5e1732497d910?d=identicon)[aaronhuisinga](/maintainers/aaronhuisinga)

---

Top Contributors

[![aaronhuisinga](https://avatars.githubusercontent.com/u/2423844?v=4)](https://github.com/aaronhuisinga "aaronhuisinga (17 commits)")

---

Tags

ClickSend

### Embed Badge

![Health badge](/badges/craftcodery-clicksend/health.svg)

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

###  Alternatives

[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5226.7k](/packages/simplestats-io-laravel-client)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[spatie/laravel-export

Create a static site bundle from a Laravel app

679153.2k7](/packages/spatie-laravel-export)[jasara/php-amzn-selling-partner-api

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

1349.3k1](/packages/jasara-php-amzn-selling-partner-api)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1239.7k25](/packages/fleetbase-core-api)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

265.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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