Skip to content

huasx/nsq-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nsq-php

nsq client for php NSQ php http clinet

Add the dependency to composer.json:

"repositories": [ { "type": "git", "url": "git@github.com:huasx/nsq-php.git" }, }, .... "require": { "job/nsq-php": "1.*" } 

Run:

compsoer update 

Use:

<?php use Job\Nsq\Http\NsqClient; $host = '127.0.0.1'; $port = 4151; $topic = 'test'; $client = new NsqClient($host,$port,$topic); $nsqData = '{ccc:ssss}'; $ret = $client->pub($nsqData); if($ret){ //ok }else{ //failure } 

About

nsq client for php

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages