{"repo":"spatie/laravel-url-signer","free":true,"listed":false,"github":"https://github.com/spatie/laravel-url-signer","clone":"git clone https://github.com/spatie/laravel-url-signer.git","description":"Create and validate signed URLs with a limited lifetime","language":"PHP","stars":717,"topics":["laravel","php","mail","security","url"],"license":"MIT","category":"security-tools","readme_excerpt":"Create signed URLs with a limited lifetime in Laravel This package can create URLs with a limited lifetime. This is done by adding an expiration date and a signature to the URL. The difference with Laravel's native route signing is that using this package: - you can easily use signed URLs between different apps - the signing secret used is not tied to the app key - you can easily sign any URL (and not only a route belonging to your app) This is how you can create signed URL that's valid for 30 days: The output will look like this: The URL can be validated with the validate -function. The package also provides a middleware to protect routes. Support us We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall. Installation As you would have guessed the package can be installed via composer: You must set an environment variable called URL SIGNER SIGNATURE KEY and set it to a long secret value. This value will be used to sign and validate signed URLs. The configuration file can optionally be published via: This is the content of the file: Usage URL's can be signed with the sign -method: By default, the lifetime of an URL is one day. This value can be change in the config file. If you","default_branch":null,"files":null,"tree":[],"storefront":"/r/spatie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spatie/laravel-url-signer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}