Skip to content

Commit a57cad6

Browse files
committed
ap
1 parent a8ff834 commit a57cad6

13 files changed

+1789
-1644
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# These are supported funding model platforms
22

3-
github: [georgeboot]
3+
github: [aliasproject]

README.md

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# laravel-echo-api-gateway
22

3-
[![CI](https://github.com/georgeboot/laravel-echo-api-gateway/workflows/CI/badge.svg?event=push)](https://github.com/georgeboot/laravel-echo-api-gateway/actions?query=workflow%3ACI)
4-
[![codecov](https://codecov.io/gh/georgeboot/laravel-echo-api-gateway/branch/master/graph/badge.svg?token=UVIA3FBQPP)](https://codecov.io/gh/georgeboot/laravel-echo-api-gateway)
3+
[![CI](https://github.com/aliasproject/laravel-echo-api-gateway/workflows/CI/badge.svg?event=push)](https://github.com/aliasproject/laravel-echo-api-gateway/actions?query=workflow%3ACI)
4+
[![codecov](https://codecov.io/gh/aliasproject/laravel-echo-api-gateway/branch/master/graph/badge.svg?token=UVIA3FBQPP)](https://codecov.io/gh/aliasproject/laravel-echo-api-gateway)
55

66
## Not maintained!!!
7+
78
I currently don't have the time to maintain this package.
89

910
My recommendation is to use Soketi serverless instead: https://renoki-25232877.hubspotpagebuilder.eu/soketi-serverless
@@ -29,11 +30,11 @@ advised to only use this package for non-critical / non-production projects.
2930

3031
In order to use this package, your project needs to meet the following criteria:
3132

32-
- PHP 7.4 or 8.x
33-
- Laravel 6, 7 or 8
34-
- Uses either [bref](https://bref.sh) or [Laravel Vapor](https://vapor.laravel.com) to deploy to AWS
35-
- Has a working queue
36-
- Uses Laravel Mix or any other tool to bundle your assets
33+
- PHP 7.4 or 8.x
34+
- Laravel 6, 7 or 8
35+
- Uses either [bref](https://bref.sh) or [Laravel Vapor](https://vapor.laravel.com) to deploy to AWS
36+
- Has a working queue
37+
- Uses Laravel Mix or any other tool to bundle your assets
3738

3839
## Installation
3940

@@ -42,7 +43,7 @@ Installation of this package is fairly simply.
4243
First we have to install both the composer and npm package:
4344

4445
```shell
45-
composer require georgeboot/laravel-echo-api-gateway
46+
composer require aliasproject/laravel-echo-api-gateway
4647

4748
yarn add laravel-echo-api-gateway
4849
# or
@@ -115,10 +116,18 @@ provider:
115116
iamRoleStatements:
116117
# Add this iamRoleStatement
117118
- Effect: Allow
118-
Action: [ dynamodb:Query, dynamodb:GetItem, dynamodb:PutItem, dynamodb:UpdateItem, dynamodb:DeleteItem, dynamodb:BatchWriteItem ]
119+
Action:
120+
[
121+
dynamodb:Query,
122+
dynamodb:GetItem,
123+
dynamodb:PutItem,
124+
dynamodb:UpdateItem,
125+
dynamodb:DeleteItem,
126+
dynamodb:BatchWriteItem,
127+
]
119128
Resource:
120129
- !GetAtt ConnectionsTable.Arn
121-
- !Join [ '', [ !GetAtt ConnectionsTable.Arn, '/index/*' ] ]
130+
- !Join ["", [!GetAtt ConnectionsTable.Arn, "/index/*"]]
122131
```
123132

124133
Add an environment variable to autogenerate our websocket URL:
@@ -140,13 +149,13 @@ Next, create the PHP handler file in `handlers/websocket.php`
140149
```php
141150
<?php
142151
143-
use Georgeboot\LaravelEchoApiGateway\Handler;
152+
use AliasProject\LaravelEchoApiGateway\Handler;
144153
use Illuminate\Foundation\Application;
145154
146-
require __DIR__ . '/../vendor/autoload.php';
155+
require __DIR__ . "/../vendor/autoload.php";
147156
148157
/** @var Application $app */
149-
$app = require __DIR__ . '/../bootstrap/app.php';
158+
$app = require __DIR__ . "/../bootstrap/app.php";
150159
151160
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
152161
$kernel->bootstrap();
@@ -198,13 +207,13 @@ LARAVEL_ECHO_API_GATEWAY_API_STAGE=your-api-stage-name
198207
Add to your javascript file:
199208

200209
```js
201-
import Echo from 'laravel-echo';
202-
import {broadcaster} from 'laravel-echo-api-gateway';
210+
import Echo from "laravel-echo";
211+
import { broadcaster } from "laravel-echo-api-gateway";
203212
204213
window.Echo = new Echo({
205214
broadcaster,
206215
// replace the placeholders
207-
host: 'wss://{api-ip}.execute-api.{region}.amazonaws.com/{stage}',
216+
host: "wss://{api-ip}.execute-api.{region}.amazonaws.com/{stage}",
208217
});
209218
```
210219

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "georgeboot/laravel-echo-api-gateway",
2+
"name": "aliasproject/laravel-echo-api-gateway",
33
"description": "Use Laravel Echo with API Gateway Websockets",
44
"keywords": [
55
"laravel",
@@ -9,7 +9,7 @@
99
"serverless",
1010
"laravel vapor"
1111
],
12-
"homepage": "https://github.com/georgeboot/laravel-echo-api-gateway",
12+
"homepage": "https://github.com/aliasproject/laravel-echo-api-gateway",
1313
"type": "library",
1414
"license": "MIT",
1515
"authors": [
@@ -24,7 +24,7 @@
2424
"aws/aws-sdk-php": "^3.80",
2525
"bref/bref": "^1.1",
2626
"guzzlehttp/guzzle": "^6.3|^7.0",
27-
"laravel/framework": "^6.0|^7.0|^8.0|^9.0"
27+
"laravel/framework": "^6.0|^7.0|^8.0|^9.0|^10.0"
2828
},
2929
"require-dev": {
3030
"mockery/mockery": "^1.2",
@@ -35,7 +35,7 @@
3535
},
3636
"autoload": {
3737
"psr-4": {
38-
"Georgeboot\\LaravelEchoApiGateway\\": "src/"
38+
"AliasProject\\LaravelEchoApiGateway\\": "src/"
3939
}
4040
},
4141
"autoload-dev": {
@@ -49,7 +49,7 @@
4949
"extra": {
5050
"laravel": {
5151
"providers": [
52-
"Georgeboot\\LaravelEchoApiGateway\\ServiceProvider"
52+
"AliasProject\\LaravelEchoApiGateway\\ServiceProvider"
5353
]
5454
}
5555
},
@@ -61,4 +61,4 @@
6161
},
6262
"minimum-stability": "dev",
6363
"prefer-stable": true
64-
}
64+
}

0 commit comments

Comments
 (0)