01/01
2018
dev-master
9999999-devPHPMQ Client
MIT
The Requires
The Development Requires
PHPMQ Client
The PHPMQ client to send, consume and acknowledge messages in interaction with the PHPMQ server., (*2)
composer require php-mq/client
<?php declare(strict_types=1); namespace YourVendor\YourProject; use PHPMQ\Client\Client; use PHPMQ\Client\Types\QueueName; use PHPMQ\Client\Sockets\ClientSocket; use PHPMQ\Client\Sockets\Types\NetworkSocket; $networkSocket = new NetworkSocket( '127.0.0.1', 9100 ); $clientSocket = new ClientSocket( $networkSocket ); $client = new Client( $clientSocket ); $client->sendMessage( new QueueName( 'Example-Queue' ), 'This is an example message.' ); $client->disconnect();
Contributions are welcome and will be fully credited. Please see the contribution guide for details., (*3)
PHPMQ Client
MIT