PHP code example of rci / member-rewards

1. Go to this page and download the library: Download rci/member-rewards 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-rewards example snippets


return [
    'enabled' => env('MEMBER_REWARDS_ENABLED', true),
    'polling_interval' => env('MEMBER_REWARDS_POLLING_INTERVAL', 5),  // minutes
    'aggregation_cache_ttl' => env('MEMBER_REWARDS_CACHE_TTL', 0),     // seconds (0 = disabled)
    'esi.retry_attempts' => 3,
    'esi.retry_delay_seconds' => 2,
    'time_windows' => ['day', 'week', 'month', 'quarter', 'year'],
    'activity_types' => ['mining', 'pvp_kill', 'pvp_loss', 'tax_wallet'],
    'manager_core_integration' => true,
    'alerts.enabled' => true,
    'alerts.check_interval' => 5,  // minutes
];
bash
   php artisan vendor:publish --tag=member-rewards-config
   php artisan vendor:publish --tag=member-rewards-views
   
bash
   php artisan migrate
   
bash
   php artisan db:seed --class="\RCI\MemberRewards\Database\Seeders\ScheduleSeeder"