PHP code example of mind4me / bx24_integration

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

    

mind4me / bx24_integration example snippets


https:://your_url/integrations/index // default handler application
https:://your_url/integrations/install // install handler

$schedule->command('integration:get-users')->hourly(); // for users
$schedule->command('integration:get-events')->everyFiveMinutes(); // for deals, companies, leads..
bash
MIND4ME_HOST=https://URL_TO_YOUR_BITRIX
MIND4ME_CLIENT_ID=local.60f43109e2342342.297444147
MIND4ME_CLIENT_SECRET=Fqplr9gyyjdY6usdfsdfmlnsdfjngGyfgfgTdeEcqEaGdix
MIND4ME_USER_LOGIN=Login
MIND4ME_USER_PASSWORD=Password
bash
\Mind4me\Bx24_integration\IntegrationServiceProvider::class
bash
php artisan vendor:publish --provider="Mind4me\Bx24_integration\IntegrationServiceProvider"
php artisan integration:install
php artisan cache:clear
php artisan config:clear