承接 parfumix/laravel5-twilio 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

parfumix/laravel5-twilio

最新稳定版本:v1.0

Composer 安装命令:

composer require parfumix/laravel5-twilio

包简介

An laravel5 twilio component decorator.

README 文档

README

Join the chat at https://gitter.im/parfumix/laravel5-twilio

Installation

Begin by installing this package through Composer. Run this command from the Terminal:

    composer require parfumix/laravel5-twilio

Laravel integration

To wire this up in your Laravel project, you need to add the service provider. Open app/config/app.php, and add a new item to the providers array.

 'Twilio\Laravel5TwilioServiceProvider',

Then, add a Facade for more convenient usage. In app/config/app.php add the following line to the aliases array:

'Twilio'    => 'Twilio\Facades\Twilio',

To add new connections just publish your config file using command and go to your config folder.

php artisan vendor:publish

Dont't forget to import facades to controllers.

Sending a SMS Message

<?php

Use Twilio;

Twilio::sms('+18085551212', 'Message text');

Creating a Call

<?php

Use Twilio;

Twilio::call('+18085551212', 'http://foo.com/call.xml');

License

laravel-twilio is open-sourced software licensed under the MIT license

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-09