Download the PHP package jithvar/yii2-ringcentral without Composer
On this page you can find all versions of the php package jithvar/yii2-ringcentral. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jithvar/yii2-ringcentral
More information about jithvar/yii2-ringcentral
Files in jithvar/yii2-ringcentral
Package yii2-ringcentral
Short Description Send Fax using RingCentral with Yii2
License MIT
Informations about the package yii2-ringcentral
Yii2 RingCentral Fax Extension
This extension provides RingCentral Fax integration for Yii2 framework with OAuth 2.0 support.
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json file.
Configuration
Basic Configuration
OAuth 2.0 Setup
- Go to RingCentral Developer Portal
- Select your application
- Under "Auth & Security":
- Enable "OAuth 2.0"
- Enable "Issue refresh tokens"
- Add your redirect URI (e.g.,
https://your-app.com/ringcentral/callback)
Implementing OAuth Flow
-
Create a controller to handle the OAuth flow:
-
Add routes in
config/web.php: - Add a link to start the OAuth flow:
Token Management
The extension handles token management automatically:
-
When tokens are first obtained via OAuth:
- Both access and refresh tokens are saved via your
tokenRefreshCallback - The tokens are used for subsequent API calls
- Both access and refresh tokens are saved via your
-
When the access token expires:
- The extension automatically uses the refresh token to get a new access token
- Your
tokenRefreshCallbackis called with the new tokens - The failed request is automatically retried
- If the refresh token expires:
- The user will need to re-authenticate via OAuth
- You can catch this case by checking for the 'refresh_token_expired' error
Usage
Best Practices
-
Store sensitive credentials securely:
-
Use environment-specific URLs:
- Always implement the tokenRefreshCallback to persist new tokens:
License
This project is licensed under the MIT License - see the LICENSE file for details.
All versions of yii2-ringcentral with dependencies
yiisoft/yii2 Version ~2.0.0
ringcentral/ringcentral-php Version ^2.0
firebase/php-jwt Version ^6.0