承接 oralunal/scribe-auth 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

oralunal/scribe-auth

Composer 安装命令:

composer require oralunal/scribe-auth

包简介

A Laravel middleware package that adds authentication protection to your Scribe API documentation.

README 文档

README

A Laravel middleware package that adds authentication protection to your Scribe API documentation. This package provides a simple way to secure your API documentation with basic authentication, ensuring that only authorized users can access your API documentation pages.

Requirements

  1. Scribe's type config should be set to laravel in your config/scribe.php file.
  2. Scribe's laravel->add_routes config should be set to true in your config/scribe.php file.

Installation

  1. Install the package via Composer:
composer require oralunal/scribe-auth
  1. Add the web and scribe.auth middleware to your config/scribe.php file:
'middleware' => [
    // ...
    'web',
    'scribe.auth',
],
  1. Publish the configuration file:
php artisan vendor:publish --tag=scribe-auth-config

Configuration

The package comes with a config file (config/scribe-auth.php) where you can customize the following settings:

  • SCRIBE_AUTH_ENABLED: Enable/disable the middleware (Default: false)
  • SCRIBE_AUTH_PASSWORD: Authentication password (Default: 1234567890)

Add the following environment variable to your .env file:

SCRIBE_AUTH_ENABLED=true
SCRIBE_AUTH_PASSWORD=your_fantastic_password

Security

  • Use different credentials in production
  • Choose a strong password
  • Keep your credentials secure

License

This package is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固