Git Product home page Git Product logo

php-amqplib-example's Introduction

Example PHP code for using RabbitMQ

Getting started

  • Clone the repo
  • Install Composer if you don't already have it installed
  • run php composer.phar install
  • set url to CloudAMQP export CLOUDAMQP_URL=amqp://....
  • run php index.php

Deploy to Heroku

Deploy

php-amqplib-example's People

Contributors

baelter avatar carlhoerberg avatar dentarg avatar dependabot-preview[bot] avatar friism avatar johanrhodin avatar snichme avatar walro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-amqplib-example's Issues

Notice: Trying to get property 'body' of non-object in

After run the file get error, and not message goes to failure queues

Notice: Trying to get property 'body' of non-object in

Notice: Trying to get property 'delivery_info' of non-object in

Notice: Trying to access array offset on value of type null

Fatal error: Uncaught PhpAmqpLib\Exception\AMQPProtocolChannelException: PRECONDITION_FAILED - unknown delivery tag 0 in G:\xampp10\htdocs\fr\swiftmailer\d29\rabbitmq\vendor\php-amqplib\php-amqplib\PhpAmqpLib\Channel\AMQPChannel.php:224 Stack trace: #0 [internal function]: PhpAmqpLib\Channel\AMQPChannel->channel_close(Object(PhpAmqpLib\Wire\AMQPReader)) #1 G:\xampp10\htdocs\fr\swiftmailer\d29\rabbitmq\vendor\php-amqplib\php-amqplib\PhpAmqpLib\Channel\AbstractChannel.php(217): call_user_func(Array, Object(PhpAmqpLib\Wire\AMQPReader)) #2 G:\xampp10\htdocs\fr\swiftmailer\d29\rabbitmq\vendor\php-amqplib\php-amqplib\PhpAmqpLib\Channel\AbstractChannel.php(374): PhpAmqpLib\Channel\AbstractChannel->dispatch('20,40', '\x01\x96,PRECONDITION...', NULL) #3 G:\xampp10\htdocs\fr\swiftmailer\d29\rabbitmq\vendor\php-amqplib\php-amqplib\PhpAmqpLib\Channel\AMQPChannel.php(207): PhpAmqpLib\Channel\AbstractChannel->wait(Array, false, 0) #4 G:\xampp10\htdocs\fr\swiftmailer\d29\rabbitmq\send.php(38): PhpAmqpLib\Channel\AMQPChannel->close() #5 in G:\xampp10\htdocs\fr\swiftmailer\d29\rabbitmq\vendor\php-amqplib\php-amqplib\PhpAmqpLib\Channel\AMQPChannel.php on line 224

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.