PHPackages                             smart-sender/php-sdk - 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. smart-sender/php-sdk

ActiveLibrary[API Development](/categories/api)

smart-sender/php-sdk
====================

PHP library for the Smart Sender API.

v1.0.1(2y ago)1191MITPHPPHP &gt;=7.4

Since Jun 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/smart-sender/php-sdk)[ Packagist](https://packagist.org/packages/smart-sender/php-sdk)[ Docs](https://smartsender.com/)[ RSS](/packages/smart-sender-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

SmartSender PHP bindings
========================

[](#smartsender-php-bindings)

[![License](https://camo.githubusercontent.com/6fb686c67682a82b8063ebed90a01262421ff284c63c3efbd99d200d40366258/68747470733a2f2f706f7365722e707567782e6f72672f736d6172742d73656e6465722f7068702d73646b2f6c6963656e73652e737667)](https://packagist.org/packages/smart-sender/php-sdk)

The Smart Sender PHP library provides convenient access to the Smart Sender API from applications written in the PHP language. It includes a pre-defined set of classes for API resources that initialize themselves dynamically from API responses which makes it compatible with a wide range of versions of the Smart Sender API.

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

[](#requirements)

PHP 7.4 and later.

Composer
--------

[](#composer)

You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:

```
composer require smart-sender/php-sdk
```

To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

```
require_once 'vendor/autoload.php';
```

Dependencies
------------

[](#dependencies)

The bindings require the following extensions in order to work properly:

- [`curl`](https://secure.php.net/manual/en/book.curl.php),
- [`json`](https://secure.php.net/manual/en/book.json.php)

The bindings require the following packages in order to work properly:

- [`guzzlehttp/guzzle`](https://github.com/guzzlehttp/guzzle), version 7.0.1 or higher.

Getting started
---------------

[](#getting-started)

### Supported services:

[](#supported-services)

- Console:

    - [`Tags API`](https://smartsendereu.atlassian.net/wiki/spaces/docsru/pages/1676411819/Tags+API+-+en),
    - [`Cashiers API`](https://smartsendereu.atlassian.net/wiki/spaces/docsru/pages/1676444559/Payments+API-+en),
    - [`Contacts API`](https://smartsendereu.atlassian.net/wiki/spaces/docsru/pages/1676444281/Contacts+API+-+en),
    - [`Products API`](https://smartsendereu.atlassian.net/wiki/spaces/docsru/pages/1676412034/Products+API+-+en),
    - [`Variables API`](https://smartsendereu.atlassian.net/wiki/spaces/docsru/pages/1676575629/Variables+API+-+en)
- Messenger

    - [`Funnels API`](https://smartsendereu.atlassian.net/wiki/spaces/docsru/pages/1676673469/Funnels+API+-+en),
    - [`Messages API`](https://smartsendereu.atlassian.net/wiki/spaces/docsru/pages/1676575830/Messages+API+-+en),
    - [`Channels API`](https://smartsendereu.atlassian.net/wiki/spaces/docsru/pages/1676444598/Channels+API+-+en),
    - [`Operators API`](https://smartsendereu.atlassian.net/wiki/spaces/docsru/pages/1676575799/Operators+API+-+en)

### Simple usage looks like:

[](#simple-usage-looks-like)

```
$manager = \SmartSender\Manager::withToken('uwWH632A3w47mK80iiC94yiMgGOfw3QNGIdjmnAX5eXqvgNkWGEKdaZQsQCJ');

$response = $manager->console->tags->create([
    'name' => 'Tag 1',
    'color' => '000000',
]);

$tag = $response->getTag();

echo $tag->id;
echo $tag->name;
```

Documentation
-------------

[](#documentation)

See the [PHP API docs](https://smartsendereu.atlassian.net/wiki/spaces/docsru/pages/1676673382/API+integration+-+en).

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

[](#configuration)

### Managing variables

[](#managing-variables)

> **Note**Use Base URI setting only if the Smart Sender API URI has changed or you are using a shim on your server that is similar to the Smart Sender API.

```
// setup proxy url
putenv('SMART_SENDER_BASE_URI=https://proxy.com');

// setup access token
putenv('SMART_SENDER_ACCESS_TOKEN=test');

// setup proxy url
putenv('SMART_SENDER_VERSION=v2.2');
```

### Default manager

[](#default-manager)

> **Note**Change the access token before calling the Smart Sender API methods. By default, a non-existent token is specified in the config, calls with which will give an error.

```
// use the Smart Sender API client from default settings
$manager = \SmartSender\Manager::default();

// retrieve value from SMART_SENDER_ACCESS_TOKEN environment variable.
echo $manager->client->getAccessToken();
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

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

Total

2

Last Release

1081d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/03105b3e3e30db81af01fa0e0bcc9f9b4fbf972af69e19224463744b5c64d700?d=identicon)[smart-sender](/maintainers/smart-sender)

---

Top Contributors

[![serdiuk-oleksandr](https://avatars.githubusercontent.com/u/31037001?v=4)](https://github.com/serdiuk-oleksandr "serdiuk-oleksandr (27 commits)")

---

Tags

apisdksmart-sender

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/smart-sender-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/smart-sender-php-sdk/health.svg)](https://phpackages.com/packages/smart-sender-php-sdk)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[saloonphp/saloon

Build beautiful API integrations and SDKs with Saloon

2.4k9.6M468](/packages/saloonphp-saloon)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)[php-opencloud/openstack

PHP SDK for OpenStack APIs. Supports BlockStorage, Compute, Identity, Images, Networking and Metric Gnocchi

2292.2M24](/packages/php-opencloud-openstack)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)

PHPackages © 2026

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