承接 carpool-logistics/laravel-heymarket 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

carpool-logistics/laravel-heymarket

最新稳定版本:1.0.9

Composer 安装命令:

composer require carpool-logistics/laravel-heymarket

包简介

A Laravel package for Heymarket API

README 文档

README

A Laravel package for Heymarket API integration.

Installation

composer require carpool-logistics/laravel-heymarket

Configuration

Publish the configuration file:

php artisan vendor:publish --provider="CarpoolLogistics\Heymarket\HeymarketServiceProvider"

Set your Heymarket API key in the .env file:

HEYMARKET_API_KEY=your_api_key
HEYMARKET_CREATOR_ID=creator_id
HEYMARKET_INBOX_ID=inbox_id

Usage

Use the package in your Laravel notifications:

use CarpoolLogistics\Heymarket\HeymarketChannel;
use CarpoolLogistics\Heymarket\HeymarketMessage;

class OrderShipped extends Notification
{
    public function via($notifiable)
    {
        return [HeymarketChannel::class];
    }

    public function toHeymarket($notifiable)
    {
        return [
            HeymarketMessage::create()
                ->to($notifiable->phone_number)
                ->body('Your order has been shipped!')
                ->creatorId('your_creator_id')
                ->inboxId('your_team_id'),
             
            HeymarketMessage::create()
                ->to($notifiable->phone_number)
                ->body('Your order tracking number is 12345')
                ->inboxId('your_inbox_id')
                ->creatorId('your_creator_id')
                ->mediaUrl('https://images.com/image')
        ];
    }
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-11-26