PHPackages                             maca134/fuel-twilio - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. maca134/fuel-twilio

ActivePackage[Utility &amp; Helpers](/categories/utility)

maca134/fuel-twilio
===================

Twilio package for FuelPHP

5452PHP

Since Jan 2Pushed 13y ago2 watchersCompare

[ Source](https://github.com/maca134/fuel-twilio)[ Packagist](https://packagist.org/packages/maca134/fuel-twilio)[ RSS](/packages/maca134-fuel-twilio/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Twilio
======

[](#twilio)

Twilio is a package to allow interaction with the [Twilio](https://www.twilio.com) service.

Installation
------------

[](#installation)

1. Clone (`git clone git://github.com/maca134/fuelphp-twilio`) / [download](https://github.com/maca134/fuelphp-twilio/zipball/master)
2. Copy to fuel/packages/
3. Copy fuel/packages/twilio/config/twilio.php to fuel/app/config/
4. Add your Twilio credentials and defaults for each twiml element.

Introduction
============

[](#introduction)

Rest API
--------

[](#rest-api)

This package will allow you to send requests to Twilio:

- [Accounts](https://www.twilio.com/docs/api/rest/account)
- [MakeCall](https://www.twilio.com/docs/api/rest/making-calls)
- [Recordings](https://www.twilio.com/docs/api/rest/recording)
- [SmsMessage](https://www.twilio.com/docs/api/rest/sending-sms)
- [Transcriptions](https://www.twilio.com/docs/api/rest/transcription)

[TwiML](https://www.twilio.com/docs/api/twiml): Twilio Markup Language
----------------------------------------------------------------------

[](#twiml-twilio-markup-language)

It also includes an object based implementation of Twilio's [TwiML](https://www.twilio.com/docs/api/twiml).

Here are the TwiML elements:

- [Say](https://www.twilio.com/docs/api/2010-04-01/twiml/say)
- [Play](https://www.twilio.com/docs/api/2010-04-01/twiml/play)
- [Gather](https://www.twilio.com/docs/api/2010-04-01/twiml/gather)
    - [Say](https://www.twilio.com/docs/api/2010-04-01/twiml/say)
    - [Play](https://www.twilio.com/docs/api/2010-04-01/twiml/play)
    - [Pause](https://www.twilio.com/docs/api/2010-04-01/twiml/pause)
- [Record](https://www.twilio.com/docs/api/2010-04-01/twiml/record)
- [Sms](https://www.twilio.com/docs/api/2010-04-01/twiml/sms)
- [Dial](https://www.twilio.com/docs/api/2010-04-01/twiml/dial)
    - [Number](https://www.twilio.com/docs/api/2010-04-01/twiml/number)
    - [Client](https://www.twilio.com/docs/api/2010-04-01/twiml/client)
    - [Conference](https://www.twilio.com/docs/api/2010-04-01/twiml/conference)
- [Hangup](https://www.twilio.com/docs/api/2010-04-01/twiml/hangup)
- [Redirect](https://www.twilio.com/docs/api/2010-04-01/twiml/redirect)
- [Reject](https://www.twilio.com/docs/api/2010-04-01/twiml/reject)
- [Pause](https://www.twilio.com/docs/api/2010-04-01/twiml/pause)

Configuration
=============

[](#configuration)

Copy config/twilio.php to app/config/twilio.php and change whatever setting in need of changing.

Rest API Examples
=================

[](#rest-api-examples)

Make a call
-----------

[](#make-a-call)

```
$call = Twilio\Twilio::request('MakeCall');
$response = $call->create(array(
	'To' => '+4412345678901',
	'From' => '+4416789012345',
	'Url' => Uri::create('welcome/call')
));

```

Send an SMS message
-------------------

[](#send-an-sms-message)

```
$sms = Twilio\Twilio::request('SmsMessage');
$response = $sms->create(array(
	'To' => '+4412345678901',
	'From' => '+4416789012345',
	'Body' => 'SMS content'
));

```

TwiML Examples
==============

[](#twiml-examples)

Simple Example
--------------

[](#simple-example)

```
$twiml = Twilio\Twilio::twiml();
$twiml->say('Hello World!')->pause('', array('length' => '5'));
$twiml->render();

```

Will render:

```

		Hello World!

```

Grabbing key presses during a call
----------------------------------

[](#grabbing-key-presses-during-a-call)

```
$question = Twilio\Twilio::twiml();
$question->say('Please press 1 or 2')->pause()->play('http://some.place.com/music.mp3');

$twiml = Twilio\Twilio::twiml();
$twiml->pause()->gather($question, array(
	'action' => Uri::create('twilio/next_action'),
	'numDigits' => '1'
		)
);
$response = $twiml->render();

```

Sending an SMS message
----------------------

[](#sending-an-sms-message)

```
$twiml = Twilio\Twilio::twiml();
$twiml->sms($message, array('from' => '+441234567890'));

```

Notes
=====

[](#notes)

Only the TwiML elements Gather and Dial have nested objects.

Gather can have the following nested variables:

- Say
- Play
- Pause

Dial can have:

- A string, telephone number
- Number
- Client
- Conference

Get In Touch
============

[](#get-in-touch)

You can get in touch either through GitHub or you can email me at .

Checkout my site at [http://maca134.co.uk](maca134.co.uk)

Thanks
======

[](#thanks)

- [Twilio](https://www.twilio.com)
- [TinyHttp](https://gist.github.com/618157)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1324939?v=4)[Matthew McConnell](/maintainers/maca134)[@maca134](https://github.com/maca134)

---

Top Contributors

[![maca134](https://avatars.githubusercontent.com/u/1324939?v=4)](https://github.com/maca134 "maca134 (11 commits)")

### Embed Badge

![Health badge](/badges/maca134-fuel-twilio/health.svg)

```
[![Health](https://phpackages.com/badges/maca134-fuel-twilio/health.svg)](https://phpackages.com/packages/maca134-fuel-twilio)
```

###  Alternatives

[gstt/laravel-achievements

Achievements for Laravel 5.3+

29526.1k](/packages/gstt-laravel-achievements)[innmind/immutable

Immutable PHP primitive wrappers

74226.3k83](/packages/innmind-immutable)[b13/ai-bots-love-markdown

Serve page content as Markdown for AI bots

102.0k](/packages/b13-ai-bots-love-markdown)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
