Download the PHP package justinholtweb/craft-transport without Composer

On this page you can find all versions of the php package justinholtweb/craft-transport. 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 craft-transport

Transport

Safely migrate content between Craft CMS 5 environments — with automatic dependency resolution, field-level conflict review, asset transfer, multi-site support, and snapshot-based rollback.

Transport exports the content you choose into a portable, inspectable .zip package and imports it into another environment, resolving every reference by UID so nothing breaks when IDs differ between sites.

Features

Requirements

Installation

Updating

Craft records Transport's schema version in your project config when its migrations run, and normally writes that out to config/project/ as the command exits. If the environment has pending project config changes when you update, though, craft up applies config before writing the files, stops on the version mismatch, and returns early — so the new version never lands in the files:

The database is already migrated at that point; only the config files are behind. Check what's pending:

If none of it matters, php craft project-config/write regenerates the files with the new version. If you need those changes applied, set the version in config/project/project.yaml so the two agree:

then run php craft up again. Either way, commit the updated project config so other environments don't hit the same mismatch.

Exporting

Control panel: Transport → Export. Choose the site, the element types to include, optionally a section, whether to include dependencies, and whether to bundle asset files. Submitting queues the export — it runs in the background so a large site can't time out. When it finishes, download the package from Transport → History, and (if you asked to be notified) you'll get an email with the full report.

CLI: console runs are always synchronous — never queued — and stream their progress to the terminal, finishing with a detailed report:

--ids narrows every selected element type to those IDs (without --types, every type is searched, so the IDs decide). Include dependencies (--with-dependencies) also exports everything the selection references — related entries, categories, tags and assets, authors, structure parents — and what those reference in turn, so the package imports cleanly into an environment that has none of them. It stops at 10,000 added elements, and still leaves out anything the exporter can't view.

Unknown types, sites or IDs, a package name that isn't a plain filename, or an --output that can't be written exit non-zero.

Importing

Control panel: Transport → Import runs a four-step wizard:

  1. Upload the package.
  2. Configure — review every element with its action (Add / Update / Unchanged) and select which to import. Pre-flight validation flags missing sections, entry types, groups, or volumes.
  3. Preview — see field-level changes (current vs. incoming) and uncheck any field to keep the target's current value. Choose whether to be emailed when it finishes, or tick Dry run to simulate it.
  4. Run — real imports are queued and run in the background; their report appears in Transport → History when they finish. Dry runs report back immediately.

CLI: console runs are always synchronous — never queued — and stream their progress to the terminal, finishing with a detailed report:

transport/import/diff runs pre-flight validation and lists every element as add / update / unchanged; --verbose adds each changed field with the <uid>:<site>.<field> path that --keep-local takes (the wizard's unticked fields). --only imports just the listed UIDs (the wizard's selection). As in the wizard, a real import is refused (exit 65) while validation finds blocking problems; a dry run still goes ahead.

History & rollback

Transport → History lists every import and export, and is where queued exports are downloaded from. Open a run to see its full report — the elements added, updated, skipped and failed, broken down by type — along with any errors. Completed imports can be rolled back with one click — Transport restores updated elements to their prior state and deletes elements the import created. Rollbacks are snapshot-protected, so they can be undone too.

Control panel actions and their console commands

Control panel Console
Export → Queue export (site, types, section, package name, asset files, dependencies) transport/export --site --types --section --package-name --metadata-only --with-dependencies (--ids for chosen elements)
Import → Upload + Configure + Preview transport/import/diff <zip> [--verbose]
Import → Run (selection, unticked fields, dry run) transport/import <zip> [--only] [--keep-local] [--dry-run]
History transport/history
History → a run's report transport/history/view <id>
History → Download transport/history/download <id> [--output]
History → Roll back transport/rollback <id> [--dry-run]
Settings project config / config/transport.php

Console commands run inline, with the same services as the control panel, and exit non-zero on failure.

Permissions

Permission Lets someone
transport:export Queue exports, and download the packages they exported
transport:import Upload and run imports
transport:rollback Roll back completed imports

Any one of them opens Transport → History. Settings are admin-only.

These say who may run a migration. What it reads and writes is still bounded by the person's own Craft permissions:

Admins and console runs (craft transport/…) aren't limited.

Settings

What Transport does not do

Transport moves content, not schema. Sections, fields, entry types, volumes, and global sets are managed by Craft's Project Config. Transport's pre-flight validation checks that the required schema already exists in the target before importing.

Orders and other transactional Commerce data are intentionally excluded.

Extending

See docs/EXTENDING.md for registering custom element and field handlers via EVENT_REGISTER_ELEMENT_HANDLERS and EVENT_REGISTER_FIELD_HANDLERS.

Troubleshooting

License

Proprietary (Craft License). A valid license must be purchased through the Craft Plugin Store for each production install.


All versions of craft-transport with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-zip Version *
craftcms/cms Version ^5.3.0
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 justinholtweb/craft-transport contains the following files

Loading the files please wait ...