Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit eedf1c6

Browse files
authored
Merge branch 'code-lts:main' into main
2 parents ea71e31 + d8e5c34 commit eedf1c6

File tree

19 files changed

+416
-85
lines changed

19 files changed

+416
-85
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,38 @@
11
name: Run tests
22

3-
on: [push]
3+
on:
4+
push:
5+
pull_request:
6+
types: [opened, synchronize, reopened]
47

58
jobs:
69
test-php:
710
name: Test on php ${{ matrix.php-version }} and ${{ matrix.os }}
11+
if: "!contains(github.event.head_commit.message, '[ci skip]')"
812
runs-on: ${{ matrix.os }}
13+
continue-on-error: ${{ matrix.experimental }}
914
strategy:
1015
matrix:
1116
php-version: ["5.5", "5.6", "7.1", "7.2", "7.3", "7.4", "8.0"]
17+
experimental: [false]
1218
os: [ubuntu-latest]
19+
composer-options: ['']
20+
include:
21+
- { php-version: '8.1', composer-options: '--ignore-platform-req=php', experimental: true, os: ubuntu-latest }
1322
steps:
1423
- uses: actions/checkout@v2
1524
- name: Use php ${{ matrix.php-version }}
1625
uses: shivammathur/setup-php@v2
1726
with:
1827
php-version: ${{ matrix.php-version }}
19-
extensions: posix, mbstring
2028
coverage: xdebug
21-
tools: composer:v2
2229
- name: Cache module
2330
uses: actions/cache@v2
2431
with:
2532
path: ~/.composer/cache/
2633
key: composer-cache
2734
- name: Install dependencies
28-
if: ${{ matrix.php-version != '8.0' }}
29-
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest
30-
- name: Install dependencies for php 8.0
31-
if: ${{ matrix.php-version == '8.0' }}
32-
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest --ignore-platform-reqs
35+
run: composer install --no-interaction --prefer-dist --no-progress ${{ matrix.composer-options }}
3336
- name: Run php tests
3437
run: composer run test
3538
- name: Send coverage

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
# Changelog
2+
23
All notable changes to this project will be documented in this file.
34

45
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
56
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
67

8+
## [v1.x.x] - YYYY-MM-DD
9+
10+
- Make topics more extendable and fix topicsToFcm
11+
- Support laravel 9
12+
713
## [v1.6.2] - 2021-04-03
814

915
- Set FCMManager::getContainer public

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
],
1717
"require": {
1818
"php": "^5.5.9 || ^7.0 || ^8.0",
19-
"illuminate/support": "5.* || ^6 || ^7 || ^8",
19+
"illuminate/support": "5.* || ^6 || ^7 || ^8 || ^9",
2020
"guzzlehttp/guzzle": "^6 || ^7",
2121
"monolog/monolog": "^1.12|^2.0"
2222
},
2323
"require-dev": {
2424
"phpunit/phpunit" : "^4 || ^5 || ^6 || ^7 || ^8 || ^9",
25-
"laravel/laravel": "5.* || ^6 || ^7 || ^8"
25+
"laravel/laravel": "5.* || ^6 || ^7 || ^8 || ^9"
2626
},
2727
"autoload": {
2828
"psr-4": {

doc/LaravelFCM/Facades/FCM.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class **FCM** extends <abbr title="Illuminate\Support\Facades\Facade">Fac
2626
| | | | |
2727
|---|---|---|---|
2828
|static&nbsp;|<a name="#method_getFacadeAccessor"></a>getFacadeAccessor()|No description||
29+
|static&nbsp;[<abbr title="LaravelFCM\Response\GroupResponse">GroupResponse</abbr>](../../LaravelFCM/Response/GroupResponse.md)|<a name="#method_sendToGroup"></a>sendToGroup(string|string[] $notificationKey, <abbr title="LaravelFCM\Facades\Options|null">Options|null</abbr> $options, <abbr title="LaravelFCM\Facades\PayloadNotification|null">PayloadNotification|null</abbr> $notification, <abbr title="LaravelFCM\Facades\PayloadData|null">PayloadData|null</abbr> $data)|No description||
2930

3031

3132
### Details
@@ -37,4 +38,25 @@ staticprotected **getFacadeAccessor**()
3738
[at line 12](https://github.com/code-lts/Laravel-FCM/blob/main/src/Facades/FCM.php#L12)
3839

3940

41+
<a name id="method_sendToGroup"></a>
42+
43+
###
44+
static [<abbr title="LaravelFCM\Response\GroupResponse">GroupResponse</abbr>](../../LaravelFCM/Response/GroupResponse.md) **sendToGroup**(string|string[] $notificationKey, <abbr title="LaravelFCM\Facades\Options|null">Options|null</abbr> $options, <abbr title="LaravelFCM\Facades\PayloadNotification|null">PayloadNotification|null</abbr> $notification, <abbr title="LaravelFCM\Facades\PayloadData|null">PayloadData|null</abbr> $data)
45+
46+
[at line 10](https://github.com/code-lts/Laravel-FCM/blob/main/src/Facades/FCM.php#L10)
47+
48+
49+
50+
#### Parameters
51+
52+
| | | |
53+
|---|---|---|
54+
|string|string[]|$notificationKey||<abbr title="LaravelFCM\Facades\Options|null">Options|null</abbr>|$options||<abbr title="LaravelFCM\Facades\PayloadNotification|null">PayloadNotification|null</abbr>|$notification||<abbr title="LaravelFCM\Facades\PayloadData|null">PayloadData|null</abbr>|$data|
55+
56+
#### Return Value
57+
58+
| | |
59+
|---|---|
60+
|[<abbr title="LaravelFCM\Response\GroupResponse">GroupResponse</abbr>](../../LaravelFCM/Response/GroupResponse.md)|
61+
4062
_Generated by [Doctum, a API Documentation generator and fork of Sami](https://github.com/code-lts/doctum)._

doc/LaravelFCM/Facades/FCMTopic.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ class **FCMTopic** extends <abbr title="Illuminate\Support\Facades\Facade
2626
| | | | |
2727
|---|---|---|---|
2828
|static&nbsp;|<a name="#method_getFacadeAccessor"></a>getFacadeAccessor()|No description||
29+
|static&nbsp;bool|<a name="#method_createTopic"></a>createTopic(string $topicId, string $registrationId)|No description||
30+
|static&nbsp;bool|<a name="#method_subscribeTopic"></a>subscribeTopic(string $topicId, array|string $recipientsTokens)|No description||
31+
|static&nbsp;bool|<a name="#method_unsubscribeTopic"></a>unsubscribeTopic(string $topicId, array|string $recipientsTokens)|No description||
2932

3033

3134
### Details
@@ -37,4 +40,67 @@ staticprotected **getFacadeAccessor**()
3740
[at line 13](https://github.com/code-lts/Laravel-FCM/blob/main/src/Facades/FCMTopic.php#L13)
3841

3942

43+
<a name id="method_createTopic"></a>
44+
45+
###
46+
static bool **createTopic**(string $topicId, string $registrationId)
47+
48+
[at line 12](https://github.com/code-lts/Laravel-FCM/blob/main/src/Facades/FCMTopic.php#L12)
49+
50+
51+
52+
#### Parameters
53+
54+
| | | |
55+
|---|---|---|
56+
|string|$topicId||string|$registrationId|
57+
58+
#### Return Value
59+
60+
| | |
61+
|---|---|
62+
|bool|
63+
64+
<a name id="method_subscribeTopic"></a>
65+
66+
###
67+
static bool **subscribeTopic**(string $topicId, array|string $recipientsTokens)
68+
69+
[at line 12](https://github.com/code-lts/Laravel-FCM/blob/main/src/Facades/FCMTopic.php#L12)
70+
71+
72+
73+
#### Parameters
74+
75+
| | | |
76+
|---|---|---|
77+
|string|$topicId||array|string|$recipientsTokens|
78+
79+
#### Return Value
80+
81+
| | |
82+
|---|---|
83+
|bool|
84+
85+
<a name id="method_unsubscribeTopic"></a>
86+
87+
###
88+
static bool **unsubscribeTopic**(string $topicId, array|string $recipientsTokens)
89+
90+
[at line 12](https://github.com/code-lts/Laravel-FCM/blob/main/src/Facades/FCMTopic.php#L12)
91+
92+
93+
94+
#### Parameters
95+
96+
| | | |
97+
|---|---|---|
98+
|string|$topicId||array|string|$recipientsTokens|
99+
100+
#### Return Value
101+
102+
| | |
103+
|---|---|
104+
|bool|
105+
40106
_Generated by [Doctum, a API Documentation generator and fork of Sami](https://github.com/code-lts/doctum)._

doc/LaravelFCM/Facades/FCMValidator.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class **FCMValidator** extends <abbr title="Illuminate\Support\Facades\Fa
2626
| | | | |
2727
|---|---|---|---|
2828
|static&nbsp;|<a name="#method_getFacadeAccessor"></a>getFacadeAccessor()|No description||
29+
|static&nbsp;bool|<a name="#method_validateToken"></a>validateToken(string $token)|No description||
2930

3031

3132
### Details
@@ -37,4 +38,25 @@ staticprotected **getFacadeAccessor**()
3738
[at line 11](https://github.com/code-lts/Laravel-FCM/blob/main/src/Facades/FCMValidator.php#L11)
3839

3940

41+
<a name id="method_validateToken"></a>
42+
43+
###
44+
static bool **validateToken**(string $token)
45+
46+
[at line 10](https://github.com/code-lts/Laravel-FCM/blob/main/src/Facades/FCMValidator.php#L10)
47+
48+
49+
50+
#### Parameters
51+
52+
| | | |
53+
|---|---|---|
54+
|string|$token|
55+
56+
#### Return Value
57+
58+
| | |
59+
|---|---|
60+
|bool|
61+
4062
_Generated by [Doctum, a API Documentation generator and fork of Sami](https://github.com/code-lts/doctum)._

0 commit comments

Comments
 (0)