You can use echojs without laravel and npm .
echojs is a Js library,
Follow these steps to create the echo.js file:
import Echo from "laravel-echo" window.Echo = Echo;
compile this with gulp using the following code
const elixir = require('laravel-elixir'); elixir(mix => { mix .webpack('echo.js','public/assets/js/echo.js'); });
You can use this file public / assets / js / echo.js in any projects.
If you do not like the above steps, go to our repository https://github.com/W2S-Solutions/laravel-echo-js-compiled/ and copy echo.js to use anywhere in your project
source share