Skip to content

Commit 4aca5cb

Browse files
Clean up readme file
1 parent 5cc409d commit 4aca5cb

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ Once composer is finished, you need to add the service provider. Open `app/confi
2121

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

24-
'Twilio' => 'Aloha\Twilio\Facades\Twilio',
24+
'Twilio' => 'Aloha\Twilio\Facades\Twilio',
2525

2626
Publish config files from the Terminal
2727

28-
php artisan config:publish aloha/twilio
29-
28+
php artisan config:publish aloha/twilio
29+
3030
Edit `config/packages/aloha/twilio` with your appropriate Twilio settings
3131

3232

@@ -35,30 +35,25 @@ Edit `config/packages/aloha/twilio` with your appropriate Twilio settings
3535
Sending a SMS Message
3636

3737
```php
38-
<?php
3938
Twilio::message('+18085551212', 'Pink Elephants and Happy Rainbows');
4039
```
4140

4241
Sending a MMS Message
4342

4443
```php
45-
<?php
4644
Twilio::messageWithMedia('+18085551212', 'Pink Elephants and Happy Rainbows', array('http://placehold.it/200x200'));
4745
```
4846

4947
Creating a Call
5048

5149
```php
52-
<?php
5350
Twilio::call('+18085551212', 'http://foo.com/call.xml');
5451
```
5552

5653
Generating TwiML
5754

5855
```php
59-
<?php
60-
$twiml =
61-
Twilio::twiml(function($message) {
56+
$twiml = Twilio::twiml(function($message) {
6257
$message->say('Hello');
6358
$message->play('https://api.twilio.com/cowbell.mp3', array('loop' => 5));
6459
});

0 commit comments

Comments
 (0)