https://github.com/thinkverse/well-known
A Laravel package for quickly adding .well-known URLs
https://github.com/thinkverse/well-known
laravel laravel-package php well-known
Last synced: 4 months ago
JSON representation
A Laravel package for quickly adding .well-known URLs
- Host: GitHub
- URL: https://github.com/thinkverse/well-known
- Owner: thinkverse
- License: mit
- Archived: true
- Created: 2021-10-17T19:25:46.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-13T02:24:36.000Z (over 3 years ago)
- Last Synced: 2025-08-19T00:18:50.498Z (9 months ago)
- Topics: laravel, laravel-package, php, well-known
- Language: PHP
- Homepage: https://packagist.org/packages/thinkverse/well-known
- Size: 19.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
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
[](https://packagist.org/packages/thinkverse/well-known)
[](https://github.com/thinkverse/well-known/actions?query=workflow%3Arun-tests+branch%3Amain)
[](https://github.com/thinkverse/well-known/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
[](https://packagist.org/packages/thinkverse/well-known)
`well-known` is a Laravel package for quickly adding well-known locations ([RFC8615](https://datatracker.ietf.org/doc/html/rfc8615)) to a Laravel application, with support for redirects and static URLs.
## Installation
You can install the package via composer:
```bash
composer require thinkverse/well-known
```
You can publish the config file with:
```bash
php artisan vendor:publish --tag="well-known-config"
```
This is the contents of the published config file:
```php
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/](https://www.iana.org/assignments/well-known-uris/well-known-uris.xhtml).
## Testing
```bash
composer test
```
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [thinkverse](https://github.com/thinkverse)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.