All Projects â†’ svenluijten â†’ super-basic-auth

svenluijten / super-basic-auth

Licence: MIT license
🔒 A lightweight package to add basic authentication to your Laravel app.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to super-basic-auth

laravel-jwt
A seamless JWT implementation for Laravel
Stars: ✭ 71 (+222.73%)
Mutual labels:  laravel-package, laravel-authentication
artisan-remote
Artisan Remote is a package for Laravel to interact with your Artisan Commands via an HTTP API.
Stars: ✭ 69 (+213.64%)
Mutual labels:  laravel-package
world
A Laravel package which provides a list of the countries, states, cities, currencies, timezones and languages.
Stars: ✭ 479 (+2077.27%)
Mutual labels:  laravel-package
Laravel-Auto-Hard-Deleter
Laravel and Lumen Auto Hard Deleter
Stars: ✭ 34 (+54.55%)
Mutual labels:  laravel-package
forest-laravel
🌱 Laravel Liana for Forest Admin. This repo is no longer maintained. Please use laravel-forestadmin instead: https://github.com/ForestAdmin/laravel-forestadmin
Stars: ✭ 4 (-81.82%)
Mutual labels:  laravel-package
nova-qrcode-field
A Laravel Nova field to generate QR Code
Stars: ✭ 28 (+27.27%)
Mutual labels:  laravel-package
gitup
Laravel package to upload git commits to server(s) via (s)ftp.
Stars: ✭ 20 (-9.09%)
Mutual labels:  laravel-package
translate-laravel
Translate your Laravel website easily.
Stars: ✭ 36 (+63.64%)
Mutual labels:  laravel-package
menus
Laravel Enso main menu manager, for easy management of the application menus straight from the interface, whether that means adding, removing or reordering them
Stars: ✭ 15 (-31.82%)
Mutual labels:  laravel-package
laravel-profane
Profanity Validator for Laravel
Stars: ✭ 79 (+259.09%)
Mutual labels:  laravel-package
data-import
Laravel Enso XLSX Data Import package, built around the box/spout library, with templating, easy validation and more, for painless imports
Stars: ✭ 19 (-13.64%)
Mutual labels:  laravel-package
geolocation
A laravel integration for using the IPInfoDB and Ip2Location services
Stars: ✭ 38 (+72.73%)
Mutual labels:  laravel-package
laravel-jwt-auto-installer
A Laravel Library that let's you add tymon jwt auth library and all it's features with single command
Stars: ✭ 19 (-13.64%)
Mutual labels:  laravel-package
laravel-filterable
Laravel 5/6/7 package to handle filtering by query-string
Stars: ✭ 117 (+431.82%)
Mutual labels:  laravel-package
laravel-login-links
Create (passwordless) login links for users
Stars: ✭ 13 (-40.91%)
Mutual labels:  laravel-package
swaggervel
Swagger for Laravel
Stars: ✭ 70 (+218.18%)
Mutual labels:  laravel-package
laravel-print-api
Laravel package to access our print-api
Stars: ✭ 16 (-27.27%)
Mutual labels:  laravel-package
atlassian-connect-core
[Laravel 5.5+] The easiest way to create an add-on for the JIRA and Confluence
Stars: ✭ 42 (+90.91%)
Mutual labels:  laravel-package
laravel-barion
A simple Laravel wrapper for the Barion payment API
Stars: ✭ 13 (-40.91%)
Mutual labels:  laravel-package
awesome-landlord
A simple, single database multi-tenancy solution for Laravel 5.2+
Stars: ✭ 41 (+86.36%)
Mutual labels:  laravel-package

super-basic-auth

Super Basic Auth

Latest Version on Packagist Total Downloads Software License Build Status StyleCI

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!

Installation

The installation instructions for this package can be found below.

Downloading

Via composer:

$ 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:

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

Usage

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

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.

Finally, apply the middleware to any route you want protected by those credentials:

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.

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].