Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hexonthebeach/laravel-cmtext-provider
- Owner: hexonthebeach
- License: mit
- Created: 2019-05-30T18:26:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-02T09:26:55.000Z (about 4 years ago)
- Last Synced: 2024-09-22T17:47:39.712Z (about 2 months ago)
- Language: PHP
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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( ... );
}
}
```