PHP code example of obuchmann / bitrix-api
1. Go to this page and download the library: Download obuchmann/bitrix-api 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/ */
obuchmann / bitrix-api example snippets
use Obuchmann\BitrixApi\BitrixApi;
class YourClass {
public function __construct(
private BitrixApi $api,
)
{}
public function getCompanies(){
return $this->api->request('crm.company.list')->select([
"TITLE",
])->all();
}
}