PHP code example of integration-helper / integration-version-laravel-server

1. Go to this page and download the library: Download integration-helper/integration-version-laravel-server 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/ */

    

integration-helper / integration-version-laravel-server example snippets


     public function save(array $options = [])
    {
        $result = parent::save($options);

        Context::getInstance()->getIntegrationVersionManager()->executeOne(Seeder::SOURCE, $this->id);

        return $result;
    }

use IntegrationHelper\IntegrationVersionLaravelServer\Jobs\RunReindexQueue;

        $sourceCode = 'product_inventory';
       
        dispatch(new RunReindexQueue($sourceCode))->handle();


use IntegrationHelper\IntegrationVersion\Context;
        $sourceCode = 'product_inventory';

        Context::getIntegrationVersionManager()->executeFull($sourceCode);