PHP code example of remp / crm-scenarios-module

1. Go to this page and download the library: Download remp/crm-scenarios-module 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/ */

    

remp / crm-scenarios-module example snippets

bash
php bin/command.php user:generate_access
php bin/command.php api:generate_access
php bin/command.php application:seed
js
window.Scenario = {
  config: {
    AUTH_TOKEN: '',
    CRM_HOST: '',
    CANCEL_PATH: '',
    SEGMENT_ID: null
  }
};
shell
php bin/command.php application:install_assets
bash
php bin/command.php application:hermes_worker
php bin/command.php scenarios:worker
sh
# Aggregate scenarios statistics 
php bin/command.php scenarios:aggregate_stats
sh
# Remove old statistic data
php bin/command.php scenarios:remove_stats
bash
php bin/command.php scenarios:event_generator
shell
php bin/command.php application:hermes_shutdown