PHPackages                             turbine-kreuzberg/spryker-deploy-tasks - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. turbine-kreuzberg/spryker-deploy-tasks

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

turbine-kreuzberg/spryker-deploy-tasks
======================================

Deploy tasks for Spryker to execute once after deployment based on the environment and store

1.1.0(9mo ago)18.3k↓35.7%[3 PRs](https://github.com/turbine-kreuzberg/spryker-deploy-tasks/pulls)MITPHPPHP &gt;=8.1CI passing

Since Oct 18Pushed 2mo ago5 watchersCompare

[ Source](https://github.com/turbine-kreuzberg/spryker-deploy-tasks)[ Packagist](https://packagist.org/packages/turbine-kreuzberg/spryker-deploy-tasks)[ RSS](/packages/turbine-kreuzberg-spryker-deploy-tasks/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (12)Versions (14)Used By (0)

Spryker Deploy Tasks
====================

[](#spryker-deploy-tasks)

This package provides a functionality for Spryker to execute one-time tasks after a deployment based on the environment and store.

- [Installation](#installation)
- [Usage](#usage)
- [Configuration](#configuration)
- [Credits](#credits)
- [License](#license)

Installation
------------

[](#installation)

```
composer require [--dev] turbine-kreuzberg/spryker-deploy-tasks

```

Setup
-----

[](#setup)

To use the provided console commands you will need to register the namespace `TurbineKreuzberg` in `config/Shared/config_default.php`.

```
$config[KernelConstants::CORE_NAMESPACES] = [
    // add 'TurbineKreuzberg' as a core namespace
    'TurbineKreuzberg',
];
```

In `src/Pyz/Zed/Console/ConsoleDependencyProvider.php` you need to register the console command plugin for deploy tasks.

```
use TurbineKreuzberg\Zed\DeployTasks\Communication\Console\DeployTasksCreateConsole;
use TurbineKreuzberg\Zed\DeployTasks\Communication\Console\DeployTasksExecuteConsole;

    protected function getConsoleCommands(Container $container): array
    {
        $commands = [
            // other registered console plugins ...

            new DeployTasksCreateConsole(),
            new DeployTasksExecuteConsole(),
        ];
```

Then you should see a new section `deploy` in the console command list:

```
 deploy
  deploy:tasks:create   Generate new yml file for deploy tasks
  deploy:tasks:execute  Execute all deploy tasks

```

Usage
-----

[](#usage)

### Create new deploy task file

[](#create-new-deploy-task-file)

```
vendor/bin/console deploy:tasks:create
```

This will create a new YAML file with an auto-generated name containing the current timestamp (e.g. `tasks.1697540350.yml`) and this content:

```
tasks:
# add new deploy tasks as an array to this file

# a task has to be an item with the mandatory keys 'command', 'execute_for_store' and 'execute_on'
# - the value for 'command' should be an executable shell command line (multiple commands and options possible)
# - the entries for 'execute_for_store' have to match the value of env var APPLICATION_STORE
# - the entries for 'execute_on' have to match the value of env var SHOP_ENV (dev,int,stage,prd)
- command: "some/command/to/execute --with-option --another-option-with-value foo && some/other/command"
  execute_for_store:
  - DE
  - EN
  execute_on:
  - dev
  - int
  - stage
  - prd
# to skip executing a task in a particular environment, it needs to be
# removed from the 'execute_on' list
- command: "some/other/command/to/execute/everywhere/but/production"
  execute_for_store:
  - DE
  - EN
  execute_on:
  - dev
  - int
  - stage
# to skip executing a task in a particular store, it needs to be
# removed from the 'execute_for_store' list
- command: "some/other/command/to/execute/everywhere/only/for/store-en"
  execute_for_store:
  - EN
  execute_on:
  - dev
  - int
  - stage
  - prd
# task can have additional optional keys, e.g. 'description'
- command: "yet/another/command/to/execute"
  description: "description for yet another command to execute"
  execute_for_store:
  - DE
  - EN
  execute_on:
  - dev
  - int
  - stage
  - prd
```

You have to define explicitly for which stores and environments the task should be executed.
There is no 'all environments' or 'all stores' option. This should prevent accidental execution of tasks in environments or stores where they should not be executed.

### Execute deploy tasks

[](#execute-deploy-tasks)

```
vendor/bin/console deploy:tasks:execute
```

This command will execute deploy tasks from all YAML files that have not been executed for the current environment and store yet. Executed tasks will be logged in a new table `txb_deploy_tasks` in the database. The mechanism is very much the same as for Propel migrations.

Credits
-------

[](#credits)

- [All Contributors](../../../-/graphs/main)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance73

Regular maintenance activity

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~83 days

Recently: every ~46 days

Total

9

Last Release

279d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fe66c182ebe0cea533fa24041957f2800e6aa928060568b3ae37a7e92ebb5d38?d=identicon)[bazoo0815](/maintainers/bazoo0815)

---

Top Contributors

[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (49 commits)")[![berndalter-txb](https://avatars.githubusercontent.com/u/4046983?v=4)](https://github.com/berndalter-txb "berndalter-txb (12 commits)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/turbine-kreuzberg-spryker-deploy-tasks/health.svg)

```
[![Health](https://phpackages.com/badges/turbine-kreuzberg-spryker-deploy-tasks/health.svg)](https://phpackages.com/packages/turbine-kreuzberg-spryker-deploy-tasks)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
