PHP code example of mindbox / marketing

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

    

mindbox / marketing example snippets


    
    $_SERVER["DOCUMENT_ROOT"] = realpath(dirname(__FILE__) . "/../../"); // путь к вашему DOCUMENT_ROOT
    $_SERVER["SERVER_NAME"] = "mysite.com"; // url вашего сайта без указания протокола
    
    ();
    }
    YmlFeedMindbox::start();

 $APPLICATION->IncludeComponent('mindbox:catalog.tracking', '', []);


   $APPLICATION->IncludeComponent('mindbox:catalog.tracking', '', []);
/bitrix/modules/mindbox/lib/Event.php
/bitrix/modules/mindbox/lib/YmlFeedMindbox.php
/bitrix/modules/mindbox/lib/QueueTable.php