1. Go to this page and download the library: Download bitrix24/b24phpsdk 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/ */
bitrix24 / b24phpsdk example snippets
declare(strict_types=1);
use Bitrix24\SDK\Services\ServiceBuilderFactory;
::createServiceBuilderFromWebhook('INSERT_HERE_YOUR_WEBHOOK_URL');
// call some method
var_dump($b24Service->getMainScope()->main()->getApplicationInfo()->applicationInfo());
// call core for method in not implemented service
var_dump($b24Service->core->call('user.current'));
declare(strict_types=1);
use Bitrix24\SDK\Core\Credentials\ApplicationProfile;
use Bitrix24\SDK\Services\ServiceBuilderFactory;
use Symfony\Component\HttpFoundation\Request;
shell
php -f webhook-example.php
shell
sudo php -S 127.0.0.1:80
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.