diagonal / laravel-docs-manager
A simple package to browse markdown files in Laravel project filesystems in local environments
Fund package maintenance!
Diagonal
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 2
Language:Blade
pkg:composer/diagonal/laravel-docs-manager
Requires
- php: ^8.4
- illuminate/contracts: ^11.0||^12.0
- league/commonmark: ^2.4
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.8
- orchestra/testbench: ^10.0.0||^9.0.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- spatie/laravel-ray: ^1.35
This package is not auto-updated.
Last update: 2025-12-30 01:41:54 UTC
README
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
.mdfiles - 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.