forward-force/televoips 问题修复 & 功能扩展

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

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

forward-force/televoips

Composer 安装命令:

composer require forward-force/televoips

包简介

PHP Wrapper around TeleVoIPs API

README 文档

README

This is a wrapper around TeleVoIPs API. The API is very minimal, so this implementation is fairly simple.

Authentication

In order to authenticate you need a token from TeleVoIPs. Head over to the docs portal to read updated procedure as how to obtain one: https://documenter.getpostman.com/view/3155589/T1DtfbSY#intro

TeleVoIPs is likely to give you a toke and a secret, the API requires the token only.

Messages API

You can send a message.

How to send a message:

$televoips = new \ForwardForce\TeleVoIPs\TeleVoIPs('your-token');

try {
    $message = $televoips->message()
        ->setFrom('19876543210')
        ->setTo('9417264539')
        ->setMessage('Test SMS')
        ->send();
} catch (\GuzzleHttp\Exception\GuzzleException $e) {
    var_dump($e->getMessage());
}

How run the examples:

To run the examples, you need the following:

php examples/send_message.php

Contributions

To run locally, you can use the docker container provided here. You can run it like so:

docker-compose up

Then you can ssh into the php-fpm container. Please note, you need to set your token as environmental variables $TELEVOIPS_API_TOKEN.

xdebug is fully configured to work as cli, hookup your favorite IDE to it and debug away!

There is auto-generated documentation as to how to run this library on local, please take a look at phpdocker/README.md

If you find an issue, have a question, or a suggestion, please don't hesitate to open a github issue.

Acknowledgments

Thank you to phpdocker.io for making getting PHP environments effortless!

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固