PHPackages                             nebo15/drunken-russian - 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. [Database &amp; ORM](/categories/database)
4. /
5. nebo15/drunken-russian

ActiveLibrary[Database &amp; ORM](/categories/database)

nebo15/drunken-russian
======================

Tasks (queue) manager for PHP and MongoDB. 100% alcohol free.

1.0.7(8y ago)11.1k1MITPHPPHP &gt;=5.5.0

Since Nov 6Pushed 8y ago11 watchersCompare

[ Source](https://github.com/Nebo15/drunken-russian)[ Packagist](https://packagist.org/packages/nebo15/drunken-russian)[ RSS](/packages/nebo15-drunken-russian/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (9)Used By (1)

drunken-russian
===============

[](#drunken-russian)

Tasks manager for PHP and MongoDB. 100% alcohol free.

Install via Composer
--------------------

[](#install-via-composer)

Run in your project root:

```
$ composer require nebo15/drunken-russian:dev-master
```

Before you start
----------------

[](#before-you-start)

Create some useful indexes

```
$ vendor/bin/drunken --db=db_name init
```

Add a clearing task to cron

```
$ vendor/bin/drunken --db=db_name clear
```

Config
------

[](#config)

If you don't want use console options create config file *drunken.config.php* in the same directory, where script is called. Example of the config you can find in src directory.

Available fields:

- *db* - database name
- *workers-dir* - string or array, path where workers file are located
- *log\_path* - path for drunken logs
- *hipchat* - hipchat integration:
    - from - sender name
    - token
    - room

Also you can run drunken with option **--config="path\_to\_config"**

Example
-------

[](#example)

Adding a task to the queue.

```
