arifinhabibi/whatsapp
最新稳定版本:v2.0.1
Composer 安装命令:
composer require arifinhabibi/whatsapp
包简介
laravel whatsapp sending message
README 文档
README
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
其他信息
- 授权协议: MIT
- 更新时间: 2023-08-24