Since Jan 8, 2014, you cat set message properties using RabbitMQ Bundle, you can review the commit here

Now, when you publish a message you cat set the array $additionalProperties

public function publish($msgBody, $routingKey = '', $additionalProperties = array())


You can find the supported message properties here

For example: 

$msg = ['arg1' =&gt; 'val1'];
$queue-&gt;setContentType('application/json');
$queue-&gt;publish(
        json_encode($msg),
        "",
        ['expiration' =&gt; '50000']
);


If you want to use "headers" for custom headers, it is a bit more complicated because you have to define the datatype for each value. To send, e.g. $headers['arg1'] = "val1" like a string, you have to do something like that:

$msg = ['arg1' =&gt; 'val1'];
$queue-&gt;setContentType('application/json');
$queue-&gt;publish(
        json_encode($msg),
        "",
        ["application_headers" =&gt; ["arg1" =&gt; ["S", "val1"]]]
);


Valid datatypes are:

S - String

I - Integer

D - Decimal

T - Timestamps

F - Table

A - Array

rabbitmq set message Properties php
I'm thinking in particular of dictionaries or illuminated bibles being displayed on these stands, which are at least waist-high on a standing person, constructed of wood.  Is there a particular word for this, other than "book stand"?
