Provides asynchronous queue for Symfony projects

v2.0.2 2021-12-01 12:48 UTC

This package is auto-updated.

Last update: 2023-08-29 02:24:18 UTC


PHP library for executing queued commands


Adding to queue


use Ambientia\QueueCommand\QueueCommandEntity;
use App\MyModule\MyService;
use Doctrine\Common\Persistence\ObjectManager;

$queueCommand = new QueueCommandEntity();

/** @var ObjectManager $entityManager */

Creating queue command

namespace App\MyModule;

class MyService
    public function execute(int $arg1)

        //do some stuff
        $result = $arg1 + 1;

        // return some message if needed
        return "$arg1 processed ro $result";


Add cron

* * * * * ambientia:queue-command:execute >> /path/to/log/file 2>&1

add data cleaner


Run docker docker-composer up -d

Bash to container docker/


  • remove container dependency
  • todo replace merge it with find in EntityProcessor
  • todo add waiting / persistent running
  • add data cleaner interface

Running code fixer

Run php cs fixer ./vendor/bin/php-cs-fixer fix

Running the tests

Run tests with phpunit ./vendor/bin/phpunit

Running analyzer

Run phan ./vendor/bin/phan