PHPackages                             c0ntax/deployment-tasks-bundle - 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. c0ntax/deployment-tasks-bundle

ActiveSymfony-bundle[DevOps &amp; Deployment](/categories/devops)

c0ntax/deployment-tasks-bundle
==============================

A symfony wrapper around c0ntax/deployment-tasks

06PHPCI failing

Since Jun 4Pushed 6y agoCompare

[ Source](https://github.com/c0ntax/deployment-tasks-bundle)[ Packagist](https://packagist.org/packages/c0ntax/deployment-tasks-bundle)[ RSS](/packages/c0ntax-deployment-tasks-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

c0ntax/deployment-tasks-bundle
==============================

[](#c0ntaxdeployment-tasks-bundle)

Introduction
------------

[](#introduction)

This is a Symfony bundle for the [c0ntax/deployment-tasks](https://github.com/c0ntax/deployment-tasks) library. It adds the ability to run deployment tasks once (and only once) so that you don't need to manually run adhoc scripts as part of your build/deployment process.

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

[](#installation)

Run

```
composer req c0ntax/deployment-tasks-bundle
```

Configuration
-------------

[](#configuration)

This package uses [knplabs/knp-gaufrette-bundle](https://github.com/KnpLabs/KnpGaufretteBundle) to store the tasks that have already been run, so a little bit of configuration for that package is required in order to get this up and running.

Firstly, you need to configure your 'memory'. This will be where we store all the tasks that have been performed so that we do not perform them again.

In `knp_gaufrette.yaml`

```
knp_gaufrette:
    adapters:
        tasks_local:
            service:
                id: c0ntax_deployment_tasks.gaufrette.adapter.local

        memory_local:
            local:
                directory: '%kernel.project_dir%/var/memory'

    filesystems:
        tasks:
            adapter: tasks_local
            alias: tasks_filesystem

        memory:
            adapter: memory_local
            alias: memory_filesystem
```

*NOTE:* Currently (until I can figure out how to get a symfony bundle to configure another symfony bundle) there is a bit of boilerplate that needs to be in the configuration. Just make sure that the `adapters.tasks_local` and `filesystems.tasks` is copied in as-is from above.

This will set up a local disk memory store within the project. Obviously you can configure it anywhere. With Gaufrette, you can configure it to [live almost anywhere](https://github.com/KnpLabs/KnpGaufretteBundle#configuring-the-adapters). So, you might want to store it in a database or and S3 bucket in your production environments. Simply add a new adapter and then change the adapter configured for `memory`

By default, the place that is used to store the tasks is located in `%kernel.project_root/src/DeploymentTasks`. If you wish to change this, you simply need to override one parameter:

```
parameters:
    c0ntax_deployment_tasks.directory.tasks: '%kernel.project_dir%/src/DeploymentTasks%'
```

Usage
-----

[](#usage)

Running it is pretty simple. To run pre-deployment tasks (i.e. you have built your application but you have yet to put it live)

```
./bin/console deployment:tasks:run Pre
```

And to run post-deployment tasks (i.e. your application is now live to the world):

```
./bin/console deployment:tasks:run Post
```

Err, that's it

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

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

---

Top Contributors

[![c0ntax](https://avatars.githubusercontent.com/u/1075300?v=4)](https://github.com/c0ntax "c0ntax (10 commits)")

### Embed Badge

![Health badge](/badges/c0ntax-deployment-tasks-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/c0ntax-deployment-tasks-bundle/health.svg)](https://phpackages.com/packages/c0ntax-deployment-tasks-bundle)
```

###  Alternatives

[deployer/deployer

Deployment Tool

11.0k25.4M207](/packages/deployer-deployer)[appwrite/server-ce

End to end backend server for frontend and mobile apps.

55.3k84.2k](/packages/appwrite-server-ce)[pragmarx/health

Laravel Server &amp; App Health Monitor and Notifier

2.0k1.0M2](/packages/pragmarx-health)[felixfbecker/language-server-protocol

PHP classes for the Language Server Protocol

22476.7M6](/packages/felixfbecker-language-server-protocol)[heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP and Apache2/Nginx as on Heroku

8161.3M10](/packages/heroku-heroku-buildpack-php)[tiamo/phpas2

PHPAS2 is a php-based implementation of the EDIINT AS2 standard

4674.7k](/packages/tiamo-phpas2)

PHPackages © 2026

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