Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hexonthebeach/laravel-cmtext-provider

Service provider to inject the CMText\TextClient
https://github.com/hexonthebeach/laravel-cmtext-provider

Last synced: 5 days ago
JSON representation

Service provider to inject the CMText\TextClient

Awesome Lists containing this project

README

        

# CM.com TextClient Service Provider
Service provider to inject the `CMText\TextClient`

### requirements

- laravel 5

## setup

- Load this package in to your project
```composer
composer require hexonthebeach/laravel-cmtext-provider
```

- Publish the enclosed config to **config/cmtext.php**
```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
```php
'providers' => [
... ,
hexonthebeach\LaravelCMTextProvider\CMTextProvider::class,
],
```

## code example
```php
SendMessage( ... );
}
}
```