定制 kylewlawrence/waboxapp-laravel 二次开发

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

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

kylewlawrence/waboxapp-laravel

最新稳定版本:v1.0.2

Composer 安装命令:

composer require kylewlawrence/waboxapp-laravel

包简介

Laravel API for WaboxApp

README 文档

README

This package provides integration with the WaboxApp API. It currently only supports sending a chat message.

Installation

You can install this package via Composer using:

composer require kylewlawrence/laravel-waboxapp

The facade is automatically installed.

WaboxApp::sendChat(['to' => 1234567890, 'text' => 'This is the message']);

Configuration

To publish the config file to app/config/waboxapp-laravel.php run:

php artisan vendor:publish --provider="KyleWLawrence\WaboxApp\Providers\WaboxAppServiceProvider"

Set your configuration using environment variables, either in your .env file or on your server's control panel:

  • WABOXAPP_TOKEN

The API access token. You can create one at: https://app.startwaboxapp.com/profile/developer/tokens

  • WABOXAPP_UID

Set this to the UID number registered at waboxapp.com in order to not have to include it in every request.

  • WABOXAPP_DRIVER (Optional)

Set this to null or log to prevent calling the WaboxApp API directly from your environment.

Contributing

Pull Requests are always welcome here. I'll catch-up and develop the contribution guidelines soon. For the meantime, just open and issue or create a pull request.

Usage

Facade

The WaboxApp facade acts as a wrapper for an instance of the WaboxApp\Http\HttpClient class.

Dependency injection

If you'd prefer not to use the facade, you can instead inject KyleWLawrence\WaboxApp\Services\WaboxAppService into your class. You can then use all of the same methods on this object as you would on the facade.

<?php

use KyleWLawrence\WaboxApp\Services\WaboxAppService;

class MyClass {

    public function __construct(WaboxAppService $waboxapp_service) {
        $this->waboxapp_service = $waboxapp_service;
    }

    public function getBoards() {
        $this->waboxapp_service->sendChat();
    }

}

This package is available under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固