joesoeph / nsq-client-producer
Send whatsapp or email to NSQ server
Installs: 31
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/joesoeph/nsq-client-producer
Requires
- php: ^7.2.5
- guzzlehttp/guzzle: ^6.1
This package is auto-updated.
Last update: 2026-01-12 16:08:18 UTC
README
Description
Simple send email or whatsapp to NSQ server without hasle. You need to setup your NSQ server before using this package.
How to use
- Install via composer
composer require joesoeph/nsq-client-producer - Open file
example.phpor run via commandphp -S localhost:8585from this package folder - Done :)
Example code
<?php
require_once('vendor/autoload.php');
use NSQClientProducer\Send;
$sendTo = new Send([
'waURL' => 'http://example.com/pub?topic=whatsapp',
'emailURL' => 'http://example.com/pub?topic=email',
]);
$sendWA = $sendTo->sendWhatsapp('6283399900011', 'Your WA message');
$sendEmail = $sendTo->sendEmail('some-people@mailinator.com', 'Your email message', 'Your email suject');
echo $sendEmail;
License
MIT