Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

salah11's avatar

how i can implement plyr.js in my laravel application

i download plyr.js folder from gitHub then i want to implement it in my application i dont want to use cdn link so where i can put this folder and how i can call this CSS and Js anyone here can help me

0 likes
2 replies
manuelglez's avatar

You can install plyr via npm

npm -i plyr

then import it in app.js

import Plyr from 'plyr';

after you can define your plyr container in the view const player = new Plyr('#player');

It is all explained in the plyr documentation

Please or to participate in this conversation.