PHPackages                             ahmedsalah/kenda-communication-plugin - 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. ahmedsalah/kenda-communication-plugin

ActiveLibrary

ahmedsalah/kenda-communication-plugin
=====================================

kenda-communication-plugin

0.4(1y ago)010[4 PRs](https://github.com/ahmed3salah/kenda-communication-plugin/pulls)MITPHPPHP ^8.2|^8.3|^8.4CI passing

Since Feb 18Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/ahmed3salah/kenda-communication-plugin)[ Packagist](https://packagist.org/packages/ahmedsalah/kenda-communication-plugin)[ Docs](https://github.com/ahmedsalah/kenda-communication-plugin)[ GitHub Sponsors](https://github.com/kenda)[ RSS](/packages/ahmedsalah-kenda-communication-plugin/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (14)Versions (8)Used By (0)

Kenda Communication Plugin
==========================

[](#kenda-communication-plugin)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2e6dd0ab630af9680486895156eb82ed5dded96295c52eeba64a58c1d4b5d729/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61686d656473616c61682f6b656e64612d636f6d6d756e69636174696f6e2d706c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ahmedsalah/kenda-communication-plugin)[![GitHub Tests Action Status](https://camo.githubusercontent.com/fe387bb1c23d35b2bc5e552f262335aa7dd32b518861c6bc73e9ff24fc66ab13/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f61686d656473616c61682f6b656e64612d636f6d6d756e69636174696f6e2d706c7567696e2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/ahmedsalah/kenda-communication-plugin/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/467ff9ae3e7bb05d0960d4a5b67cef471c486d7bdd4409a3a2b0f6e9f988a230/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f61686d656473616c61682f6b656e64612d636f6d6d756e69636174696f6e2d706c7567696e2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/ahmedsalah/kenda-communication-plugin/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/fc1d123b07a99a928fc1e7c355428752f8d74ef8543148b96c20f0e06355460a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61686d656473616c61682f6b656e64612d636f6d6d756e69636174696f6e2d706c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ahmedsalah/kenda-communication-plugin)

Overview
--------

[](#overview)

The **Kenda Communication Plugin** is a Laravel package designed to facilitate communication between your Laravel application and WhatsApp services. It provides a structured way to register devices, websites, and functions, ensuring secure and seamless integration with remote servers.

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

[](#installation)

You can install the package via Composer:

```
composer require ahmedsalah/kenda-communication-plugin
```

### Configuration

[](#configuration)

Publish the configuration file using the following command:

```
php artisan vendor:publish --tag="kenda-communication-plugin-config"
```

This will create a configuration file containing:

```
return [

    'api_key' => env('KENDA_COMMUNICATION_PLUGIN_API_KEY', 'kn-...'),
    'from_phone' => env('KENDA_COMMUNICATION_PLUGIN_FROM_PHONE', '254712345678'),

    'public_key_path' => env('KENDA_COMMUNICATION_PLUGIN_PUBLIC_KEY_PATH', 'public_key_server.kendaKey'),

    'enable_user_resolving' => env('KENDA_COMMUNICATION_PLUGIN_ENABLE_USER_RESOLVING', true),
    'enable_guest_user' => env('KENDA_COMMUNICATION_PLUGIN_ENABLE_GUEST_USER', true),

    'user_model' => env('KENDA_COMMUNICATION_PLUGIN_USER_MODEL', 'App\Models\User'),
    'user_phone_number_column' => env('KENDA_COMMUNICATION_PLUGIN_USER_PHONE_NUMBER_COLUMN', 'phone_number'),

    'functions' => [
        'example_function' => 'App\KendaCommunicationPlugin\Functions\ExampleFunction',
    ],
];
```

Usage
-----

[](#usage)

### 1. Register a New Device

[](#1-register-a-new-device)

To begin, you must register a WhatsApp number (Device) with the server.

### 2. Register Your Website

[](#2-register-your-website)

Once the device is registered, register your website on the server. This allows your website to communicate with the API and receive user requests.

### 3. Register Your Functions

[](#3-register-your-functions)

Functions must be registered on the server to allow your Laravel application to execute them remotely.

### 4. Map Local Functions to Remote Server Functions

[](#4-map-local-functions-to-remote-server-functions)

Each registered function must be mapped to a local function in your Laravel application.

Generate a function file:

```
php artisan kenda:generate-function
```

Then, map the function in the config file:

```
return [
    'functions' => [
        'createUser' => 'App\KendaCommunicationPlugin\Functions\CreateUser',
        'writeArticle' => 'App\KendaCommunicationPlugin\Functions\WriteArticle',
    ],
];
```

Additional Features
-------------------

[](#additional-features)

### Sending WhatsApp Messages

[](#sending-whatsapp-messages)

You can send WhatsApp messages directly to users using the following function:

```
KendaCommunicationPlugin::sendWhatsappMessage(string $targetPhone, string $message);
```

This feature is useful for notifications and reminders. However, avoid excessive messaging to prevent getting blocked by WhatsApp.

Testing
-------

[](#testing)

Run the test suite using:

```
composer test
```

Changelog
---------

[](#changelog)

Refer to the [CHANGELOG](CHANGELOG.md) for a record of recent changes.

Credits
-------

[](#credits)

- [Ahmed Salah](https://github.com/ahmedsalah)
- [All Contributors](../../contributors)

License
-------

[](#license)

This package is open-source under the MIT License. See [LICENSE](LICENSE.md) for details.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance71

Regular maintenance activity

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.7% 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 ~3 days

Total

3

Last Release

441d ago

PHP version history (2 changes)0.2PHP ^8.4

0.3PHP ^8.2|^8.3|^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/b1cecf61224488093dc7be84f942ab2e6a169bf383a07da6c37d8abc71f48e9f?d=identicon)[ahmed3salah](/maintainers/ahmed3salah)

---

Top Contributors

[![ahmed3salah](https://avatars.githubusercontent.com/u/31387314?v=4)](https://github.com/ahmed3salah "ahmed3salah (55 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")

---

Tags

laravelkendakenda-communication-plugin

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/ahmedsalah-kenda-communication-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/ahmedsalah-kenda-communication-plugin/health.svg)](https://phpackages.com/packages/ahmedsalah-kenda-communication-plugin)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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