Skip to content

Commit a013bd4

Browse files
author
Luis Fonseca
committed
Prepare for 3.0.0 version release
1 parent 0073860 commit a013bd4

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 3.0.0 (2017-07-10)
2+
[NEW] Added namespaces (thanks [@vinkla](https://github.com/vinkla)).
3+
14
## 2.6.4 (2017-06-11)
25
[FIXED] Log the curl error in more circumstances
36

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Or add to `composer.json`:
1818

1919
```json
2020
"require": {
21-
"pusher/pusher-php-server": "^2.6"
21+
"pusher/pusher-php-server": "^3.0"
2222
}
2323
```
2424

@@ -41,7 +41,7 @@ $app_key = 'YOUR_APP_KEY';
4141
$app_secret = 'YOUR_APP_SECRET';
4242
$app_cluster = 'YOUR_APP_CLUSTER';
4343

44-
$pusher = new Pusher( $app_key, $app_secret, $app_id, array('cluster' => $app_cluster) );
44+
$pusher = new Pusher\Pusher( $app_key, $app_secret, $app_id, array('cluster' => $app_cluster) );
4545
```
4646

4747
The fourth parameter is an `$options` array. The additional options are:
@@ -167,12 +167,12 @@ if (isset($_SESSION['user_id'])) {
167167
$stmt->execute();
168168
$user = $stmt->fetch();
169169
} else {
170-
die('aaargh, no-one is logged in')
170+
die('aaargh, no-one is logged in');
171171
}
172172

173173
header('Content-Type: application/json');
174174

175-
$pusher = new Pusher($key, $secret, $app_id);
175+
$pusher = new Pusher\Pusher($key, $secret, $app_id);
176176
$presence_data = array('name' => $user['name']);
177177

178178
echo $pusher->presence_auth($_POST['channel_name'], $_POST['socket_id'], $user['id'], $presence_data);
@@ -292,7 +292,7 @@ The native notifications API is hosted at `nativepush-cluster1.pusher.com` and o
292292
If you wish to provide a different host you can do:
293293

294294
```php
295-
$pusher = new Pusher($app_key, $app_secret, $app_id, array('notification_host' => 'custom notifications host'))
295+
$pusher = new Pusher\Pusher($app_key, $app_secret, $app_id, array('notification_host' => 'custom notifications host'))
296296
```
297297
However, note that `notification_host` defaults to `nativepush-cluster1.pusher.com` and it is the only supported endpoint.
298298

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "pusher/pusher-php-server",
33
"description" : "Library for interacting with the Pusher REST API",
4-
"keywords": ["php-pusher-server", "pusher", "rest", "realtime", "trigger", "publish", "events"],
4+
"keywords": ["php-pusher-server", "pusher", "rest", "realtime", "real-time", "real time", "messaging", "push", "trigger", "publish", "events"],
55
"license": "MIT",
66
"require": {
77
"php": "^5.4 || ^7.0",

src/Pusher.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class Pusher
66
{
7-
public static $VERSION = '2.6.4';
7+
public static $VERSION = '3.0.0';
88

99
private $settings = array(
1010
'scheme' => 'http',

0 commit comments

Comments
 (0)