Download the PHP package apsconnect/connect-sdk-migration-framework without Composer

On this page you can find all versions of the php package apsconnect/connect-sdk-migration-framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package connect-sdk-migration-framework

Connect Migration Middleware

Build Status Latest Stable Version License codecov

Small middleware to ease the service migration from legacy to Connect

Installation

Install via composer:

Usage

Once we have the package installed we need to create a new service provider to inject the middleware into our connector. We need to provide some basic configuration to our migrations service in order to properly migrate the incoming old data.

Configuration parameters

Parameter Type Description
logger Psr\Log\LoggerInterface The logger instance of our connector.
migrationFlag string The name of the Connect parameter that stores the legacy data in json format. Default value is migration_info
serialize bool If true will automatically serialize any non-string value in the migration data on direct assignation flow. Default value is false
validation callable Custom validation function. Not defined by default.
onSuccess callable Custom function to execute on migration success. Not defined by default.
onFail callable Custom function to execute on migration fail. Not defined by default.
transformations array Assoc array with the connect param id as key and the rule to process the parameter value from the legacy data. Default value is an empty array.

Input parameters:

Next we need to add this service provider to our configuration json:

And in our ProductFulfillment.php:

Exceptions

The connect migration middleware uses two different exceptions:

Exception Description
MigrationParameterFailException Can be thrown if any parameter fails on validation and/or transformation, an error will be logged for that parameter, the migration will fail, the fulfillment will be skipped.
MigrationAbortException The migration will directly fail, the fulfillment will be skipped.
MigrationParameterPassException Parameter process will be omitted, other parameters will continue normally.

All versions of connect-sdk-migration-framework with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
ext-json Version *
apsconnect/connect-sdk Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package apsconnect/connect-sdk-migration-framework contains the following files

Loading the files please wait ....