PHPackages                             clean-code-studio/laravel-text-messages - 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. clean-code-studio/laravel-text-messages

ActiveLibrary

clean-code-studio/laravel-text-messages
=======================================

Laravel SMS and MMS Package for Sending Text Messages To Users Without needing a 3rd party API

141PHP

Since Jan 22Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Text Messages
---------------------

[](#laravel-text-messages)

Laravel Package To Send Text Messages To Major Phone Providers For Free

### Installation

[](#installation)

1. `composer require clean-code-studio/laravel-text-messages`
2. `php artisan vendor:publish`
3. `choose to publish this package`
4. `php artisan migrate`
5. `use CleanCodeStudio\LaravelTextMessages\Textable Trait on any model you want to text`

*Using Textable trait on User Model*

```
use CleanCodeStudio\LaravelTextMessages\Textable;

class User extends Authenticatable
{
    use Textable;

    //...

```

\#####Example Usage:

```

$user = App\User::create(['email' => 'test@example.com', 'password' => 'secret', 'name' => 'johnDoe']);

// register phone number to user
$user->isTextableVia('Sprint')->at('5555555555');

// then send a text message to the user
$user->text()->message('hello world');

```

##### Customization

[](#customization)

Set sender address of text message :

1. Go to `config/textable.php`
2. Set the `from` property \*Example: \* `config/textable.php`

```
