PHP code example of arrilot / bitrix-hlblock-fields-fixer

1. Go to this page and download the library: Download arrilot/bitrix-hlblock-fields-fixer 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/ */

    

arrilot / bitrix-hlblock-fields-fixer example snippets




Arrilot\BitrixHLBlockFieldsFixer\ServiceProvider::register();

//  тип поля => тип столбца в mysql
// 'string' => 'varchar(255)',
// 'string_formatted' => 'varchar(255)',
// 'text' => 'text',
// 'boolean' => 'tinyint(1)',

Arrilot\BitrixHLBlockFieldsFixer\ServiceProvider::register(['text' => 'longtext']);