PHPackages                             dainsys/ring\_central - 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. [API Development](/categories/api)
4. /
5. dainsys/ring\_central

ActiveLibrary[API Development](/categories/api)

dainsys/ring\_central
=====================

A full stack package to add ring\_central functionality to Laravel applications.

v0.2.2(3y ago)012MITPHP

Since Feb 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Yismen/ring_central)[ Packagist](https://packagist.org/packages/dainsys/ring_central)[ RSS](/packages/dainsys-ring-central/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (6)Versions (8)Used By (0)

Dainsys Ring Central
====================

[](#dainsys-ring-central)

Extends ring central reports functionality.

### Installation

[](#installation)

1. Require using composer: `composer require dainsys/ring_central`.
2. Add DB Connection values in your .env file:

```
RC_DB_HOST=
RC_DB_DATABASE=
RC_DB_USERNAME=
RC_DB_PASSWORD=
RC_DB_DRIVER=

```

3. Run the migrations: `php artisan migrate`

#### Ussage

[](#ussage)

1. Make sure your commands extednds the `\Dainsys\RingCentral\Console\Commands\AbstractProductionReportCommand`. Alternatively, you may use the `rc:make-command` command to create your reports.
2. Your signature property must provide a required attribute for `dates`, which is required to run the reports. If none passed, today's date will be assumed.
3. This package uses `dainsys/mailing` package under the hood [More details](https://github.com/Yismen/mailing). Or, make sure to provide implementation for the `recipients` method.
    1. Using `dainsys/mailing` package:
        1. Visit url `/mailing/admin/mailables` in your app and create a mailable record with the class name of the command. For current example, `App\Console\Commands\PublishingProductionReport`.
        2. Visit url `/mailing/admin/recipients` to create new recipients associate them with the created mailable report.
    2. Providing your oun implementation in your report commands: ```
         protected function recipients(): array
         {
             return [];
         }
        ```
4. Provide implementation to all abstract methods required. Use the following code as an example.

```
