soiposervices/httpauth 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

soiposervices/httpauth

最新稳定版本:0.0.1

Composer 安装命令:

composer require soiposervices/httpauth

包简介

A simple package to enable http auth, useful especially for stage and dev environments

README 文档

README

Latest Version on Packagist Total Downloads GitHub Actions

This laravel package provides a simple http auth middleware. It can be enable for specific environments and it allows white listed ip to skip the auth check.

Installation

You can install the package via composer:

composer require soiposervices/httpauth

Usage

Make sure

To use this laravel package simply add the HttpAuth middleware to the routes your want to enable the authentication.

You can set the admin and password, using the env variables HTTP_AUTH_USER and HTTP_AUTH_PASS

To whitelist some ip addresses set a comma delimited string in the env variable HTTP_AUTH_WHITELIST

To enable for specific enviroments set the env vairable HTTP_AUTH_ENABLED_ENV eg: "prod,stage"

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email luigi@soiposervices.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 133
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-22