Skip to content
Tools for developers on Bitrix
Branch: 1.x
Clone or download
niksamokhvalov Merge pull request #18 from olegpro/readme-fix
Поправил неймспейсы для классов HlBlockTools, GroupTools и IblockTools в
Latest commit 93fe560 Jun 13, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Merge pull request #17 from denispugachev/add_id_key_validation_on_af… Mar 17, 2017
.gitignore Added .gitignore file Sep 24, 2015
composer.json Files and classes to src/ directory Oct 11, 2015


Build Status Latest Stable Version Total Downloads License

Tools for developers on Bitrix CMS:

  • IblockTools: finder info blocks and properties by IDs or symbol codes.
use Bex\Tools\Iblock\IblockTools;

$iblockFinder = IblockTools::find('iblock_type', 'iblock_code');

$iblockId = $iblockFinder->id();
$propEnumId = $iblockFinder->propEnumId('PROP_CODE', 'VALUE_XML_ID');

// And much more…
  • GroupTools: finder users groups by IDs or symbol codes.
use Bex\Tools\Group\GroupTools;

$groupFinder = GroupTools::find('group_code');

$groupId = $groupFinder->id();
$groupCode = GroupTools::findById(3)->code();

// And that's not all ;-)
  • HlBlockTools: finder for highloadblock IDs by it's names.
use Bex\Tools\HlBlock\HlBlockTools;

$hlBlockFinder = HlBlockTools::find('ReferenceName');

$hlBlockId = $hlBlockFinder->id();
$hlBlockName = HlBlockTools::findById(2)->name();
  • Catalog\GroupTools: finder for catalog groups (price types) by it's names? id's or "BASE" flag.
use Bex\Tools\Catalog\GroupTools;

$catalogGroupFinder = GroupTools::find('RETAIL');
$priceTypeId = $catalogGroupFinder->id();

$priceTypeName = GroupTools::findBase()->name();
  • Prevents the creation of infoblocks with the same codes.
  • Prevents the creation of user groups with the same string id.


Add library on your Composer:

composer require bitrix-expert/tools


See wiki and php docs in the classes of library.

You can’t perform that action at this time.