@@ -8,14 +8,14 @@ See original Firebase docs: https://firebase.google.com/docs/
88#Setup
99Install via Composer:
1010```
11- composer require sngrl /php-firebase-cloud-messaging
11+ composer require redjanym /php-firebase-cloud-messaging
1212```
1313
1414Or add this to your composer.json and run "composer update":
1515
1616```
1717"require": {
18- "sngrl /php-firebase-cloud-messaging": "dev-master "
18+ "redjanym /php-firebase-cloud-messaging": "1.* "
1919}
2020```
2121
@@ -29,7 +29,6 @@ use sngrl\PhpFirebaseCloudMessaging\Notification;
2929$server_key = '_YOUR_SERVER_KEY_';
3030$client = new Client();
3131$client->setApiKey($server_key);
32- $client->injectGuzzleHttpClient(new \GuzzleHttp\Client());
3332
3433$message = new Message();
3534$message->setPriority('high');
@@ -56,7 +55,6 @@ use sngrl\PhpFirebaseCloudMessaging\Notification;
5655$server_key = '_YOUR_SERVER_KEY_';
5756$client = new Client();
5857$client->setApiKey($server_key);
59- $client->injectGuzzleHttpClient(new \GuzzleHttp\Client());
6058
6159$message = new Message();
6260$message->setPriority('high');
@@ -78,7 +76,6 @@ use sngrl\PhpFirebaseCloudMessaging\Client;
7876$server_key = '_YOUR_SERVER_KEY_';
7977$client = new Client();
8078$client->setApiKey($server_key);
81- $client->injectGuzzleHttpClient(new \GuzzleHttp\Client());
8279
8380$response = $client->addTopicSubscription('_SOME_TOPIC_ID_', ['_FIRST_TOKEN_', '_SECOND_TOKEN_']);
8481var_dump($response->getStatusCode());
@@ -92,7 +89,6 @@ use sngrl\PhpFirebaseCloudMessaging\Client;
9289$server_key = '_YOUR_SERVER_KEY_';
9390$client = new Client();
9491$client->setApiKey($server_key);
95- $client->injectGuzzleHttpClient(new \GuzzleHttp\Client());
9692
9793$response = $client->removeTopicSubscription('_SOME_TOPIC_ID_', ['_FIRST_TOKEN_', '_SECOND_TOKEN_']);
9894var_dump($response->getStatusCode());
0 commit comments