PHP code example of vipblogger / laravel-bitrix24
1. Go to this page and download the library: Download vipblogger/laravel-bitrix24 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/ */
vipblogger / laravel-bitrix24 example snippets
use Vipblogger\LaravelBitrix24\Bitrix;
Route::get('/test1', function (Bitrix $bitrix) {
$result = $bitrix->call('lists.get', [
'IBLOCK_TYPE_ID' => 'lists_socnet',
'SOCNET_GROUP_ID' => 15
]);
var_dump($result);
});
Route::get('/test2', function (Bitrix $bitrix) {
$obB24User = new \Bitrix24\User\User($bitrix);
$arCurrentB24User = $obB24User->current();
var_dump($arCurrentB24User);
});