PHP Zuilip Client

2.0.0-beta 2020-01-05 23:31 UTC

This package is auto-updated.

Last update: 2024-05-06 09:02:40 UTC


I am working on a V2 of the client that is more up to date and is actually tested to work, please see the v2 branch for updates

Have been playing around with Zulip and noticed there was no PHP client... So I made one!


Using composer!

composer require mrferos/zulip-php:^0.1.0


Using the client is simple, instantiate it with the URL to your Zulip instance and pass the default authentication object (on a per request basis you can specify different authentication in case you need/want to send messages as different users per requests).


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

$client = new \Zulip\Client('http://localhost:9991');
$client->setDefaultAuthentication(new \Zulip\Authentication('', '7Rp5bNRVz1dSuDz4HhANaxlpNDcYb6GQ'));
    'to' => 'Denmark',
    'content' => 'content',
    'type' => \Zulip\Request\MessageParameters::TYPE_STREAM,
    'subject' => 'subject'

// or.. (this is what happens under the code if you pass an array)

$parameters = new \Zulip\Request\MessageParameters();
$parameters->setContent('Content of message');
$parameters->setSubject('This is the subject');



  • Write tests
  • Implement the rest of the API
  • More documentation!