PHPackages                             dantaylorseo/laravel-maytapi-channel - 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. dantaylorseo/laravel-maytapi-channel

ActiveLibrary[API Development](/categories/api)

dantaylorseo/laravel-maytapi-channel
====================================

This is my package laravel-maytapi-channel

v1.0.11(1y ago)0350[4 PRs](https://github.com/dantaylorseo/Laravel-Maytapi-Channel/pulls)MITPHPPHP ^8.2CI passing

Since Nov 6Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/dantaylorseo/Laravel-Maytapi-Channel)[ Packagist](https://packagist.org/packages/dantaylorseo/laravel-maytapi-channel)[ Docs](https://github.com/dantaylorseo/laravel-maytapi-channel)[ GitHub Sponsors](https://github.com/dantaylorseo)[ RSS](/packages/dantaylorseo-laravel-maytapi-channel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (12)Versions (17)Used By (0)

Mytapi Laravel Notification Channel
===================================

[](#mytapi-laravel-notification-channel)

This package provides a notification channel for [Laravel](https://laravel.com) that sends WhatsApp messages using the [Maytapi](https://maytapi.com) API.

[![Latest Version on Packagist](https://camo.githubusercontent.com/8978535f9f2abcc5030103eb72ae21c58a47600cc01e33f024c40ac6cc495205/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64616e7461796c6f7273656f2f4c61726176656c2d4d6179746170692d4368616e6e656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dantaylorseo/laravel-maytapi-channel)[![GitHub Tests Action Status](https://camo.githubusercontent.com/c98ebbd2ba14743b4597599b085f0418de7140af37b4fc02380e6fd73968cd8e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64616e7461796c6f7273656f2f4c61726176656c2d4d6179746170692d4368616e6e656c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/dantaylorseo/laravel-maytapi-channel/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/e8da587aa653b8381dd5f606e2f0e9a20dbddfc324663b74efdacee2af91b932/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64616e7461796c6f7273656f2f4c61726176656c2d4d6179746170692d4368616e6e656c2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/dantaylorseo/laravel-maytapi-channel/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/1eb5b426f0deaafb97824ae780be5cda45b8a51a44d8c68171775fe0714a8381/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64616e7461796c6f7273656f2f4c61726176656c2d4d6179746170692d4368616e6e656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dantaylorseo/laravel-maytapi-channel)[![Packagist License](https://camo.githubusercontent.com/65c0beeea1a1a23d33accbff734f71d48ef8f97079e243fcceb4712709ed8330/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f64616e7461796c6f7273656f2f6c61726176656c2d6d6179746170692d6368616e6e656c3f7374796c653d666c61742d73717561726526636f6c6f723d707572706c65)](LICENSE.md)

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

[](#installation)

You can install the package via composer:

```
composer require dantaylorseo/laravel-maytapi-channel
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-maytapi-channel-config"
```

This is the contents of the published config file:

```
return [
    'api_key' => env('MAYTAPI_API_KEY'),
    'product_id' => env('MAYTAPI_PRODUCT_ID'),
    'phone_id' => env('MAYTAPI_PHONE_ID'),
    'send_to_channel' => env('MAYTAPI_SEND_TO_CHANNEL', false), // if set to true, messages will be sent to the channel instead of the user
    'group_id' => env('MAYTAPI_GROUP_ID'), // if the message is being sent to a group, this is the group ID
];
```

Usage
-----

[](#usage)

This channel uses the `toMail()` method on the notification class to determine the outgoing message. `line()` and `action()` methods are supported.

To set the phone number to send the message to, add the `routeNotificationForMaytapi` method to your `Notifiable` model.

```
public function routeNotificationForMaytapi()
{
    return $this->phone_number; // in the format 447123456789 (country code followed by the number, no leading 0, no spaces)
}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

Credits
-------

[](#credits)

- [dantaylorseo](https://github.com/dantaylorseo)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance68

Regular maintenance activity

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 65.5% 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 ~2 days

Total

12

Last Release

533d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a4201ddd11a8b06e298f2e210dcb36b3fd8d2f758783e9b414facd007565c82?d=identicon)[dreubentaylor](/maintainers/dreubentaylor)

---

Top Contributors

[![dantaylorseo](https://avatars.githubusercontent.com/u/6919599?v=4)](https://github.com/dantaylorseo "dantaylorseo (19 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

---

Tags

laraveldantaylorseolaravel-maytapi-channel

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/dantaylorseo-laravel-maytapi-channel/health.svg)

```
[![Health](https://phpackages.com/badges/dantaylorseo-laravel-maytapi-channel/health.svg)](https://phpackages.com/packages/dantaylorseo-laravel-maytapi-channel)
```

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[rupadana/filament-api-service

A simple api service for supporting filamentphp

204103.8k7](/packages/rupadana-filament-api-service)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)

PHPackages © 2026

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