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

Commit 9782bd2

Browse files
committed
Merge remote-tracking branch 'upstream/2.x' into 2.x
2 parents 41e3f5a + 604357a commit 9782bd2

File tree

174 files changed

+8290
-5353
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+8290
-5353
lines changed

.codecov.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
codecov:
2+
notify:
3+
require_ci_to_pass: yes
4+
5+
coverage:
6+
precision: 2
7+
round: down
8+
range: "70...100"
9+
10+
status:
11+
project: yes
12+
patch: yes
13+
changes: no
14+
15+
comment:
16+
layout: "reach, diff, flags, files, footer"
17+
behavior: default
18+
require_changes: no

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ end_of_line = lf
1111
insert_final_newline = true
1212
trim_trailing_whitespace = true
1313

14-
[*.blade.php]
14+
[*.{blade.php,yml,yaml}]
1515
indent_size = 2
1616

1717
[*.md]

.github/workflows/ci.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
tags:
8+
- '*'
9+
pull_request:
10+
branches:
11+
- '*'
12+
13+
jobs:
14+
build:
15+
if: "!contains(github.event.head_commit.message, 'skip ci')"
16+
17+
runs-on: ubuntu-latest
18+
19+
strategy:
20+
matrix:
21+
php: ['7.2', '7.3', '7.4']
22+
laravel: ['6.*', '7.*', '8.*']
23+
prefer: ['prefer-lowest', 'prefer-stable']
24+
include:
25+
- laravel: '6.*'
26+
testbench: '4.*'
27+
- laravel: '7.*'
28+
testbench: '5.*'
29+
- laravel: '8.*'
30+
testbench: '6.*'
31+
32+
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} --${{ matrix.prefer }}
33+
34+
steps:
35+
- uses: actions/checkout@v1
36+
37+
- name: Setup Redis
38+
uses: supercharge/[email protected]
39+
with:
40+
redis-version: 6
41+
42+
- uses: actions/cache@v1
43+
name: Cache dependencies
44+
with:
45+
path: ~/.composer/cache/files
46+
key: composer-php-${{ matrix.php }}-${{ matrix.laravel }}-${{ matrix.prefer }}-${{ hashFiles('composer.json') }}
47+
48+
- name: Install dependencies
49+
run: |
50+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench-browser-kit:${{ matrix.testbench }}" "orchestra/database:${{ matrix.testbench }}" --no-interaction --no-update
51+
composer update --${{ matrix.prefer }} --prefer-dist --no-interaction --no-suggest
52+
53+
- name: Run tests for Local
54+
run: |
55+
REPLICATION_MODE=local phpunit --coverage-text --coverage-clover=coverage_local.xml
56+
57+
- name: Run tests for Redis
58+
run: |
59+
REPLICATION_MODE=redis phpunit --coverage-text --coverage-clover=coverage_redis.xml
60+
61+
- uses: codecov/codecov-action@v1
62+
with:
63+
fail_ci_if_error: false
64+
file: '*.xml'
65+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/run-tests.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

.gitignore

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
/vendor
2+
/.idea
13
build
2-
composer.lock
3-
vendor
4-
coverage
54
.phpunit.result.cache
6-
.idea/
5+
coverage
6+
composer.phar
7+
composer.lock
8+
.DS_Store
9+
database.sqlite

.scrutinizer.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
filter:
2-
excluded_paths: [tests/*]
2+
excluded_paths: [tests/*]
33

44
checks:
5-
php:
6-
remove_extra_empty_lines: true
7-
remove_php_closing_tag: true
8-
remove_trailing_whitespace: true
9-
fix_use_statements:
10-
remove_unused: true
11-
preserve_multiple: false
12-
preserve_blanklines: true
13-
order_alphabetically: true
14-
fix_php_opening_tag: true
15-
fix_linefeed: true
16-
fix_line_ending: true
17-
fix_identation_4spaces: true
18-
fix_doc_comments: true
5+
php:
6+
remove_extra_empty_lines: true
7+
remove_php_closing_tag: true
8+
remove_trailing_whitespace: true
9+
fix_use_statements:
10+
remove_unused: true
11+
preserve_multiple: false
12+
preserve_blanklines: true
13+
order_alphabetically: true
14+
fix_php_opening_tag: true
15+
fix_linefeed: true
16+
fix_line_ending: true
17+
fix_identation_4spaces: true
18+
fix_doc_comments: true
1919

.styleci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
preset: laravel
2-
3-
disabled:
4-
- single_class_element_per_statement
1+
preset: laravel

CHANGELOG.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

LICENSE.md renamed to LICENSE

File renamed without changes.

composer.json

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
22
"name": "beyondcode/laravel-websockets",
3-
"description": "An easy to use WebSocket server",
3+
"description": "An easy to launch a Pusher-compatible WebSockets server for Laravel.",
44
"keywords": [
55
"beyondcode",
6-
"laravel-websockets"
6+
"laravel-websockets",
7+
"laravel",
8+
"php"
79
],
8-
"homepage": "https://github.com/beyondcode/laravel-websockets",
910
"license": "MIT",
11+
"homepage": "https://github.com/beyondcode/laravel-websockets",
1012
"authors": [
1113
{
1214
"name": "Marcel Pociot",
@@ -19,6 +21,11 @@
1921
"email": "[email protected]",
2022
"homepage": "https://spatie.be",
2123
"role": "Developer"
24+
},
25+
{
26+
"name": "Alex Renoki",
27+
"homepage": "https://github.com/rennokki",
28+
"role": "Developer"
2229
}
2330
],
2431
"require": {
@@ -27,42 +34,49 @@
2734
"cboden/ratchet": "^0.4.1",
2835
"clue/buzz-react": "^2.5",
2936
"clue/redis-react": "^2.3",
37+
"doctrine/dbal": "^2.0",
3038
"evenement/evenement": "^2.0|^3.0",
3139
"facade/ignition-contracts": "^1.0",
3240
"guzzlehttp/psr7": "^1.5",
33-
"illuminate/broadcasting": "^6.0|^7.0",
34-
"illuminate/console": "^6.0|^7.0",
35-
"illuminate/http": "^6.0|^7.0",
36-
"illuminate/routing": "^6.0|^7.0",
37-
"illuminate/support": "^6.0|^7.0",
41+
"illuminate/broadcasting": "^6.3|^7.0|^8.0",
42+
"illuminate/console": "^6.3|^7.0|^8.0",
43+
"illuminate/http": "^6.3|^7.0|^8.0",
44+
"illuminate/queue": "^6.3|^7.0|^8.0",
45+
"illuminate/routing": "^6.3|^7.0|^8.0",
46+
"illuminate/support": "^6.3|^7.0|^8.0",
3847
"pusher/pusher-php-server": "^3.0|^4.0",
39-
"react/dns": "^1.1",
48+
"react/promise": "^2.0",
4049
"symfony/http-kernel": "^4.0|^5.0",
4150
"symfony/psr-http-message-bridge": "^1.1|^2.0"
4251
},
4352
"require-dev": {
53+
"clue/block-react": "^1.4",
54+
"laravel/legacy-factories": "^1.0.4",
4455
"mockery/mockery": "^1.3",
45-
"orchestra/testbench": "3.8.*|^4.0|^5.0",
56+
"orchestra/testbench-browser-kit": "^4.0|^5.0|^6.0",
57+
"orchestra/database": "^4.0|^5.0|^6.0",
4658
"phpunit/phpunit": "^8.0|^9.0"
4759
},
60+
"suggest": {
61+
"ext-pcntl": "Running the server needs pcntl to listen to command signals and soft-shutdown."
62+
},
4863
"autoload": {
4964
"psr-4": {
50-
"BeyondCode\\LaravelWebSockets\\": "src"
65+
"BeyondCode\\LaravelWebSockets\\": "src/"
5166
}
5267
},
5368
"autoload-dev": {
5469
"psr-4": {
55-
"BeyondCode\\LaravelWebSockets\\Tests\\": "tests"
70+
"BeyondCode\\LaravelWebSockets\\Test\\": "tests"
5671
}
5772
},
5873
"scripts": {
59-
"test": "vendor/bin/phpunit",
60-
"test-coverage": "vendor/bin/phpunit --coverage-html coverage"
61-
74+
"test": "vendor/bin/phpunit"
6275
},
6376
"config": {
6477
"sort-packages": true
6578
},
79+
"minimum-stability": "dev",
6680
"extra": {
6781
"laravel": {
6882
"providers": [

0 commit comments

Comments
 (0)