Download the PHP package soviann/deploy-tasks-bundle without Composer

On this page you can find all versions of the php package soviann/deploy-tasks-bundle. 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 deploy-tasks-bundle

DeployTasksBundle

CI Coverage Latest Stable Version License

A Symfony bundle for running one-time deploy tasks — data migrations, cache warmups, seed scripts — via CLI. Each task is tracked so it executes exactly once across deployments.

Status: pre-1.0. Public API and configuration may change without a major-version bump until v1.0.0. Breaking changes bump the minor version and are documented in UPGRADE.md.

Requirements

Installation

With Symfony Flex, the bundle is registered automatically. Without Flex, register it manually in config/bundles.php:

Flex recipe

The bundle's Flex recipe lives in symfony/recipes-contrib. When Contrib recipes are enabled, composer require soviann/deploy-tasks-bundle registers the bundle, publishes config/packages/soviann_deploy_tasks.yaml, installs the host runner (bin/deploy-tasks-host.sh), and adds the host-task .gitignore entries automatically. Flex asks once per project before running a Contrib recipe — answer yes, or enable them permanently:

The recipe is optional — without it, the bundle works with its default configuration, and deploytasks:host:install scaffolds the host runner on demand.

Alternative: dedicated recipe endpoint Prefer not to enable Contrib recipes globally? The same recipe is also served from a dedicated endpoint:

Quick Start

Creating a task

Running tasks

Execute all pending tasks:

Check the status of all tasks:

Configuration

Full reference: docs/installation.md.

Storage Backends

Filesystem (default): stores execution records as files in var/deploy-tasks/. No additional dependencies required.

Database: stores execution records in a database table. Requires doctrine/dbal.

Custom: plug in any TaskStorageInterface implementation via storage.type: custom. See docs/storage.md.

Task Groups

Tasks can be assigned to one or more groups (e.g. predeploy, postdeploy) to split a deploy into named stages. Without --group, every command operates on every slot — the default (ungrouped) slot and every declared group; --group=<name> (repeatable) narrows to the tasks declaring the listed group(s), and a multi-group task records one row per matching slot.

See docs/commands.md for details.

Host-scope tasks

Host tasks run outside the Symfony container — useful for operations that must execute on the host (Docker restarts, SSH-driven commands, infrastructure prep). The host runner (bin/deploy-tasks-host.sh) is installed automatically by the Flex recipe; without it, one command scaffolds everything:

This installs the runner script (executable), creates the configured host-task directory (default deploy/host-tasks/, with a .gitkeep), and adds a Flex-style .gitignore block for the runner's log, lock, and local-override files — each step idempotent. Re-run with --force to refresh the runner after a bundle update. See docs/host-tasks.md for generation, execution, .env cascade, and concurrency details.

Commands

Command Description Options
deploytasks:run Execute pending tasks --dry-run, --rerun-all, --id=<id>, --group=<name> (repeatable), --require-some
deploytasks:status List tasks with their execution state --no-state, --group=<name> (repeatable), --filter-status=<comma-list>
deploytasks:show <id> Show full metadata and every stored execution record for a single task
deploytasks:skip <id> Mark a task as skipped (interactive confirm) --group=<name> (repeatable)
deploytasks:reset <id> Clear the execution record for a task (interactive confirm) --no-interaction, --group=<name> (repeatable), --force
deploytasks:rollup Clear history and mark all tasks as executed --no-interaction, --group=<name> (repeatable), --force
deploytasks:generate Generate a blank deploy task (PHP class, runs inside the Symfony container) --dir, --namespace
deploytasks:create-schema Create the storage schema (storages implementing SchemaManageableInterface) --dump-sql
deploytasks:host:install Install the host runner, the configured host-task directory, and the .gitignore block (idempotent) --force
deploytasks:host:generate Generate a blank deploy task (bash script, runs on the host outside the container) --dir
deploytasks:host:skip <id> Mark a host-scope task as done in the completion log (interactive confirm)
deploytasks:host:reset <id> Remove a host-scope task's completion-log entry --no-interaction, --force
deploytasks:host:rollup Mark every pending host-scope task as done --no-interaction, --force
deploytasks:host:config Render (or write) the host runner env config matching soviann_deploy_tasks.host.* --write

Running shell commands

Tasks that shell out to external binaries can opt into the ProcessRunnerTrait, which wraps symfony/process to stream output and enforce a per-call timeout. See docs/creating-tasks.md for setup and behavior notes.

Documentation

Full index: docs/index.md.

Topic File
Installation, requirements, optional packages docs/installation.md
Creating tasks (attributes, env/group filtering, IDs) docs/creating-tasks.md
Console commands reference docs/commands.md
Storage backends (filesystem, database, custom) docs/storage.md
Host-scope tasks (host runner, .env cascade, concurrency) docs/host-tasks.md
Lifecycle events docs/events.md
Logging (PSR-3, Monolog channel) docs/logging.md
Testing (unit, functional, command tester) docs/testing.md
Security model, host runner hardening docs/security.md
Advanced (custom sorter, locking, slow-task threshold, transactions) docs/advanced.md
Troubleshooting / FAQ docs/troubleshooting.md

Project meta: CONTRIBUTING.md (local dev setup and PR conventions).

Security

Failure logs from DBAL-backed storage are scrubbed of full exception objects to avoid leaking connection credentials into shared log sinks. See docs/security.md for the full trust model and hardening notes.

Contributing

See CONTRIBUTING.md for guidelines.

License

MIT. See LICENSE for details.


All versions of deploy-tasks-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
psr/clock Version ^1.0
psr/log Version ^3.0
symfony/config Version ^6.4 || ^7.0 || ^8.0
symfony/console Version ^6.4 || ^7.0 || ^8.0
symfony/dependency-injection Version ^6.4 || ^7.0 || ^8.0
symfony/event-dispatcher-contracts Version ^2.5 || ^3.0
symfony/filesystem Version ^6.4 || ^7.0 || ^8.0
symfony/finder Version ^6.4 || ^7.0 || ^8.0
symfony/http-kernel Version ^6.4 || ^7.0 || ^8.0
symfony/string Version ^6.4 || ^7.0 || ^8.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 soviann/deploy-tasks-bundle contains the following files

Loading the files please wait ...