PHP code example of koreychenko / bim-core

1. Go to this page and download the library: Download koreychenko/bim-core 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/ */

    

koreychenko / bim-core example snippets


'migrations' => [
      "value" => [
          'migration_path' => 'local/migrations',
          'logging_path' => '_log/bim',
          'migration_table' => 'bim_migrations',
      ],
      'readonly' => true,
  ]
    
curl -s https://getcomposer.org/installer | php
 bash
php -r "readfile('https://raw.githubusercontent.com/cjp2600/bim/master/install');" | php
    
curl -s https://getcomposer.org/installer | php
bash
if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/vendor/autoload.php'))
    
 php
php vendor/bin/bim info
 bash
php composer.phar update
bash
php bim init
bash
php bim up
bash
php bim up 1423660766
bash
php bim up --from="29.01.2015 00:01" --to="29.01.2015 23:55"
bash
php bim up --tag=iws-123
 bash
php bim up --logging
bash
php bim down
 bash
php bim down 1423660766
bash
php bim down --from="29.01.2015 00:01" --to="29.01.2015 23:55"
bash
php bim down --tag=iws-123
 bash
php bim down --logging
bash
php bim ls
bash
php bim ls --n
bash
php bim ls --from="29.01.2015 00:01" --to="29.01.2015 23:55" 
 bash
php bim gen
 bash  
php bim gen IblockType:add --typeId=catalog --d="new description #iws-123"
 bash  
php bim gen Iblock:add --code=goods --d="new description #iws-123"
 bash  
php bim gen IblockProperty:add --code=goods --propertyCode=NEW_ITEM --d="new description #iws-123"
 bash  
php bim gen IHlblock:add --id=82 --d="new description #iws-123"
 bash  
php bim gen Group:add --id=5 --d="new description #iws-123"
 bash  
php bim gen Site:add --id=s1 --d="new description #iws-123"
 bash
php bim gen multi
 bash
php bim up --logging
 bash
php bim down --logging
 bash  
php bim info