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

ActiveLibrary[API Development](/categories/api)

yournotify/yournotify-php-sdk
=============================

A PHP SDK for interacting with Yournotify API. Send email and sms marketing campaigns with ease.

14PHP

Since May 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/yournotify/yournotify-php-sdk)[ Packagist](https://packagist.org/packages/yournotify/yournotify-php-sdk)[ RSS](/packages/yournotify-yournotify-php-sdk/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Yournotify PHP SDK
==================

[](#yournotify-php-sdk)

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

[](#installation)

To install the Yournotify PHP SDK, you can use Composer. Run the following command in your terminal:

```
composer require yournotify/yournotify-php-sdk
```

Usage
-----

[](#usage)

To use the Yournotify SDK, you need to include the autoload file and create an instance of the `Yournotify` class with your API key.

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

$apiKey = 'your_api_key_here';
$yournotify = new Yournotify($apiKey);
```

Available Methods
-----------------

[](#available-methods)

### Sending an Email

[](#sending-an-email)

```
$response = $yournotify->sendEmail('Title', 'Subject', 'Hello', 'Hello', 'running', 'sender@example.com', 'recipient@example.com', 'Name', ['key' => 'value']);
print_r($response);
```

### Sending an SMS

[](#sending-an-sms)

```
$response = $yournotify->sendSMS('Title', 'Subject', 'Hello', 'running', 'SENDER_ID', '+2348100000000', 'Name', ['key' => 'value']);
print_r($response);
```

### Adding a Contact

[](#adding-a-contact)

```
$response = $yournotify->addContact('email@example.com', '+2348100000000', 'list_id', 'Contact Name', ['key' => 'value']);
print_r($response);
```

### Getting All Contacts

[](#getting-all-contacts)

```
$response = $yournotify->getContacts();
print_r($response);
```

### Deleting a Contact

[](#deleting-a-contact)

```
$response = $yournotify->deleteContact(123);
print_r($response);
```

### Adding a List

[](#adding-a-list)

```
$response = $yournotify->addList('Title', 'public', 'single');
print_r($response);
```

### Getting All Lists

[](#getting-all-lists)

```
$response = $yournotify->getLists();
print_r($response);
```

### Deleting a List

[](#deleting-a-list)

```
$response = $yournotify->deleteList(456);
print_r($response);
```

### Deleting a Campaign

[](#deleting-a-campaign)

```
$response = $yournotify->deleteCampaign(789);
print_r($response);
```

### Getting Campaign Stats

[](#getting-campaign-stats)

```
$response = $yournotify->getCampaignStats(123, 'email');
print_r($response);
```

### Getting Campaign Reports

[](#getting-campaign-reports)

```
$response = $yournotify->getCampaignReports(123, 'sms');
print_r($response);
```

API Methods Reference
---------------------

[](#api-methods-reference)

- `sendEmail($title, $subject, $html, $text, $status, $from, $to, $name, $attribs)`: Sends an email.
- `sendSMS($title, $subject, $text, $status, $from, $to, $name, $attribs)`: Sends an SMS.
- `addContact($email, $telephone, $list, $name, $attribs)`: Adds a contact to a list.
- `getContacts()`: Retrieves all contacts.
- `deleteContact($id)`: Deletes a contact by ID.
- `addList($title, $type, $optin)`: Creates a new list.
- `getLists()`: Retrieves all lists.
- `deleteList($id)`: Deletes a list by ID.
- `deleteCampaign($id)`: Deletes a campaign by ID.
- `getCampaignStats($ids, $channel)`: Retrieves campaign statistics.
- `getCampaignReports($ids, $channel)`: Retrieves campaign reports.

More Information
----------------

[](#more-information)

For full API reference, visit the [Yournotify API Documentation](https://api.yournotify.com/doc).

License
-------

[](#license)

This SDK is open-source and available under the MIT License.

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1445007?v=4)[Charlesmudy](/maintainers/charlesmudy)[@charlesmudy](https://github.com/charlesmudy)

---

Top Contributors

[![charlesmudy](https://avatars.githubusercontent.com/u/1445007?v=4)](https://github.com/charlesmudy "charlesmudy (13 commits)")

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k14](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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