定制 omdaa/omdaa-laravel 二次开发

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

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

omdaa/omdaa-laravel

Composer 安装命令:

composer require omdaa/omdaa-laravel

包简介

Laravel integration for Omdaa WhatsApp Business API

README 文档

README

Laravel integration for the Omdaa WhatsApp Business API. Wraps omdaa/omdaa-php.

Installation

composer require omdaa/omdaa-laravel

Publish config (optional):

php artisan vendor:publish --tag=omdaa-config

Add to .env:

OMDAA_API_KEY=your-api-key
OMDAA_BASE_URL=https://omdaa.com/api/v1

Usage

Via Facade

use Omdaa;

$sessions = Omdaa::sessions()->list();
Omdaa::messages()->sendText([
    'sessionId' => 'default',
    'to' => '201234567890',
    'message' => 'Hello from Laravel!',
]);
Omdaa::webhooks()->set(['url' => 'https://yoursite.com/webhook', 'enabled' => true]);

Via dependency injection

use Omdaa\Laravel\OmdaaManager;

class MyController
{
    public function __construct(
        private OmdaaManager $omdaa
    ) {}

    public function index()
    {
        $client = $this->omdaa->client();
        $sessions = $client->sessions()->list();
        return response()->json($sessions);
    }
}

Local development (monorepo)

From the repo root, install with the local PHP package:

cd packages/omdaa-laravel
composer install

The composer.json includes a path repository pointing to ../omdaa-php, so the local omdaa-php is used. For production, install from Packagist: composer require omdaa/omdaa-laravel.

Requirements

  • PHP 8.1+
  • Laravel 9.x, 10.x or 11.x
  • omdaa/omdaa-php ^1.1

License

Apache-2.0

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2026-07-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固