php-amqplib
The most widely used PHP client for RabbitMQ
File Explorer
Download Latest Version (.zip)- .gitkeep
- enabled_plugins
- gha-log-check.sh
- gha-setup.sh
- rabbitmq.conf
- 1_Bug_report.md
- 2_Feature_request.md
- 3_Support_question.md
- changelog.yml
- code-style.yml
- documentation.yml
- phpunit.yml
- CODE_OF_CONDUCT.md
- consumer.php
- file_consume.php
- file_publish.php
- producer.php
- socket_tmp_produce.php
- stream_tmp_produce.php
- amqp_connect_multiple_hosts.php
- amqp_consumer.php
- amqp_consumer_exclusive.php
- amqp_consumer_fanout_1.php
- amqp_consumer_fanout_2.php
- amqp_consumer_non_blocking.php
- amqp_consumer_pcntl_heartbeat.php
- amqp_consumer_signals.php
- amqp_message_headers_recv.php
- amqp_message_headers_snd.php
- amqp_publisher.php
- amqp_publisher_exclusive.php
- amqp_publisher_fanout.php
- amqp_publisher_with_confirms.php
- amqp_publisher_with_confirms_mandatory.php
- basic_cancel.php
- basic_get.php
- basic_nack.php
- basic_qos.php
- basic_return.php
- batch_publish.php
- config.php
- connection_recovery_consume.php
- delayed_message.php
- e2e_bindings.php
- queue_arguments.php
- ssl_connection.php
- AMQPMessage.md
- Dockerfile
- AbstractChannel.php
- AMQPChannel.php
- Frame.php
- Method.php
- AbstractSignalHeartbeatSender.php
- PCNTLHeartbeatSender.php
- SIGHeartbeatSender.php
- AbstractConnection.php
- AMQPConnectionConfig.php
- AMQPConnectionFactory.php
- AMQPLazyConnection.php
- AMQPLazySocketConnection.php
- AMQPLazySSLConnection.php
- AMQPSocketConnection.php
- AMQPSSLConnection.php
- AMQPStreamConnection.php
- AMQPBasicCancelException.php
- AMQPChannelClosedException.php
- AMQPConnectionBlockedException.php
- AMQPConnectionClosedException.php
- AMQPDataReadException.php
- AMQPEmptyDeliveryTagException.php
- AMQPExceptionInterface.php
- AMQPHeartbeatMissedException.php
- AMQPInvalidArgumentException.php
- AMQPInvalidFrameException.php
- AMQPIOException.php
- AMQPIOWaitException.php
- AMQPLogicException.php
- AMQPNoDataException.php
- AMQPNotImplementedException.php
- AMQPOutOfBoundsException.php
- AMQPOutOfRangeException.php
- AMQPProtocolChannelException.php
- AMQPProtocolException.php
- AMQPRuntimeException.php
- AMQPSocketException.php
- AMQPTimeoutException.php
- AMQPExchangeType.php
- MethodMap080.php
- MethodMap091.php
- Protocol080.php
- Protocol091.php
- Wait080.php
- Wait091.php
- Assert.php
- BigInteger.php
- DebugHelper.php
- MiscHelper.php
- SocketConstants.php
- AMQPMessage.php
- AbstractIO.php
- SocketIO.php
- StreamIO.php
- AMQPAbstractCollection.php
- AMQPArray.php
- AMQPBufferReader.php
- AMQPByteStream.php
- AMQPDecimal.php
- AMQPIOReader.php
- AMQPReader.php
- AMQPTable.php
- AMQPWriter.php
- Constants.php
- Constants080.php
- Constants091.php
- Package.php
- amqp-rabbitmq-0.8.json
- amqp-rabbitmq-0.9.1.json
- parser.php
- ceaa4eda.0
- ca_certificate.pem
- ca_key.pem
- client_certificate.pem
- client_key.pem
- server_certificate.pem
- server_key.pem
- Bug256Test.php
- Bug40Test.php
- Bug458Test.php
- Bug49Test.php
- ChannelConsumeTest.php
- ChannelTestCase.php
- ChannelTimeoutTest.php
- ChannelWaitTest.php
- DirectExchangeTest.php
- HeadersExchangeTest.php
- TopicExchangeTest.php
- PCNTLHeartbeatSenderTest.php
- SIGHeartbeatSenderTest.php
- SignalHeartbeatTest.php
- AMQPStreamConnectionTest.php
- ConnectionAuthTest.php
- ConnectionClosedTest.php
- ConnectionCreationTest.php
- ConnectionResourceLeakTest.php
- ConnectionUnresponsiveTest.php
- SSLConnectionTest.php
- AMQPMessageTest.php
- AbstractConnectionTest.php
- FileTransferTest.php
- ReconnectConnectionTest.php
- StreamIOTest.php
- ToxiProxy.php
- AMQPChannelTest.php
- AbstractConnectionTest.php
- AMQPConnectionConfigTest.php
- AMQPSocketConnectionTest.php
- AMQPStreamConnectionTest.php
- LazyConnectionTest.php
- LibraryPropertiesTest.php
- Protocol091Test.php
- MiscHelperTest.php
- AMQPMessageTest.php
- BufferIO.php
- TestChannel.php
- TestConnection.php
- SocketIOTest.php
- StreamIOTest.php
- AMQPCollectionTest.php
- AMQPDecimalTest.php
- AMQPReaderTest.php
- AMQPWriterTest.php
- WireTest.php
- bootstrap.php
- config.php
- php_compat_71.php
- phpinfo.php
- rabbitmq.conf
- wait_broker.php
- .editorconfig
- .gitattributes
- .github_changelog_generator
- .gitignore
- .gitmodules
- .scrutinizer.yml
- appveyor.yml
- CHANGELOG.md
- codecov.yml
- composer.json
- CONTRIBUTING.md
- CREDITS
- docker-compose.yaml
- docs
- History.md
- LICENSE
- Makefile
- NOTE.DEVELOPMENT.NOV.2011.md
- NOTE.THENETCIRCLE.md
- phpcs.xml.dist
- phpunit.xml.dist
- README.md
- test.env
# Installation Guide
1. Get the code
git clone https://github.com/php-amqplib/php-amqplib
Downloads the entire project code from GitHub to your computer.
cd php-amqplib
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker compose up -d --build
Builds and starts all defined containers (server, database, etc.) at once, in the background.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
3. PHP (Composer)
EasyPrerequisites
composer require php-amqplib/php-amqplib
Type this command into your terminal and run it.
Run it with a built-in server like php -S localhost:8000, then open http://localhost:8000 in your browser.
Pulled directly from this repo's README.
4. Make
MediumPrerequisites
- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make benchmark
Compiles the code based on the generated build configuration to produce an executable.
If it finishes without errors, it worked. Try running the generated executable directly.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
