PHP code example of spryker-sdk / upgrader

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

    

spryker-sdk / upgrader example snippets

bash
export UPGRADE_STRATEGY=composer
bash
export RELEASE_GROUP_PROCESSOR=sequential
bash
export THRESHOLD_RELEASE_GROUP=<number>
bash
export SOFT_THRESHOLD_MAJOR=<number>
bash
export SOFT_THRESHOLD_MINOR=<number>
bash
export SOFT_THRESHOLD_PATCH=<number>
bash
export ACCESS_TOKEN=<GITHUB_TOKEN>
bash
export ORGANIZATION_NAME=<ORGANIZATION>
bash
export REPOSITORY_NAME=<REPOSITORY>
bash
export ACCESS_TOKEN=<GITLAB_TOKEN>
bash
export PROJECT_ID=<PROJECT_ID>
bash
export ACCESS_TOKEN=<AZURE_TOKEN>
bash
export ORGANIZATION_NAME=<ORGANIZATION_NAME>
bash
export PROJECT_NAME=<PROJECT_NAME>
# OR
export PROJECT_ID=<PROJECT_ID>
bash
export REPOSITORY_NAME=<REPOSITORY_NAME>
# OR
export REPOSITORY_ID=<REPOSITORY_ID>
bash
export APP_ENV=sprykerci
bash
export REPORTING_ENABLED=true
bash
bin/console upgradability:php:upgrade
bash
export UPDATE_FEATURES_TO_DEV_MASTER=true
bash
export INTEGRATOR_ENABLED=true
bash
export PACKAGE_UPGRADE_ONLY=true
bash
export EVALUATOR_ENABLED=true
bash
export RELEASE_GROUP_ID=123