Installation
Two commands, and nothing to configure before the first export.
Requirements
- Craft CMS 5.3 or later
- PHP 8.2 or later
- The
zip,domandjsonPHP extensions
Those extensions are present in every supported Craft install — Craft itself needs json and dom, and ships with the libraries Archive uses for ZIP and YAML output. Archive adds no runtime dependencies of its own.
With Composer
composer require justinholtweb/craft-archive
php craft plugin/install archive
From the Plugin Store
Or install it from the control panel: Settings → Plugins, search for Archive, and install. It’s free, so there’s no trial and no license to enter.
Check it worked
An Archive item appears in the control panel sidebar with three sub-pages — Export, Bundles and Settings. From the command line:
php craft archive/bundles
which should answer No bundles yet.
Storage
Bundles are written to @storage/archive/bundles and staged in @storage/archive/tmp while they’re being built. Both directories are created on demand, and both are inside storage/, which Craft already keeps out of the webroot and out of version control. Point them elsewhere in the settings if you’d rather.
Uninstalling
php craft plugin/uninstall archive
This drops Archive’s ledger table. The bundle files themselves are left on disk — delete storage/archive/ by hand if you want them gone too.