Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/chipslays/porter
Browse files Browse the repository at this point in the history
  • Loading branch information
chipslays committed Feb 16, 2023
2 parents 7bba08d + f964c82 commit 2ed5c4a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A simple PHP 8 websocket server and client wrapper over Workerman with events, c

> **Note**
>
> This library production ready, maintenance only bug fixes, no breaking changes updates.
> Latest version 1.2 is production ready, maintenance only small features, fix bugs and has **no breaking changes** updates.
# 🧰 Installation

Expand Down
15 changes: 10 additions & 5 deletions examples/laravel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ composer require chipslays/porter
php vendor/bin/porter template:laravel ./websocket
```

Tip: You can also create a event class.
> **Note**
>
> You can also create a event class by command:
> ```bash
> vendor/bin/porter make:event ./websocket/events/example.php "example event"
> ```
```bash
vendor/bin/porter make:event ./websocket/events/example.php "example event"
```
4. Add variables to `.env` file.
Expand All @@ -39,7 +42,9 @@ echo 'PORTER_CERTIFICATE=/etc/letsencrypt/live/<YOUR_SITE.COM>/cert.pem' >> .env
echo 'PORTER_PRIVATE_KEY=/etc/letsencrypt/live/<YOUR_SITE.COM>/privkey.pem' >> .env
```
>**NOTE:** On VPS with SSL certificate set `PORTER_TRANSPORT=ssl` and provide path to certs in `PORTER_CERTIFICATE` and `PORTER_PRIVATE_KEY`.
> **Warning**
>
> On VPS with SSL certificate set `PORTER_TRANSPORT=ssl` and provide path to certs in `PORTER_CERTIFICATE` and `PORTER_PRIVATE_KEY`.
5. Run websocket server.

Expand Down

0 comments on commit 2ed5c4a

Please sign in to comment.