PHPackages                             yokai/safe-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. yokai/safe-command-bundle

ActiveSymfony-bundle

yokai/safe-command-bundle
=========================

Prevent from running dangerous commands, or unwanted environment, based on configuration.

v2.0.0(2y ago)1141MITPHPPHP &gt;=8.1

Since Dec 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/yokai-php/safe-command-bundle)[ Packagist](https://packagist.org/packages/yokai/safe-command-bundle)[ RSS](/packages/yokai-safe-command-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (5)Versions (7)Used By (0)

YokaiSafeCommandBundle
======================

[](#yokaisafecommandbundle)

[![Tests](https://camo.githubusercontent.com/6ea97a8b0d736715b87eabd4af4e9fe8e98b4af83494d543fe310d4c633fca80/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f796f6b61692d7068702f736166652d636f6d6d616e642d62756e646c652f74657374732e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265266c6162656c3d7465737473)](https://github.com/yokai-php/safe-command-bundle/actions)[![Coverage](https://camo.githubusercontent.com/b788eb78f8f18ea5d1b7c32b18cbff7d452b014d2853b0fc8f03300e30158d79/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f796f6b61692d7068702f736166652d636f6d6d616e642d62756e646c653f7374796c653d666c61742d737175617265)](https://codecov.io/gh/yokai-php/safe-command-bundle)[![Contributors](https://camo.githubusercontent.com/d52293d8934dbfa20a620995a9f12fc7b65646440f708dac9043eb2e11ce9487/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f796f6b61692d7068702f736166652d636f6d6d616e642d62756e646c653f7374796c653d666c61742d737175617265)](https://github.com/yokai-php/safe-command-bundle/graphs/contributors)

[![License](https://camo.githubusercontent.com/4a8c7d026a4459ed411e39ce1eee09c462d467c2b65ab9a8ab7e25835b6597c5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f796f6b61692f736166652d636f6d6d616e642d62756e646c653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yokai/safe-command-bundle/stats)[![Latest Stable Version](https://camo.githubusercontent.com/a0c55b2d269359dd0262b1044b50d43b3bd0b7d8917010f00e39359ad160cec8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f796f6b61692f736166652d636f6d6d616e642d62756e646c653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yokai/safe-command-bundle)[![Current Unstable Version](https://camo.githubusercontent.com/55625b6662f0c9bb2fe49c7841d6bf5faa237a28b9c5fb9b57cbbf0045009635/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f796f6b61692f736166652d636f6d6d616e642d62756e646c653f696e636c7564655f70726572656c6561736573267374796c653d666c61742d737175617265)](https://packagist.org/packages/yokai/safe-command-bundle)[![Downloads Monthly](https://camo.githubusercontent.com/fdeee6dac1435d57f0ec4954b6e602a17f88310b5c2d6ebb39e489661c078013/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f796f6b61692f736166652d636f6d6d616e642d62756e646c653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yokai/safe-command-bundle/stats)[![Total Downloads](https://camo.githubusercontent.com/32be42c3edecd2d068a9cac0bf6bb416808014918bbea5a83c700877877a3819/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f796f6b61692f736166652d636f6d6d616e642d62756e646c653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yokai/safe-command-bundle/stats)

Did you find yourself ashamed, running command in the wrong environment ?

"Oups... I dropped the database in the prod environment..." - A guy that lost his job

This bundle want to help. Using configuration, define commands that you are not expecting to be used in your environment.

That's it...

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

[](#installation)

### Add the bundle as dependency with Composer

[](#add-the-bundle-as-dependency-with-composer)

```
composer require yokai/safe-command-bundle
```

### Enable the bundle in the kernel

[](#enable-the-bundle-in-the-kernel)

```
