How can I run Alpine.js code from php or blade?

I want to create a music player, and even though the plain alpine code works, I need to intergrade it in blade or php.
Was this page helpful?