Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

A Laravel package for quickly adding .well-known URLs

License

Notifications You must be signed in to change notification settings

thinkverse/well-known

Repository files navigation

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

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.