PHP code example of rci / member-engagement

1. Go to this page and download the library: Download rci/member-engagement library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rci / member-engagement example snippets


return [
    'enabled' => env('MEMBER_ENGAGEMENT_ENABLED', true),
    'aggregation_cache_ttl' => env('MEMBER_ENGAGEMENT_CACHE_TTL', 0),
    'time_windows' => ['day' => 1, 'week' => 7, 'month' => 30, 'quarter' => 90, 'year' => 365],
    'activity_types' => ['mining', 'pvp_kill', 'pvp_loss', 'pve_bounty_tax', 'industry_tax'],
];
bash
   php artisan migrate
   
bash
php artisan member-engagement:sync --days=90
php artisan member-engagement:aggregate --days=90
bash
php artisan member-engagement:resolve-names --limit=5000