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.
You can install the package via composer:
composer require --dev diagonal/laravel-docs-managerThat's it! The package will automatically register itself and be ready to use in your local development environment.
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.
- 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
- A clean, responsive interface listing all markdown files in your project
- Organized file tree structure
- Syntax-highlighted markdown rendering
- Search and navigation capabilities
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'],
];If you want to customize the appearance, you can publish the views:
php artisan vendor:publish --tag="laravel-docs-manager-views"composer testPlease see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.