PHPackages                             centralapps/common-console-commands - 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. centralapps/common-console-commands

ActiveLibrary[CLI &amp; Console](/categories/cli)

centralapps/common-console-commands
===================================

Some common symfony console commands

v1.0(12y ago)05561MITPHPPHP &gt;=5.3.0

Since Dec 4Pushed 12y ago1 watchersCompare

[ Source](https://github.com/CentralApps/CommonConsoleCommands)[ Packagist](https://packagist.org/packages/centralapps/common-console-commands)[ RSS](/packages/centralapps-common-console-commands/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Common Symfony Console Commands
===============================

[](#common-symfony-console-commands)

This package provides some useful beanstalk related commands for a symfony console.

Included commands are:

- Delete beanstalk job (top of the queue is deleted)
- Flush a tube
- List tubes
- Peek ready a tube
- Get stats on a tube

Each command extends the AbstractPheanstalkCommand class, which provides a method for getting pheanstalk and setting a dependency injection container. Pheanstalk needs to be within an array or contained such as Pimple which implements \\ArrayAccess with the key on pheanstalk.

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

[](#installation)

Add the following to your composer.json file

```
"centralapps/common-console-commands": "dev-master"

```

Install / update composer.

Setup
-----

[](#setup)

Create a console file within your application; you need to provide a setup pheanstalk object connected to your beanstalkd service.

```
#!/usr/bin/env php
