codewithuali/laradoc 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

codewithuali/laradoc

Composer 安装命令:

composer require codewithuali/laradoc

包简介

Intelligent Laravel project documentation generator with AI-powered chatbot

README 文档

README

Visit our website: https://umair.lu/community/laradoc

📦 Packagist & Meta

🛠️ Tech Stack

  • Language: PHP ^8.1
  • Framework: Laravel ^9.0|^10.0|^11.0
  • Key Dependencies:
    • guzzlehttp/guzzle ^7.0
    • symfony/console ^6.0
    • symfony/finder ^6.0
    • league/commonmark ^2.0
    • meilisearch/meilisearch-php ^0.35.0
    • spatie/laravel-permission ^5.0
    • livewire/livewire ^2.0
  • Dev Dependencies:
    • orchestra/testbench ^7.0|^8.0
    • phpunit/phpunit ^9.0|^10.0

Laradoc - Intelligent Laravel Documentation Generator

Visit our website: https://umair.lu/community/laradoc

Laradoc is an intelligent Laravel documentation generator that automatically analyzes your Laravel project and generates comprehensive documentation using AI-powered insights. Save hours of manual work and keep your documentation always up-to-date.

🌟 Features

  • 🤖 AI-Powered Analysis: Automatically analyze your Laravel project structure using advanced AI algorithms
  • 🔍 Advanced Search: Lightning-fast search with Meilisearch integration and database fallback
  • 💬 AI Chatbot: Ask questions about your codebase and get intelligent, contextual answers
  • ✏️ Live Editing: Edit documentation directly in the web interface with real-time preview
  • 🎨 Modern UI: Beautiful Bootstrap 5 interface with responsive design
  • 🔧 Multiple AI Providers: Support for OpenAI GPT-4, Claude, and Gemini
  • 📱 Responsive Design: Works perfectly on all devices
  • ⚡ High Performance: Optimized for speed with caching and efficient queries

🚀 Quick Start

Installation

composer require codewithuali/laradoc

Publish Configuration

php artisan vendor:publish --provider="Laradoc\Laradoc\LaradocServiceProvider"

Run Migrations

php artisan migrate

Configure AI Provider

Add your AI provider API key to your .env file:

# AI Provider Configuration
LARADOC_AI_PROVIDER=openai

# OpenAI Configuration
OPENAI_API_KEY=your_openai_api_key
OPENAI_MODEL=gpt-4

# Or Claude
ANTHROPIC_API_KEY=your_claude_api_key
CLAUDE_MODEL=claude-3-sonnet-20240229

# Or Gemini
GOOGLE_API_KEY=your_gemini_api_key
GEMINI_MODEL=gemini-pro

Generate Documentation

php artisan laradoc:generate

Access the Interface

Visit /laradoc in your browser to access the documentation interface.

📖 Documentation

For detailed documentation, visit our website: https://umair.lu/community/laradoc/docs

What Gets Documented

Laradoc automatically generates documentation for:

  • Authentication & Authorization: Guards, policies, gates, middleware
  • API Documentation: Controllers, routes, requests, responses
  • Database & Models: Eloquent models, relationships, migrations
  • Frontend & Views: Blade templates, components, assets
  • Services & Providers: Service providers, facades, helpers
  • Configuration: App config, environment variables
  • Testing: Test files, test coverage
  • Deployment: Deployment scripts, server configurations

🎯 Use Cases

  • Development Teams: Keep documentation in sync with code changes
  • Open Source Projects: Automatically generate comprehensive docs
  • Client Projects: Provide detailed documentation for clients
  • Code Reviews: Understand project structure quickly
  • Onboarding: Help new developers understand the codebase
  • Maintenance: Keep documentation updated as projects evolve

🛠️ Configuration

AI Provider Settings

// config/laradoc.php
'ai' => [
    'provider' => env('LARADOC_AI_PROVIDER', 'openai'), // openai, claude, gemini
    'model' => env('LARADOC_AI_MODEL', 'gpt-4'),
    'temperature' => env('LARADOC_AI_TEMPERATURE', 0.7),
    'max_tokens' => env('LARADOC_AI_MAX_TOKENS', 4000),
],

Search Settings

'search' => [
    'driver' => env('LARADOC_SEARCH_DRIVER', 'database'), // database, meilisearch
    'meilisearch' => [
        'host' => env('MEILISEARCH_HOST', 'http://localhost:7700'),
        'key' => env('MEILISEARCH_KEY'),
    ],
],

Documentation Settings

'documentation' => [
    'modules' => [
        'authentication' => true,
        'api' => true,
        'database' => true,
        'frontend' => true,
        'services' => true,
        'configuration' => true,
        'testing' => true,
        'deployment' => true,
    ],
    'auto_generate' => env('LARADOC_AUTO_GENERATE', true),
    'update_frequency' => env('LARADOC_UPDATE_FREQUENCY', 'daily'),
],

🌐 Website

Visit our official website for:

  • 📋 Feature Overview: Detailed feature descriptions and demos
  • 📚 Documentation: Complete installation and usage guides
  • 💰 Pricing: Transparent pricing plans
  • 👥 About Us: Learn about our team and mission
  • 📞 Contact: Get support and ask questions
  • 🎯 Use Cases: See how others are using Laradoc

Website: https://umair.lu/community/laradoc

🔧 Commands

Generate Documentation

php artisan laradoc:generate

Analyze Project Structure

php artisan laradoc:analyze

Clear Documentation Cache

php artisan laradoc:clear

🎨 Customization

Custom Views

Publish the views to customize the interface:

php artisan vendor:publish --tag=laradoc-views

Custom CSS/JS

Add your own styles and scripts:

php artisan vendor:publish --tag=laradoc-assets

Custom Modules

Extend Laradoc with your own documentation modules:

// app/Providers/AppServiceProvider.php
public function boot()
{
    Laradoc::addModule('custom', [
        'name' => 'Custom Module',
        'description' => 'Your custom documentation module',
        'icon' => 'fas fa-cog',
        'route' => 'laradoc.custom',
    ]);
}

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Setup

git clone https://github.com/codewithuali/laradoc.git
cd laradoc
composer install

Running Tests

composer test

📄 License

Laradoc is open-sourced software licensed under the MIT license.

🙏 Acknowledgments

🔗 Links

📊 Star History

Star History Chart

Made with ❤️ for the Laravel community

codewithuali/laradoc 适用场景与选型建议

codewithuali/laradoc 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 07 月 05 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 codewithuali/laradoc 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 codewithuali/laradoc 我们能提供哪些服务?
定制开发 / 二次开发

基于 codewithuali/laradoc 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 8
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-05