PHP code example of crutch / producer-amqp

1. Go to this page and download the library: Download crutch/producer-amqp library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

crutch / producer-amqp example snippets




$producer = new Crutch\AmqpProducer\AmqpProducer('localhost', 5672, 'user', 'password');
$producer->produce('message 1', 'one');