定制 adedaramola/laravel-termii 二次开发

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

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

adedaramola/laravel-termii

最新稳定版本:v0.0.4

Composer 安装命令:

composer require adedaramola/laravel-termii

包简介

A Laravel Package to work with Termii API

README 文档

README

Latest Version on Packagist Total Downloads

Installation

You can install the package via composer:

composer require adedaramola/laravel-termii

You can publish the config file with:

php artisan vendor:publish --tag="termii-config"

Set up

To start using this package, you need to add environment variables for:

  • TERMII_URL - Optional, not really needed as this has a default
  • TERMII_API_KEY - You can get this from your Termii dashboard.

The package will pick these up in its configuration and use these when it resolves an instance of the TermiiClient.

Usage

This package can be used by injecting the Adedaramola\Termii\Http\TermiiClient into a method to instantiate the client:

<?php

declare(strict_types=1);

namespace App\Http\Controllers;

use Adedaramola\Termii\Contracts\TermiiClientContract;

class SendOtpController extends Controller
{
    public function __construct(
        private TermiiClientContract $termiiClient,
    ) {}

    public function store()
    {
        $this->termiiClient->token()->sendToken();
    }
}

Alternatively you can use the Termii Facade to help you:

declare(strict_types=1);

Termii::token()->sendToken();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2023-10-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固