PHPackages                             oliveris/text - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. oliveris/text

ActivePackage[Mail &amp; Notifications](/categories/mail)

oliveris/text
=============

Sends text messages to a provider specified.

v1.0.0(7y ago)15MITPHP

Since Aug 28Pushed 7y ago1 watchersCompare

[ Source](https://github.com/oliveris/text)[ Packagist](https://packagist.org/packages/oliveris/text)[ RSS](/packages/oliveris-text/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Text
====

[](#text)

Sends text messages to a provider specified.

The default driver is set to Twilio which will expand eventually to pull in other service providers.

### Usage

[](#usage)

Pull in the composer package by running the command below:

```
composer require oliveris/text

```

Import the Text namespace into the class (autoloading)

```
use Text\Text;

```

Examples
--------

[](#examples)

### Environment variables

[](#environment-variables)

If the env method is available from your application you can set the env variables, see example below:

```
// TWILIO SPECIFIC SETTINGS
TWILIO_SID={sid_from_twilio}
TWILIO_TOKEN={token_from_twilio}
// may want to set the inbound number
TWILIO_INBOUND_NUMBER={number_that_captures_inbound_sms}

```

If the env method is not available, see example below to set them using an alternate method:

```
$text = Text::getDriver("twilio");
$text->setSid(***********);
$text->setToken(************);
// may want to set the inbound number
$text->setInboundNumber(************);

```

### Sending a SMS

[](#sending-a-sms)

The following example shows how you can send a simple SMS

```
$text = Text::getDriver("twilio");
$text->setBody('Lorem ipsum dolor sit amet, mnesarchum interpretaris vis eu.');
$text->setTo('+447*********');
$text->setFrom(env('TWILIO_NUMBER'));
$text->send();

```

### Sending a MMS

[](#sending-a-mms)

The following example shows how you can can send a simple MMS

Noticed how this may display differently dependent on device. (iphone/android)

```
$text = Text::getDriver("twilio");
$text->setBody('Lorem ipsum dolor sit amet, mnesarchum interpretaris vis eu.');
$text->setMedia('url_to_media');
$text->setTo('+447*********');
$text->setFrom(env('TWILIO_NUMBER'));
$text->send();

```

### Getting the inbound SMS

[](#getting-the-inbound-sms)

To get all of the inbound texts sent to the number

```
$text = Text::getDriver("twilio");
$text->setBody('Lorem ipsum dolor sit amet, mnesarchum interpretaris vis eu.');
$text->setTo('+447*********');
$text->setFrom(env('TWILIO_NUMBER'));
$text->send();

```

Built With
----------

[](#built-with)

- PHP 7

Versioning
----------

[](#versioning)

We use [Semantic Versioning 1.0.0](https://semver.org/spec/v1.0.0.html), for example v1.0.0.

Authors
-------

[](#authors)

- Sam Oliveri - Software Engineer

### License

[](#license)

Text is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2817d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20270046?v=4)[Sam](/maintainers/oliveris)[@oliveris](https://github.com/oliveris)

---

Top Contributors

[![oliveris](https://avatars.githubusercontent.com/u/20270046?v=4)](https://github.com/oliveris "oliveris (5 commits)")

---

Tags

laravelsmstwiliotextmessagingtextingmmsinbound

### Embed Badge

![Health badge](/badges/oliveris-text/health.svg)

```
[![Health](https://phpackages.com/badges/oliveris-text/health.svg)](https://phpackages.com/packages/oliveris-text)
```

###  Alternatives

[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[simplesoftwareio/simple-sms

Simple-SMS is a package made for Laravel to send/receive (polling/pushing) text messages. Currently supports CalLFire, EZTexting, Email Gateways, FlowRoute, LabsMobile, Mozeo, Nexmo, Plivo, Twilio, and Zenvia

20845.7k5](/packages/simplesoftwareio-simple-sms)[prgayman/laravel-sms

Laravel package for sending SMS

124.8k](/packages/prgayman-laravel-sms)

PHPackages © 2026

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