How paramientos/marygen works
Component Relationships
CLI (MaryGenCommand)
• → Model Analyzer
• → Database Schema Reader
• → Component Generator
• → File Generator
• → Output Files
Configuration System ----→ All Components (cross-cutting)
Specific Elements
• Artisan Command Interface (MaryGenCommand)
• Configuration Reader (config/marygen.php)
• Model Schema Analyzer
• Database Connection Handler (multi-db support)
• MaryUI Component Generator
• Livewire Page Generator
• Translation Service (Google Translate integration)
• Route Generator
• Form Field Generator
• Table Column Generator
• Generated Livewire Components
• Generated Blade Views
• Route Registrations
• Translation Files
Flow Directions
User Input → Command Processing → Model Analysis → Generation → Output
Important Details to Highlight
• Package Dependencies:
• MaryUI
• Livewire/Volt
• Google Translate Integration
• Configuration Points:
• Model Namespace
• Database Connections
• Translation Settings
Technical Specifications
• Required Laravel version (10.x+)
• PHP version requirement (8.0+)
• External service dependencies
• Database connectivity options
Integration Points
Integration with:
• Laravel's Service Provider system
• Artisan command system
• MaryUI components
• Livewire/Volt framework
• Rectangles for components
• Diamonds for decision points
Keep the abstraction level focused on the architectural components while including enough detail to show the package's core functionality of generating UI components and handling translations.