c6digital/laravel-basic-auth

Add basic authentication to your Laravel project in seconds.

v1.0.0 2024-06-14 13:22 UTC

This package is auto-updated.

Last update: 2024-10-09 00:29:45 UTC


README

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

This package provides a simple BasicAuth middleware that adds basic authentication to all routes in your application.

Installation

You can install the package via Composer:

composer require c6digital/laravel-basic-auth

Usage

The BasicAuth middleware is automatically registered after installing the package. Use environment variables to toggle and change credentials.

BASIC_AUTH_ENABLED=true
BASIC_AUTH_USERNAME=admin
BASIC_AUTH_PASSWORD=password

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.