Download the PHP package divineomega/uxdm-spatie-data-transfer-object without Composer
On this page you can find all versions of the php package divineomega/uxdm-spatie-data-transfer-object. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download divineomega/uxdm-spatie-data-transfer-object
More information about divineomega/uxdm-spatie-data-transfer-object
Files in divineomega/uxdm-spatie-data-transfer-object
Package uxdm-spatie-data-transfer-object
Short Description Spatie Data Transfer Object package for the UXDM data migrator
License LGPL-3.0-only
Informations about the package uxdm-spatie-data-transfer-object
🔀 UXDM Spatie Data Transfer Object
The UXDM Spatie Data Transfer Object package provides a UXDM source and destination for Data Transfer Objects that are created using the Spatie Data Transfer Object package.
If you have not used UXDM before to migrate your data, visit the UXDM GitHub repository to learn more.
Installation
To install the UXDM Spatie Data Transfer Object package, just run the following composer command.
UXDM Spatie Data Transfer Object Source
The UXDM Spatie Data Transfer Object source allows you to source data from a Spatie Data Transfer Object Collection.
Creating
To create a new Spatie Data Transfer Object source, you must provide it with a populated Spatie Data Transfer Object Collection.
The following example creates a Spatie Data Transfer Object source object, using a collection of users data transfer objects.
Assigning to migrator
To use the Spatie Data Transfer Object source as part of a UXDM migration, you must assign it to the migrator. This process is the same for most sources.
UXDM Spatie Data Transfer Object Destination
The UXDM Spatie Data Transfer Object destination allows you to migrate data into a Spatie Data Transfer Object Collection.
Creating
To create a new Spatie Data Transfer Object destination, you must provide it with a Spatie Data Transfer Object Collection, and the class name of a Spatie Data Transfer Object.
The following example creates a Spatie Data Transfer Object destination object, using an empty collection, and the name of a user data transfer object class.
Assigning to migrator
To use the Spatie Data Transfer Object destination as part of a UXDM migration, you must assign it to the migrator. This process is the same for most destinations.
Alternatively, you can add multiple destinations, as shown below. You can also specify the fields you wish to send to each destination by passing an array of field names as the second parameter.