Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Url Signer Laravel Package

spatie/laravel-url-signer

Sign and validate any URL in Laravel with an expiring signature. Works across apps, uses a configurable secret (not the app key), and includes middleware to protect routes. Generate time-limited links in one call and verify them anywhere.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Secure File/Resource Sharing: Enable time-bound access to sensitive files (e.g., downloads, API keys, or internal docs) without exposing them publicly.
  • Cross-App Authentication: Generate signed URLs for third-party services (e.g., payment gateways, CDNs) where Laravel’s native signing is insufficient.
  • Temporary Access Control: Replace manual token generation (e.g., for admin portals or partner integrations) with automated, expiry-based URLs.
  • Roadmap Alignment: Prioritize this for projects requiring short-lived credentials (e.g., compliance, security audits) or multi-tenant architectures where shared secrets are needed.
  • Build vs. Buy: Avoid reinventing URL signing logic; leverage this package to reduce dev time and maintain security best practices.

When to Consider This Package

  • Use This When:
    • You need cross-application URL signing (e.g., linking to external services or microservices).
    • Laravel’s native signed() helper is too restrictive (e.g., tied to app key or limited to app routes).
    • You require granular expiry control (e.g., "this link expires in 1 hour").
    • Your team lacks cryptography expertise but needs secure, auditable signing.
  • Look Elsewhere If:
    • You’re using non-Laravel backends (this is Laravel-specific).
    • You need JWT/OAuth integration (consider spatie/laravel-activitylog or typhon/laravel-jwt-auth).
    • Your use case involves real-time validation (e.g., WebSockets); this is for HTTP URLs only.
    • You require revocation (this is expiry-only; pair with a database for revoked URLs).

How to Pitch It (Stakeholders)

For Executives: "This package lets us generate secure, time-limited links for sensitive resources—like shared files or third-party integrations—without manual token management. It’s a drop-in solution that reduces fraud risk (e.g., leaked links) and cuts dev time by 80% compared to custom builds. Used by [X] companies for compliance and partner access."

For Engineering: *"Spatie’s laravel-url-signer gives us:

  • Cross-app signing: Works for external URLs (e.g., S3 presigned links, Stripe webhooks).
  • Flexible expiry: Set TTLs per use case (e.g., 1 day for admin tools, 30 days for clients).
  • No app-key dependency: Uses a separate secret, isolating signing from auth.
  • Battle-tested: MIT-licensed, 700+ stars, active maintenance. Tradeoff: No revocation (but we can layer a revoked_urls table if needed.)* Proposal: Add to our security toolkit for [specific feature X]—minimal dev lift, high ROI."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai