lixus/valuefirst

v1.0 2020-12-15 10:31 UTC

This package is auto-updated.

Last update: 2024-09-15 20:40:55 UTC


README

Laravel 的 Value First 客户端

在 composer.json 中添加此包并更新 composer。

composer require lixus/valuefirst

安装

Laravel 5.x

更新 composer 后,将 ServiceProvider 添加到 config/app.php 中的 providers 数组

Lixus\ValueFirst\ServiceProvider::class,

您可以选择使用外观来缩短代码。将以下内容添加到您的 facades

'VFirstClient' => Lixus\ValueFirst\Facade::class,

Lumen

要更改配置,将配置文件复制到您的 config 文件夹,并在 bootstrap/app.php 中启用它

$app->configure('valuefirst');

更新 composer 后,将以下行添加到 bootstrap/app.php 中以注册 provider

$app->register(\Lixus\ValueFirst\ServiceProvider::class);

用法

使用默认配置

VFirstClient::send(to,template,tag,delivery_url)

或使用自定义凭据

VFirstClient::withCredential(username, password, sender)
   ->send(to,template,tag,delivery_url)