Download the PHP package coxy121/ringcentral-laravel without Composer
On this page you can find all versions of the php package coxy121/ringcentral-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download coxy121/ringcentral-laravel
More information about coxy121/ringcentral-laravel
Files in coxy121/ringcentral-laravel
Package ringcentral-laravel
Short Description Laravel Package for the RingCentral SDK for PHP
License MIT
Informations about the package ringcentral-laravel
RingCentral Package for Laravel
DEPRECATED in favor of coxlr/laravel-ringcentral
Introduction
This is a simple Laravel Service Provider providing access to the RingCentral SDK for PHP.
Installation
To install the PHP client library using Composer:
Alternatively, add these two lines to your composer require section:
Laravel 5.5+
If you are using Laravel 5.5 or above, the package will automatically register the RingCentral provider and facade.
Laravel 5.4 and below
Add RingCentral\Laravel\RingCentralServiceProvider to the providers array in your config/app.php:
If you want to use the facade interface, you can use the facade class when needed:
Or add an alias in your config/app.php:
Configuration
You can use artisan vendor:publish to copy the distribution configuration file to your app's config directory:
Then update config/ringcentral.php with your credentials. Alternatively, you can update your .env file with the following:
Usage
To use the RingCentral Client Library you can use the facade, or request the instance from the service container.
Sending an SMS message (requires login in extension to be company operator)
Or
Properties
| Name | Required | Type | Default | Description |
|---|---|---|---|---|
| to | true | String | The number to send the message to, must include country code | |
| text | true | String | The text of the message to send |
Retrieving Extensions (requires admin access)
Or
Get messages sent and received for the operator
Or
The default from date is the previous 24 hours, to specify the date to search from pass the require date as a parameter.
Parameters
| Name | Required | Type | Default | Description |
|---|---|---|---|---|
| fromDate | false | Object | The date and time to start the search from must be a PHP date object | |
| toDate | false | Object | The date and time to end the search must be a PHP date object | |
| perPage | false | Int | 100 | The number of records to return per page |
Get messages sent and received for a given extension (Needs admin access)
Or
The default from date is the previous 24 hours, to specficy the date to search from pass the require date as a parameter.
Parameters
| Name | Required | Type | Default | Description |
|---|---|---|---|---|
| extensionId | true | String | The RingCentral extension Id of the extension to retrieve the messages for | |
| fromDate | false | Object | The date and time to start the search from must be a PHP date object | |
| toDate | false | Object | The date and time to end the search must be a PHP date object | |
| perPage | false | Int | 100 | The number of records to return per page |
Get a messages attachment (requires admin access)
Or
Parameters
| Name | Required | Type | Default | Description |
|---|---|---|---|---|
| extensionId | true | String | The RingCentral extension Id of the extension the messages belongs to | |
| messageId | true | String | The id of the message of the the attachment belongs to | |
| attachmentId | true | String | The id of the attachment |
For more information on using the RingCentral client library, see the official client library repository.
All versions of ringcentral-laravel with dependencies
illuminate/support Version ~5.8.0|^6.0|^7.0|^8.0
ringcentral/ringcentral-php Version ^2.1