jeffersongoncalves/laravel-plausible
A Laravel package for integrating Plausible Analytics into your PHP application. It provides simple configuration and a clean API for adding privacy-friendly, cookie-free analytics and tracking events from your Laravel projects.
script-src can now render this package's scripts without adding 'unsafe-inline' or a host allowlist — the two workarounds security teams most often reject. This is a sales-cycle unblocker (enterprise, regulated, public sector), not a nice-to-have.laravel-security-headers and other nonce-aware tooling instead of competing with it — one nonce source of truth.unsafe-inline?" question in SOC 2 / ISO 27001 reviews, pen-test remediations, and customer security questionnaires.Adopt or upgrade when:
laravel-security-headers (or equivalent) — the package now inherits the same nonce automatically, with no configuration when the app already sets one.nonce="{{ Vite::cspNonce() }}". That maintenance cost is now avoidable.Look elsewhere or deprioritize when:
Executives: "This removes a recurring security objection in enterprise deals. Customers can enforce the strictest script policy — the one their security teams mandate — without weakening it for our widget. The upgrade is additive and non-breaking: no migration budget, no customer-facing behavior change for apps without a CSP."
Engineering: "Every <script> the package renders now carries the same Vite CSP nonce the app already exposes, so it slots into a nonce-based script-src alongside laravel-security-headers with zero configuration. Upgrading lets us delete the local patch and drop the 'unsafe-inline' exception from our policy. Verification path: confirm the nonce is present in the rendered tag, run CSP in report-only in staging, and check for violations before flipping to enforce."
Risk framing: No breaking changes, no new dependency, no runtime behavior change for apps without a CSP. The only meaningful verification step is a staging pass with CSP reporting enabled.
How can I help you explore Laravel packages today?