artisansplatform / laravel-app-documentation-editor
Inline-injected Vite-powered document editor package
Requires
- php: ^8.2
- illuminate/filesystem: ^11.0
- illuminate/http: ^11.0
- illuminate/routing: ^11.0
- illuminate/support: ^11.0
- illuminate/view: ^11.0
Requires (Dev)
- laravel/pint: ^1.24
- orchestra/testbench: ^9.0
- pestphp/pest: ^2.30
- pestphp/pest-plugin-laravel: ^2.2
- rector/rector: ^2.1
This package is auto-updated.
Last update: 2025-09-10 13:01:08 UTC
README
Tired of switching between tools to update your docs? Our editor brings documentation management right into your Laravel app. Edit markdown files, preview changes instantly, and submit GitHub PRsβall in one sleek interface.
β¨ Features
- π Modern Markdown Editor - Rich editing with real-time preview
- π GitHub Integration - Create pull requests without leaving your app
- π Flexible Authorization - Control who can edit your documentation
- π± Responsive Design - Works beautifully on all devices
- ποΈ Document Browser - Navigate your project files with ease
- ποΈ Visual Diffs - Compare changes before submitting
- π§© Event System - Hook into editor events from your JavaScript
π¦ Installation
composer require artisansplatform/laravel-app-documentation-editor
π Access URL
https://your-app.com/laravel-app-documentation-editor/documentation
Note: The URL path can be customized in the configuration file using the
url_name
setting.
βοΈ Configuration (Optional)
Publish the configuration file to customize paths, GitHub integration, and access control:
php artisan vendor:publish --provider="Artisansplatform\LaravelAppDocumentationEditor\Providers\LaravelAppDocumentationEditorServiceProvider" --tag="laravel-app-documentation-editor-config"
This creates config/laravel-app-documentation-editor.php
where you can set:
- Document paths
- GitHub repository details
- Authorization methods
- Custom URL name
π Authorization
Control who can edit your documentation using flexible authorization methods:
- URL Parameters Method - Simple access control via URL parameters
- Callback Method - Advanced control with custom logic
See detailed authorization documentation
π GitHub Integration
Enable GitHub integration to submit document changes as pull requests:
// In your .env file LARAVEL_APP_DOCUMENTATION_EDITOR_GITHUB_TOKEN=your_token LARAVEL_APP_DOCUMENTATION_EDITOR_GITHUB_OWNER=your_username LARAVEL_APP_DOCUMENTATION_EDITOR_GITHUB_REPOSITORY=your_repo LARAVEL_APP_DOCUMENTATION_EDITOR_GITHUB_BASE_BRANCH=main
For detailed instructions on creating a GitHub token, see the GitHub Token Creation Guide.
π Requirements
- PHP 8.2+
- Laravel 11.x
- Composer
π€ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
π License
This package is open-sourced software licensed under the MIT license.
β¨ Credits
Made with β€οΈ by Artisans Platform