hexonthebeach/laravel-cmtext-provider
Composer 安装命令:
composer require hexonthebeach/laravel-cmtext-provider
包简介
CM.com TextClient in a Laravel Service Provider.
README 文档
README
Service provider to inject the CMText\TextClient
requirements
- laravel 5
setup
- Load this package in to your project
composer require hexonthebeach/laravel-cmtext-provider
- Publish the enclosed config to config/cmtext.php
php artisan vendor:publish "hexonthebeach\LaravelCMTextProvider\CMTextProvider"
-
Add
CM_API_KEYto the project .env file, the value should be your Api Key -
Finally add this service provider to the list of providers in the config/app.php file
'providers' => [ ... , hexonthebeach\LaravelCMTextProvider\CMTextProvider::class, ],
code example
<?php namespace App\Http\Controllers; use CMText\TextClient; class CMTextController extends Controller { public function index(TextClient $textClient) { $textClient->SendMessage( ... ); } }
统计信息
- 总下载量: 443
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-05-30