Skip to content
SmartCrowdPublic

About

Php library to communicate with Centrifuge version above 0.7

Resources

Stars

1 star

Watchers

4 watching

Forks

 
 

Latest commit

 

History

24 Commits

Folders and files

Repository files navigation

Phpcent

Php library to communicate with Centrifuge version above 0.7

Library is published on the Composer: https://packagist.org/packages/sl4mmer/phpcent

{
    "require": {
        "sl4mmer/phpcent":"dev-master",
    }
}

Full Centrifuge documentation http://centrifuge.readthedocs.org/en/latest/

Basic Usage

        
        $client = new \phpcent\Client("http://localhost:8000");
        $client->setProject("projectId","projectSecret");
        $client->publish("basic:main_feed",["message"=>"Hello Everybody"]);
        $history=$client->history("basic:main_feed")];
        

All api methods for managing channels has shortends. You can call other methods trough Client::send()

$client->send("namespace_create",["name"=>"newnamespace"])

You can use phpcent to create frontend token

	$data['token']=$client->setProject($data["project"],$secret)->buildSign($data["user"].$data["timestamp"]);         

About

Php library to communicate with Centrifuge version above 0.7

Resources

Stars

1 star

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages