veiliglanceren/laravel-remote-documentation
Composer 安装命令:
composer require veiliglanceren/laravel-remote-documentation
包简介
Easily fetch, parse, and display remote Markdown documentation from GitHub (or other sources) directly into customizable Blade views in your Laravel application.
README 文档
README
This package is maintained by VeiligLanceren.nl, your partner in website development and everything else to power up your online company.
Laravel Remote Documentation
Easily fetch, parse, and display remote Markdown documentation from GitHub (or other sources) directly into customizable Blade views inside your Laravel application.
✨ Features
- Fetch remote
.mdfiles from public GitHub repositories - Convert Markdown to clean HTML
- Generate Blade templates automatically
- Fully customizable Blade layouts
- Service-oriented, extensible, and tested
📦 Installation
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,
⚡ Quick Usage
Fetch documentation and generate Blade file via command:
php artisan remote-docs:fetch vendor/repository README.md
This will:
- Fetch the
README.mdfrom GitHubvendor/repository - Convert it to HTML
- Save it as a Blade file under
resources/views/vendor/remote-documentation/vendor_repository.blade.php
Customize your layout
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.
🛠 Available functions
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.
✅ Testing
Run the tests using PestPHP:
./vendor/bin/pest
🧪 Pest Compatibility
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.
📚 Future Roadmap
- Add feature tests for full command flow
- Support private repositories with token authentication
📝 License
The MIT License (MIT).
Please see License File for more information.
veiliglanceren/laravel-remote-documentation 适用场景与选型建议
veiliglanceren/laravel-remote-documentation 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 376 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 04 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 veiliglanceren/laravel-remote-documentation 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 veiliglanceren/laravel-remote-documentation 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 376
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-26
