thinkverse / well-known
A Laravel package for quickly adding .well-known URLs
Fund package maintenance!
Ko Fi
www.paypal.me/thinkverse
buymeacoffee.com/thinkverse
Requires
- php: ^8.0
- illuminate/support: ^8.0|^9.0
- spatie/laravel-package-tools: ^1.4.3
Requires (Dev)
- orchestra/testbench: ^6.0|^7.0
- pestphp/pest: ^1.20
- pestphp/pest-plugin-laravel: ^1.2
README
Warning Package is deprecated, it's recommended to add your
/.well-known
routes in your route files.
A Laravel package for quickly adding .well-known URLs
well-known
is a Laravel package for quickly adding well-known locations (RFC8615) to a Laravel application, with support for redirects and static URLs.
Installation
You can install the package via composer:
composer require thinkverse/well-known
You can publish the config file with:
php artisan vendor:publish --tag="well-known-config"
This is the contents of the published config file:
return [ 'redirects' => [ 'change-password' => '/settings/security', ], 'static' => [ 'security.txt' => fn () => response('Hello world.'), ], ];
Usage
To use well-known
, install the package and publish the configuration. Now you can update,
add and or remove redirects and static .well-known URLs with ease.
A registrar for some well-known URIs can be found at iana.org/assignments/well-known-uris/.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.