PHPackages                             csgt/notification-channel-chatapi - 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. csgt/notification-channel-chatapi

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

csgt/notification-channel-chatapi
=================================

Notification channel Chatapi.

v7.0.9(3y ago)01.1k1MITPHPPHP &gt;=7.0.0

Since May 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/csgt/notification-channel-chatapi)[ Packagist](https://packagist.org/packages/csgt/notification-channel-chatapi)[ Docs](https://github.com/csgt/laravel-notification-channels-chatapi)[ RSS](/packages/csgt-notification-channel-chatapi/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (31)Used By (0)

Chatapi notifications channel for Laravel 5.4+
==============================================

[](#chatapi-notifications-channel-for-laravel-54)

[![Latest Version on Packagist](https://camo.githubusercontent.com/88aec3d6e4cfa3b880e13b7b1d3f2e26744dbd4e4aa20d67946132b9e01f4e48/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f637367742f6e6f74696669636174696f6e2d6368616e6e656c2d636861746170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/csgt/notification-channel-chatapi)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/eb40f1519282ad825fb38efa1ba8b5b4122b5d141f8fcaf42f686e9c6312886f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f637367742f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c2d636861746170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/csgt/notification-channel-chatapi)

This package makes it easy to send \[Chatapi notifications\] with Laravel

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

[](#installation)

Package VersionLaravel VersionGuzzle Version5.x566.x677.x7,8,96, 7Contents
--------

[](#contents)

- [Usage](#usage)
    - [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation-1)

You can install the package via composer:

```
composer require csgt/notification-channel-chatapi
```

You must install the service provider:

```
// config/app.php
'providers' => [
    ...
    NotificationChannels\Chatapi\ChatapiProvider::class,
],
```

### Setting up your Chatapi account

[](#setting-up-your-chatapi-account)

Add your URL, Token and Format ('form\_params' default or 'json') in `config/services.php`:

```
// config/services.php
...
'chatapi' => [
    'url'   => env('CHATAPI_URL'),
    'token' => env('CHATAPI_TOKEN'),
    'format' => env('CHATAPI_FORMAT')
],
...
```

It is important to note that the CHATAPI\_URL env variable must have a trailing slash.

Usage
-----

[](#usage)

Now you can use the channel in your `via()` method inside the notification:

```
use NotificationChannels\Chatapi\ChatapiChannel;
use NotificationChannels\Chatapi\ChatapiMessage;
use Illuminate\Notifications\Notification;

class AccountApproved extends Notification
{
    public function via($notifiable)
    {
        return [ChatapiChannel::class];
    }

    public function toChatapi($notifiable)
    {
        return (new ChatapiMessage())
            ->content("Your {$notifiable->service} account was approved!");
    }
}
```

In order to let your Notification know which phone are you sending/calling to, the channel will look for the `celular` attribute of the Notifiable model. If you want to override this behaviour, add the `routeNotificationForChatapi` method to your Notifiable model.

```
public function routeNotificationForChatapi()
{
    return $this->mobile;
}
```

### Available Message methods

[](#available-message-methods)

#### ChatapiSmsMessage

[](#chatapismsmessage)

- `from('')`: Accepts a phone to use as the notification sender.
- `content('')`: Accepts a string value for the notification body.

Changelog
---------

[](#changelog)

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

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

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

[](#contributing)

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

Credits
-------

[](#credits)

- [CS](https://github.com/csgt)

License
-------

[](#license)

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

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 84% 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 ~51 days

Recently: every ~0 days

Total

30

Last Release

1135d ago

Major Versions

v6.x-dev → v7.0.02020-04-02

v5.8.6 → v7.x-dev2023-02-16

v5.8.8 → v7.0.52023-05-25

v5.8.9 → v7.0.72023-05-25

v5.8.11 → v7.0.82023-05-25

### Community

Maintainers

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

---

Top Contributors

[![jgalindosl](https://avatars.githubusercontent.com/u/66330140?v=4)](https://github.com/jgalindosl "jgalindosl (21 commits)")[![lecheverriaDkt](https://avatars.githubusercontent.com/u/66436637?v=4)](https://github.com/lecheverriaDkt "lecheverriaDkt (2 commits)")[![csgt](https://avatars.githubusercontent.com/u/7926376?v=4)](https://github.com/csgt "csgt (1 commits)")[![enriquebran](https://avatars.githubusercontent.com/u/5359771?v=4)](https://github.com/enriquebran "enriquebran (1 commits)")

### Embed Badge

![Health badge](/badges/csgt-notification-channel-chatapi/health.svg)

```
[![Health](https://phpackages.com/badges/csgt-notification-channel-chatapi/health.svg)](https://phpackages.com/packages/csgt-notification-channel-chatapi)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2022.2M8](/packages/laravel-notification-channels-apn)

PHPackages © 2026

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