How jianyan74/rageframe3 works
Major components
– Backend (for system administration)
– Frontend (PC-facing public website)
– Merchant (for business-side management)
– Html5 (mobile-specific interface)
– API (for internal RESTful interfaces)
– OAuth2 (for external interfaces)
– Console (command-line tasks and scheduled jobs)
• Core Framework and Shared Libraries: Represent the “common” folder, shared models, behaviors, traits, components, and services. This layer is fundamental to all modules.
• Service / Business Logic Layer: Show the “services” directory where different business functions (for members, merchants, payments, addons, etc.) are abstracted.
• Plugin/Addon Architecture: Highlight the “addons” directory where different plugins (for membership, Wechat, TinyBlog, etc.) are implemented. Emphasize that these components plug into the core and can be installed/uninstalled dynamically.
• Infrastructure: Indicate configuration layers (environments setups, config directories for each application), migration scripts (in console/migrations), and third‑party integrations (payment, cloud storage, external login, WeChat, etc.).
Relationships and interactions
• Integration points for external services such as third‑party payment gateways, social login, and WeChat SDK – label these clearly as external integrations.
Architectural patterns
• Multi‑application and Multi‑entry design: The different web directories (backend, frontend, merchant, html5, oauth2, api) are independent applications that share the same core.
• Modular/Plugin architecture: The “addons” mechanism indicates a micro-kernel design. Each plugin’s directory holds its own controllers, models, views, and even configuration, interfacing with the system through common mechanisms.
• Service Layer Separation: The “services” directory separates business logic from controllers. Make sure this layer is a central block that communicates with the databases, third‑party APIs, and the addon modules.
• Configuration Management: With distinct config folders (for environments/dev/prod, config/main.php, params.php), note how configuration is layered for flexibility and separation of concerns.
Relevant technologies and frameworks
• PHP with Yii2 Advanced framework (the base of the system)
• Various third‑party libraries such as EasyWechat for WeChat integration, Bootstrap/AdminLTE for UI, and other integrations (payment gateways, storage adapters, etc.)
• From the core block, branch out to the “Addon/Plugin” group and annotate how these plug into the system.
• At the bottom layer, show the Database/Storage system and the configuration/integration with external third‑party services.
• Flows such as “Authentication (RBAC)”, “RESTful API Call”, “Third‑party Payment”, “WeChat Integration”, etc.