Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Commit d1c8d17

Browse files
authored
Add support for php 6.x helper library (#907)
1 parent 7d188ac commit d1c8d17

File tree

115 files changed

+1072
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+1072
-4
lines changed

tools/automation/code-sample-formatter/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"author": "",
1010
"license": "ISC",
1111
"dependencies": {
12+
"argparse": "1.0.9",
1213
"node-find-files": "0.0.4",
13-
"recursive-readdir": "^2.2.1",
14-
"argparse": "1.0.9"
14+
"recursive-readdir": "^2.2.1"
1515
},
1616
"devDependencies": {
1717
"jasmine": "^2.6.0"

tools/automation/twiml-generator/generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
'java': '8.x',
1515
'csharp': '5.x',
1616
'node': '3.x',
17-
'php': '5.x',
17+
'php': '6.x',
1818
'ruby': '5.x'
1919
}
2020

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
require_once './vendor/autoload.php';
3+
use Twilio\TwiML\MessagingResponse;
4+
5+
$response = new MessagingResponse();
6+
$response->message('Store Location: 123 Easy St.');
7+
8+
echo $response;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
require_once './vendor/autoload.php';
3+
use Twilio\TwiML\MessagingResponse;
4+
5+
$response = new MessagingResponse();
6+
$message = $response->message('');
7+
$message->body('Store Location: 123 Easy St.');
8+
$message->media('https://demo.twilio.com/owl.png');
9+
10+
echo $response;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
require_once './vendor/autoload.php';
3+
use Twilio\TwiML\MessagingResponse;
4+
5+
$response = new MessagingResponse();
6+
$response->message('Store Location: 123 Easy St.',
7+
['action' => '/SmsHandler.php', 'method' => 'POST']);
8+
9+
echo $response;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
require_once './vendor/autoload.php';
3+
use Twilio\TwiML\MessagingResponse;
4+
5+
$response = new MessagingResponse();
6+
$message = $response->message('');
7+
$message->body('Hello friend');
8+
$message->media('https://demo.twilio.com/owl.png');
9+
10+
echo $response;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
require_once './vendor/autoload.php';
3+
use Twilio\TwiML\VoiceResponse;
4+
5+
$response = new VoiceResponse();
6+
$response->redirect('http://www.foo.com/nextInstructions');
7+
8+
echo $response;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
require_once './vendor/autoload.php';
3+
use Twilio\TwiML\VoiceResponse;
4+
5+
$response = new VoiceResponse();
6+
$response->redirect('../nextInstructions');
7+
8+
echo $response;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
require_once './vendor/autoload.php';
3+
use Twilio\TwiML\MessagingResponse;
4+
5+
$response = new MessagingResponse();
6+
$message = $response->message('');
7+
$message->body('Hello World!');
8+
$response->redirect('https://demo.twilio.com/welcome/sms/');
9+
10+
echo $response;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
require_once './vendor/autoload.php';
3+
use Twilio\TwiML\MessagingResponse;
4+
5+
$response = new MessagingResponse();
6+
$response->message('This is message 1 of 2.');
7+
$response->message('This is message 2 of 2.');
8+
9+
echo $response;

0 commit comments

Comments
 (0)