This package is maintained by VeiligLanceren.nl, your partner in website development and everything else to power up your online company.
Easily fetch, parse, and display remote Markdown documentation from GitHub (or other sources) directly into customizable Blade views inside your Laravel application.
- Fetch remote
.md
files from public GitHub repositories - Convert Markdown to clean HTML
- Generate Blade templates automatically
- Fully customizable Blade layouts
- Service-oriented, extensible, and tested
Install the package via Composer:
composer require veiliglanceren/laravel-remote-documentation
Laravel will automatically discover the package.
If needed, manually register the ServiceProvider:
Veiliglanceren\LaravelRemoteDocumentation\RemoteDocumentationServiceProvider::class
And the Facade:
'RemoteDocumentation' => Veiliglanceren\LaravelRemoteDocumentation\Facades\RemoteDocumentation::class,
php artisan remote-docs:fetch vendor/repository README.md
This will:
- Fetch the
README.md
from GitHubvendor/repository
- Convert it to HTML
- Save it as a Blade file under
resources/views/vendor/remote-documentation/vendor_repository.blade.php
Override the default layout by publishing the views:
php artisan vendor:publish --tag=remote-documentation-views
You can then edit resources/views/vendor/remote-documentation/layout.blade.php
.
The following functions are available through the RemoteDocumentation
facade.
Service | Purpose |
---|---|
RemoteDocumentation::get($repo, $file) |
Fetch and parse remote Markdown |
RemoteDocumentation::parse($markdown) |
Generate a Blade view file |
All services are fully extensible and injectable for advanced use cases.
Run the tests using PestPHP:
./vendor/bin/pest
This package supports:
- Pest v2 (for Laravel 10)
- Pest v3 (for Laravel 11 and 12)
Ensure that your Pest version aligns with your Laravel version to maintain compatibility.
- Add feature tests for full command flow
- Support private repositories with token authentication
The MIT License (MIT).
Please see License File for more information.