How to Render Arbitrary Script Attributes Using laminas-view's HeadScript Helper
If you use laminas-view’s HeadScript helper to conditionally include JavaScript in your PHP applications, make sure you don’t get caught out if you need to included arbitrary script attributes. Here’s how to do it.