Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 21, 2024 via composer

php-amqplib/php-amqplib v3.6.0

Formerly videlalvaro/php-amqplib. This library is a pure PHP implementation of the AMQP protocol. It's been tested against RabbitMQ.
Package summary
Share
1
issue
1
moderate severity
license
1
2
licenses
3
MIT
1
LGPL-2.1-or-later
Package created
10 Feb 2016
Version published
22 Oct 2023
Maintainers
2
Total deps
4
Direct deps
1
License
LGPL-2.1-or-later

Issues

1

1 moderate severity issue

moderate
Recommendation: Validate that the package complies with your license policy
via: php-amqplib/php-amqplib@v3.6.0
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
3 Packages, Including:
paragonie/constant_time_encoding@v2.6.3
paragonie/random_compat@v9.99.100
phpseclib/phpseclib@3.0.37

GNU Lesser General Public License v2.1 or later

Weakly Protective
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
php-amqplib/php-amqplib@v3.6.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of php-amqplib/php-amqplib 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
phpseclib/phpseclib3.0.37-MIT
prod

Visualizations

Frequently Asked Questions

What does php-amqplib/php-amqplib do?

The php-amqplib/php-amqplib library is a powerful tool for PHP developers, offering a pure PHP implementation of the AMQP 0-9-1 protocol. This library has been extensively tested against RabbitMQ. The AMQP Protocol, which stands for Advanced Message Queuing Protocol, allows for faster and more reliable cross-platform messaging between applications. Using php-amqplib/php-amqplib, developers can effectively communicate with RabbitMQ servers right from their PHP applications.

How do you use php-amqplib/php-amqplib?

To use php-amqplib/php-amqplib, you first need to install it using composer. In your terminal, run the command:

$ composer require php-amqplib/php-amqplib

This command will retrieve the library and its dependencies into your vendor folder. You then need to include the autoload.php file in your script:

require_once __DIR__.'/vendor/autoload.php';

You should then use the classes relevant to your application:

use PhpAmqpLib\Connection\AMQPStreamConnection;
use PhpAmqpLib\Message\AMQPMessage;

To look at an example of a publisher and a consumer, consider the following:

On your first terminal, start the consumer:

$ cd php-amqplib/demo
$ php amqp_consumer.php

On your second terminal, run:

$ cd php-amqplib/demo
$ php amqp_publisher.php some text to publish

You should see the message arrive at the process on the first terminal.

Where are the php-amqplib/php-amqplib docs?

Comprehensive documentation for php-amqplib/php-amqplib is conveniently available online. You can access the API Documentation at http://php-amqplib.github.io/php-amqplib/. Additionally, you can learn more about the usage of this library from the official RabbitMQ tutorials.