PHPackages                             notifea/notifea-php - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. notifea/notifea-php

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

notifea/notifea-php
===================

Pure PHP repository for Notifea services.

1.2.0(5y ago)01.1k[1 issues](https://github.com/notifea/notifea-php/issues)2MITPHPPHP ^7.0CI failing

Since May 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/notifea/notifea-php)[ Packagist](https://packagist.org/packages/notifea/notifea-php)[ Docs](https://notifea.com)[ RSS](/packages/notifea-notifea-php/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (9)Dependencies (7)Versions (10)Used By (2)

notifea-php
===========

[](#notifea-php)

Pure PHP repository for using Notifea services.

[Notifea](https://notifea.com) provides clients very user-friendly way of sending transactional emails and sms to their users.

Install
-------

[](#install)

To install the SDK you need to be using Composer in your project. To install it please see the [docs](https://getcomposer.org/download/).

After you installed Composer install the SDK

```
composer require notifea/notifea-php
```

Minimum requirements
--------------------

[](#minimum-requirements)

This package will require you to use:

- PHP 7.0 or higher
- [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) 6.0 or higher
- ext-json

Usage
-----

[](#usage)

All email and sms endpoints are accessed via **NotifeaClient**. First start by configuring this client.

```
$client = new NotifeaClient(
    'https://api.notifea.com/v1',
    'Bearer {authorization}'
);
```

Your `authentication` token can be generated in [access-tokens](https://app.notifea.com/access-tokens) section.

### Usage - emails

[](#usage---emails)

To interact with email endpoints use `EmailService`. First start by instantiating.

```
$client = new NotifeaClient(
    'https://api.notifea.com/v1',
    'Bearer {authorization}'
);

$emailService = new EmailService($client);
```

#### Send email

[](#send-email)

Sending an email can be as simple as using this few lines of code:

```
$email = new Email();
$email->setFrom('newadress@notifea.com', 'New Address')
    ->setRecipient('customer@business.com')
    ->setReplyTo('reply_to@notifea.com')
    ->setSubject('My first email')
    ->setHtmlBody('This is my first email')
    ->setCc('cc@notifea.com')
;

$sentEmail = $emailService->sendEmail($email);
```

`$sentEmail` will contain updated `Email` object with all interesting information.

#### Get emails

[](#get-emails)

To get emails, use this piece of code:

```
$emails = $emailService->getEmails();
```

`$emails` will be a new `Collection` containing all returned `Email` objects

#### Get single email

[](#get-single-email)

To get a single email entity, only email uuid is needed:

```
$email = $emailService->getEmail('8fc2c850-81c0-4424-823a-aa4727441864');
```

`$email` will be an `Email` object

#### Delete email

[](#delete-email)

To delete a single email entity from notifea database, usage of this function is sufficient

```
$result = $emailService->deleteEmail('8fc2c850-81c0-4424-823a-aa4727441864');
```

`$result` will be an either `true` on successful deletion or `NotifeaException` will be triggered on any failure (such as email not found)

### Usage - sms

[](#usage---sms)

To interact with sms endpoints use `SmsService`. First start by instantiating.

```
$client = new NotifeaClient(
    'https://api.notifea.com/v1',
    'Bearer {authorization}'
);

$smsService = new SmsService($client);
```

#### Send sms

[](#send-sms)

Sending an sms can be as simple as using this few lines of code:

```
$sms = new Sms();
$sms
    ->setRecipient('+421902739429')
    ->setSmsSenderid('59634971-e57f-44af-b530-038e27e7064e')
    ->setContent('My awesome SMS message.')
;

$sentSms = $smsService->sendSms($sms);
```

`$sentSms` will contain updated `Sms` object with all interesting information.

To find out what is your `sms_sender_id` go into your Management section of your sms senders.

#### Get sms

[](#get-sms)

To get all sms, use this piece of code:

```
$smss = $smsService->getSmss();
```

`$smss` will be a new `Collection` containing all returned `Sms` objects

#### Get single sms

[](#get-single-sms)

To get a single sms entity, only sms uuid is needed:

```
$sms = $smsService->getSms('8fc2c850-81c0-4424-823a-aa4727441864');
```

`$sms` will be an `Sms` object

#### Delete sms

[](#delete-sms)

To delete a single sms entity from notifea database, this function is sufficient

```
$result = $smsService->deleteSms('8fc2c850-81c0-4424-823a-aa4727441864');
```

`$result` will be an either `true` on successful deletion or `NotifeaException` will be triggered on any failure (such as sms not found)

### Usage - sms senders

[](#usage---sms-senders)

Since May our customers may interact with sms senders by using `SmsSenderService`. This is especially handy if you need to have different Sender Names shown in your SMS

First start by instantiating.

```
$client = new NotifeaClient(
    'https://api.notifea.com/v1',
    'Bearer {authorization}'
);

$smsSenderService = new SmsSenderService($client);
```

#### Create sms sender

[](#create-sms-sender)

Creating an sms sender can be as simple as using this few lines of code:

```
$smsSender = new SmsSender();
$smsSender
    ->setSenderName('My Sender')
;

$createdSmsSender = $smsSenderService->createSmsSender($smsSender);
```

`$createdSmsSender` will contain updated `SmsSender` object with all interesting information such as your sms\_sender\_id that you need for sending SMS.

#### Get sms senders

[](#get-sms-senders)

To get all sms senders, use this piece of code:

```
$smsSenders = $smsSenderService->getSmsSenders();
```

`$smsSenders` will be a new `Collection` containing all returned `SmsSender` objects

#### Get single sms sender

[](#get-single-sms-sender)

To get a single sms sender entity, only sms sender uuid is needed:

```
$smsSender = $smsSenderService->getSmsSender('8fc2c850-81c0-4424-823a-aa4727441864');
```

`$smsSender` will be an `SmsSender` object

#### Update sms sender

[](#update-sms-sender)

To update a single sms sender entity, you may use **updateSmsSender()** method and pass in an SmsSender object with the updated data

```
$smsSender = new SmsSender();
$smsSender
    ->setUuid('8fc2c850-81c0-4424-823a-aa4727441864') // required in order to know which sms sender do you wish to update
    ->setSenderName('My New Name')
    ->setLiveTime(25)
;

$result = $smsSenderService->updateSmsSender($smsSender);
```

#### Delete sms sender

[](#delete-sms-sender)

To delete a single sms sender entity from notifea database, this function is sufficient

```
$result = $smsSenderService->deleteSmsSender('8fc2c850-81c0-4424-823a-aa4727441864');
```

`$result` will be an either `true` on successful deletion or `NotifeaException` will be triggered on any failure (such as sms sender not found)

Community
---------

[](#community)

- [Documentation](https://docs.notifea.com)
- [Report issues](https://github.com/notifea/notifea-php/issues)

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

[](#contributing)

Dependencies are managed through `composer`:

```
$ composer install

```

Tests can be run via phpunit:

```
$ vendor/bin/phpunit

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

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

Recently: every ~22 days

Total

9

Last Release

1864d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15668038?v=4)[Vladimír Vráb](/maintainers/iNviNho)[@iNviNho](https://github.com/iNviNho)

---

Top Contributors

[![iNviNho](https://avatars.githubusercontent.com/u/15668038?v=4)](https://github.com/iNviNho "iNviNho (18 commits)")

---

Tags

smsemailstransactional smstransactional emailsemail sendingsms sending

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

318263.8k6](/packages/tzsk-sms)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10139.9k](/packages/gr8shivam-laravel-sms-api)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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