2017 © Pedro Peláez
 

library super-basic-auth

A lightweight package to add basic authentication to your Laravel app.

image

sven/super-basic-auth

A lightweight package to add basic authentication to your Laravel app.

  • Sunday, March 18, 2018
  • by svenluijten
  • Repository
  • 3 Watchers
  • 20 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

super-basic-auth, (*1)

Super Basic Auth

Latest Version on Packagist Total Downloads ![Software License][ico-license] ![Build Status][ico-build] StyleCI, (*2)

This is a super lightweight package to add the most basic form of authentication to your Laravel app. All you need is a webserver and a text editor!, (*3)

Installation

The installation instructions for this package can be found below., (*4)

Downloading

Via composer:, (*5)

$ composer require sven/super-basic-auth

Or add the package to your dependencies in composer.json and run composer update on the command line to download it:, (*6)

{
    "require": {
        "sven/super-basic-auth": "^2.3"
    }
}

Usage

To use this package, first add the following code to your config/auth.php file:, (*7)

return [
    // ...

    'basic' => [
        'user' => env('AUTH_USERNAME'),
        'password' => env('AUTH_PASSWORD'),
    ],
];

Be sure to add AUTH_USERNAME and AUTH_PASSWORD to your .env file. You can call these entries whatever you want., (*8)

Finally, apply the middleware to any route you want protected by those credentials:, (*9)

Route::group('admin', function () {
    // Your password protected routes.
})->middleware(\Sven\SuperBasicAuth\SuperBasicAuth::class);

Contributing

All contributions (pull requests, issues and feature requests) are welcome. Make sure to read through the CONTRIBUTING.md first, though. See the contributors page for all contributors., (*10)

License

sven/super-basic-auth is licensed under the MIT License (MIT). Please see the license file for more information., (*11)

The Versions

18/03 2018

1.0.x-dev

1.0.9999999.9999999-dev

A lightweight package to add basic authentication to your Laravel app.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel authentication user auth http password basic

18/03 2018

v1.1.0

1.1.0.0

A lightweight package to add basic authentication to your Laravel app.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel authentication user auth http password basic

12/12 2017

dev-master

9999999-dev

A lightweight package to add basic authentication to your Laravel app.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel authentication user auth http password basic

15/10 2017

1.0.0

1.0.0.0

A lightweight package to add basic authentication to your Laravel app.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel authentication user auth http password basic