# laravel-echo-vue3

> Laravel Echo Vue 3

Latest version **1.0.1** (published 2022-09-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install laravel-echo-vue3
pnpm add laravel-echo-vue3
yarn add laravel-echo-vue3
bun add laravel-echo-vue3
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-09-24 |
| First published | 2022-09-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Ferdi UNAL |
| Maintainers | ferdiunal |
| Keywords | Laravel, Laravel Echo, Vue 3, Pusher Js, Laravel Websockets |

## Links

- npm: https://www.npmjs.com/package/laravel-echo-vue3
- Repository: https://github.com/ferdiunal/laravel-echo-vue3
- Homepage: https://github.com/ferdiunal/laravel-echo-vue3#readme
- Issues: https://github.com/ferdiunal/laravel-echo-vue3/issues
- npm.io page: https://npm.io/package/laravel-echo-vue3

## Dependencies (1)

- [laravel-echo](https://npm.io/package/laravel-echo.md) ^1.14.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2022-09-24

## README

# Laravel Echo Vue

This package enables the Laravel Echo library to set the property for Vue 3. Laravel Echo setup is the same as in the document.

## Install

via yarn

```bash
yarn add laravel-echo-vue3
```

or via npm

```bash 
npm install --save laravel-echo-vue3
```

If you are going to use Pusher you need to install pusher-js

via npm

```bash 
npm install --save pusher-js
```

or via yarn 

```bash 
yarn add pusher-js
```


## Usage

### Initialize

```js
import App from '@/App.vue'
import Pusher from 'pusher-js';
import LaravelEcho from "laravel-echo-vue3"

const app = createApp(App)


const options = {
    broadcaster: 'pusher',
    key: import.meta.env.VITE_PUSHER_APP_KEY,
    cluster: import.meta.env.VITE_PUSHER_APP_CLUSTER,
    forceTLS: true
}

app.use(LaravelEchoVue, {
    ...options,
    client: new Pusher(options.key, options)
})

app.mount('#app')

```

---
_Source: https://npm.io/package/laravel-echo-vue3 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
