arifinhabibi/whatsapp 问题修复 & 功能扩展

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

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

arifinhabibi/whatsapp

最新稳定版本:v2.0.1

Composer 安装命令:

composer require arifinhabibi/whatsapp

包简介

laravel whatsapp sending message

README 文档

README

Latest Stable Version Total Downloads License

I'll tell you how to installation or setup this package into your project laravel, please follow this step.

Requirements Tools

  • php >=7.4 | <8.4
  • composer has been installed on your system

Installation

Install this package with composer and run this on your command.

composer require arifinhabibi/whatsapp

Next step on controller you must declare the origin static method

use arifinhabibi\whatsapp\Whatsapp;

second you can use this syntax into your function controller, and change parameter target number and message

Whatsapp::send("+628238749873", "Helloo world!");

send function have to parameters, on first need a number target which registered on whatsapp, second parameter is message. message can separated with space but not with a new line.

Usage/Examples

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use arifinhabibi\whatsapp\Whatsapp;

class MainController extends Controller
{
    public function send(Request $request)
    {
        return Whatsapp::send($request->phone, $request->message);
    }
}

Requirements Number Target

Is number target must started with number code

Country Number Code
Indonesia +62, 62, 0, 8

📝 License

Copyright © 2023 arifinhabibi.
This project is MIT licensed.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-24