strebl/inetworx-client 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

strebl/inetworx-client

Composer 安装命令:

composer require strebl/inetworx-client

包简介

Inetworx SMS API Client

README 文档

README

Latest Version on Packagist Build Status StyleCI SensioLabsInsight Quality Score Total Downloads

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

Installation

You can install the package via composer:

composer require strebl/inetworx-client

Laravel

If you are using Laravel, you can register the service provider:

'providers' => [
    // ...
    Strebl\Inetworx\InetworxServiceProvider::class,
];

To publish the config file to config/inetworx.php run (optional):

php artisan vendor:publish --provider="Strebl\Inetworx\InetworxServiceProvider"

If you are using Laravel, you can register the service provider:

'aliases' => [
    // ...
    'Inetworx' => Strebl\Inetworx\InetworxFacade::class,
];

Set the environment variables with the correct values:

INETWORX_AUTH_HEADER_USERNAME=null
INETWORX_AUTH_HEADER_PASSWORD=null

INETWORX_API_USERNAME=null
INETWORX_API_PASSWORD=null

Usage

With Laravel

$skeleton = app(Strebl\Inetworx::class);
$sms->send($phoneNumber, 'Hello, Manuel!', $senderPhoneNumber);

Or you can use the Facade:

\Inetworx::send($phoneNumber, 'Hello, Manuel!', $senderPhoneNumber);

Without Laravel

$sms = new Strebl\Inetworx(
    $authHeaderUsername,
    $authHeaderPassword,
    $apiUsername,
    $apiPassword,
);
$sms->send($phoneNumber, 'Hello, Manuel!', $senderPhoneNumber);

Send a SMS

$sms->send($to, $message, $from);

Get the remaining SMS credits

$sms->credit();

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email manuel@strebel.xyz instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-05-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固