定制 bajjour/ensany-whatsapp 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bajjour/ensany-whatsapp

最新稳定版本:1.0.0

Composer 安装命令:

composer require bajjour/ensany-whatsapp

包简介

A Laravel package for Send Whatsapp messages using ensany backend

README 文档

README

This package provides a simple and easy-to-use interface to send whatsapp messages using Ensany Dashboard.

Installation

You can install the package via Composer:

composer require bajjour/ensany-whatsapp

Configuration

After installing the package, publish the configuration file:

php artisan vendor:publish --provider="EnsanyWhatsapp\EnsanyWhatsappServiceProvider" --tag="ensany-whatsapp-config"

Update your .env file with your Stripe API credentials:

ENSANY_WHATSAPP_API_KEY="your-app-key"
ENSANY_WHATSAPP_DEVICE_ID="device-id"

Usage

Initialize the Service

You can initialize the Stripe service in your controller:

use EnsanyWhatsapp\Services\WhatsappService;


public function __construct(WhatsappService $w_service)
{
    $this->w_service = $w_service;
}

Send Text Message

$mobile = '970xxxxxxxxx';
$msg = 'Welcome From Ensany';
$res = $this->m_service->send_text($mobile, $msg);

Response

detailed array returned

{
  "status": true,
  "message": "lynx.successfully",
  "result": {
    "success": true,
    "message_id": "sent-message-id",
    "scheduled_at": "send-date"
  },
  "meta": null
}

License

MIT

统计信息

  • 总下载量: 16
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-06-25