PHPackages                             kaliop/lock-command-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. [CLI &amp; Console](/categories/cli)
4. /
5. kaliop/lock-command-bundle

ActiveSymfony-bundle[CLI &amp; Console](/categories/cli)

kaliop/lock-command-bundle
==========================

Features for Symfony commands

1.0.1(8y ago)0731[4 issues](https://github.com/kaliop/kaliop-lock-command-bundle/issues)MITPHP

Since Nov 21Pushed 7y ago3 watchersCompare

[ Source](https://github.com/kaliop/kaliop-lock-command-bundle)[ Packagist](https://packagist.org/packages/kaliop/lock-command-bundle)[ RSS](/packages/kaliop-lock-command-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (6)Versions (3)Used By (0)

Kaliop Lock Command Bundle
==========================

[](#kaliop-lock-command-bundle)

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

[](#installation)

### Configure repository

[](#configure-repository)

```
$ php composer.phar config repositories.kaliopConsoleBundle '{ "type": "vcs", "url": "https://github.com/kaliop/kaliop-lock-command-bundle.git" }'
```

### Install bundle

[](#install-bundle)

```
$ php composer.phar require kaliop/lock-command-bundle
```

### Add bundle to the Symfony kernel

[](#add-bundle-to-the-symfony-kernel)

```
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            ...
            new Kaliop\LockCommandBundle\LockCommandBundle(),
            ...
        ];
    }
}
```

### Remove bundle

[](#remove-bundle)

```
$ php composer.phar remove kaliop/lock-command-bundle
```

Usage
-----

[](#usage)

### Command locker

[](#command-locker)

This bundle gives the possibility to "lock" console commands in order to prevent concurrent execution.

In order to do so, you have to declare your command as a service and tag it with `lock: true`

```
services:
    test.console.command:
        class: AppBundle\Command\TestLockCommand
        tags:
            - { name: "console.command", lock: true }
```

As you can see, the `console.command` tag has available a new lock option, which can be set to either `true` or `false`. Commands registered with the lock option set to `true` will be locked at the command start event and unlocked at the command terminate or exception event.

Additionally, if needed, you can pass a `--no-lock` option on the command line when launching a command if you don't want the command to be locked for a single execution:

```
$ php bin/console kaliop:command:example --no-lock
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% 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 ~177 days

Total

2

Last Release

2966d ago

### Community

Maintainers

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

---

Top Contributors

[![bOnepain](https://avatars.githubusercontent.com/u/524298?v=4)](https://github.com/bOnepain "bOnepain (5 commits)")[![gggeek](https://avatars.githubusercontent.com/u/308634?v=4)](https://github.com/gggeek "gggeek (2 commits)")

---

Tags

consoleflockcommandlockkaliop

### Embed Badge

![Health badge](/badges/kaliop-lock-command-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/kaliop-lock-command-bundle/health.svg)](https://phpackages.com/packages/kaliop-lock-command-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k246.0M11.1k](/packages/symfony-framework-bundle)

PHPackages © 2026

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