mind4me / bx24_integration
integrations laravel-bx24
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:packages
README
Packages for integration Laravel with Bitrix24
Installation
Go to the BITRIX24 and create local application with this url's
https:://your_url/integrations/index // default handler application https:://your_url/integrations/install // install handler
After create application you should copy "client_id" and "client_secret" in your .env file like this:
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
Then go to console, in path for your laravel project and enter this command
composer require mind4me/bx24_integration
In file config/app.php insert in 'providers' => [
\Mind4me\Bx24_integration\IntegrationServiceProvider::class
Then enter this artisan command in console
php artisan vendor:publish --provider="Mind4me\Bx24_integration\IntegrationServiceProvider"
php artisan integration:install
php artisan cache:clear
php artisan config:clear
Usage
In app/Console/Kernel.php add command for integration with the time that you need for integration! When cron begin working you see result in database
$schedule->command('integration:get-users')->hourly(); // for users $schedule->command('integration:get-events')->everyFiveMinutes(); // for deals, companies, leads..