PHP code example of bildvitta / sp-crm

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

    

bildvitta / sp-crm example snippets


return [
    'table_prefix' => env('MS_SP_CRM_TABLE_PREFIX', 'crm_'),
    'db' => [
        'host' => env('CRM_DB_HOST', '127.0.0.1'),
        'port' => env('CRM_DB_PORT', '3306'),
        'database' => env('CRM_DB_DATABASE', 'forge'),
        'username' => env('CRM_DB_USERNAME', 'forge'),
        'password' => env('CRM_DB_PASSWORD', ''),
    ],
    'rabbitmq' => [
        'host' => env('RABBITMQ_HOST'),
        'port' => env('RABBITMQ_PORT', '5672'),
        'user' => env('RABBITMQ_USER'),
        'password' => env('RABBITMQ_PASSWORD'),
        'virtualhost' => env('RABBITMQ_VIRTUALHOST', '/'),
        'exchange' => [],
        'queue' => []
    ],
];
bash
php artisan sp:install
bash
php artisan dataimport:crm_customers
bash
php artisan db:seed --class=SpCrmSeeder
bash
php artisan rabbitmqworker:customers