maukirim/open-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

maukirim/open-api

最新稳定版本:v0.0.5

Composer 安装命令:

composer require maukirim/open-api

包简介

Official Package Whatsapp API provided by maukirim.com

README 文档

README

Latest Version on Packagist Total Downloads

This package is a wrapper for MauKirim OpenAPI to send message to whatsapp, you can send plain message, message with button, message with image, and message with document.

Installation

You can install the package via composer:

composer require maukirim/open-api

publish configuration file

php artisan vendor:publish --provider="MauKirim\OpenApi\OpenApiServiceProvider"

add to your .env

MAUKIRIM_TOKEN=your_token

to get your token, you can register at maukirim.com or contact us at whatsapp

we can provide free trial for 30 days

Usage

Send a plain message to whatsapp

use MauKirim\OpenApi;

$openApi = OpenApi::init(10); // 10 is the number timeout
$openApi->send(
    '628xxxxxx',
    'Hello World *hii*',
)

send a plain message with button

use MauKirim\OpenApi;
$openApi->send(
    '628xxxxxx',
    'Hello World *hii*',
    [
        [
            'id' => '1',
            'text' => 'Button 1',
            'url' => 'your_url',
        ]
    ]
)

send a message with image

use MauKirim\OpenApi;
$file = $request->file('image');
$openApi->sendImage(
    '628xxxxxx',
    'Hello World *hii*',
    $file
)

send a message with document

use MauKirim\OpenApi;
$file = $request->file('document');
$openApi->sendDocument(
    '628xxxxxx',
    'Hello World *hii*',
    $file
)

send otp to whatsapp

use MauKirim\OpenApi;
$openApi->sendOTP(
    '628xxxxxx'
)

validate otp

use MauKirim\OpenApi;
$openApi->validateOTP(
    '628xxxxxx',
    '123456'
)

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

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

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固