承接 diagonal/laravel-docs-manager 相关项目开发

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

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

diagonal/laravel-docs-manager

Composer 安装命令:

composer require diagonal/laravel-docs-manager

包简介

A simple package to browse markdown files in Laravel project filesystems in local environments

README 文档

README

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

A simple and elegant package to browse and view markdown files in your Laravel project through a web interface. Perfect for local development environments where you want to quickly access documentation, README files, and other markdown content directly from your browser.

The package automatically scans your project for markdown files and provides a clean, responsive interface to browse and read them with syntax highlighting and proper formatting.

Installation

You can install the package via composer:

composer require --dev diagonal/laravel-docs-manager

That's it! The package will automatically register itself and be ready to use in your local development environment.

Usage

Once installed, the package automatically works out of the box. Simply visit /docs in your Laravel application to browse all markdown files in your project.

Accessing the Docs Manager

  • Default URL: http://your-app.test/docs
  • Automatic Discovery: The package automatically scans your project for .md files
  • Local Environment Only: By default, only enabled in local environments for security

What You'll See

  • A clean, responsive interface listing all markdown files in your project
  • Organized file tree structure
  • Syntax-highlighted markdown rendering
  • Search and navigation capabilities

Configuration (Optional)

The package works perfectly with zero configuration, but you can customize it if needed by publishing the config file:

php artisan vendor:publish --tag="laravel-docs-manager-config"

Available configuration options:

return [
    // Route prefix (default: 'docs')
    'route_prefix' => env('DOCS_MANAGER_ROUTE_PREFIX', 'docs'),
    
    // Enable/disable the package (default: local environment only)
    'enabled' => env('DOCS_MANAGER_ENABLED', app()->environment('local')),
    
    // Base path to scan for markdown files
    'base_path' => env('DOCS_MANAGER_BASE_PATH', base_path()),
    
    // Directories to include in the scan
    'include_directories' => [''],
    
    // Directories to exclude from the scan
    'exclude_directories' => [
        'vendor', 'node_modules', '.git', 'storage/framework',
        'storage/logs', 'bootstrap/cache', 'public/build', 'public/hot'
    ],
    
    // File patterns to exclude
    'exclude_files' => ['.env*', '*.log', 'composer.lock', 'package-lock.json', 'yarn.lock'],
];

Customizing Views (Optional)

If you want to customize the appearance, you can publish the views:

php artisan vendor:publish --tag="laravel-docs-manager-views"

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.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固