PHPackages                             hexonthebeach/laravel-cmtext-provider - 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. hexonthebeach/laravel-cmtext-provider

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

hexonthebeach/laravel-cmtext-provider
=====================================

CM.com TextClient in a Laravel Service Provider.

2.0.0(5y ago)1441MITPHP

Since May 30Pushed 5y agoCompare

[ Source](https://github.com/hexonthebeach/laravel-cmtext-provider)[ Packagist](https://packagist.org/packages/hexonthebeach/laravel-cmtext-provider)[ RSS](/packages/hexonthebeach-laravel-cmtext-provider/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

CM.com TextClient Service Provider
==================================

[](#cmcom-textclient-service-provider)

Service provider to inject the `CMText\TextClient`

### requirements

[](#requirements)

- laravel 5

setup
-----

[](#setup)

- Load this package in to your project

```
composer require hexonthebeach/laravel-cmtext-provider

```

- Publish the enclosed config to **config/cmtext.php**

```
php artisan vendor:publish "hexonthebeach\LaravelCMTextProvider\CMTextProvider"
```

- Add `CM_API_KEY` to the project **.env** file, the value should be your Api Key
- Finally add this service provider to the list of providers in the **config/app.php** file

```
'providers' => [
    ... ,
    hexonthebeach\LaravelCMTextProvider\CMTextProvider::class,
],
```

code example
------------

[](#code-example)

```
