How weng-xianhu/eyoucms works
EyouCMS is a PHP content-management and enterprise-site system built on ThinkPHP 5. Its principal workflow is managing site content and configuration in the administration area, then presenting that content through the public site and templates; member, commerce, API, and plugin capabilities extend that workflow. The graph includes the documented product areas and the framework’s core request, persistence, and response layers. Source excerpts are limited, so links between unsampled product subsystems are omitted rather than inferred.
Main entry points: App.php Application dispatch · Query.php Query builder · controller Public site · ShopPublicHandle.php Commerce models
Components 30
Site publishing
- Public site
application/home/controller - Content rendering
application/home/controller/View.php - Static generation
application/home/controller/Buildhtml.php - Content models
application/home/model - Publishing services
application/common/logic
Administration
- Admin interface
application/admin/controller - File manager
application/admin/controller/Filemanager.php - File operations
application/admin/logic/FilemanagerLogic.php
Members and commerce
- Member portal
application/user/controller - Commerce models
application/common/model/ShopPublicHandle.php - Order handling
application/common/model/OrderPreHandle.php - Shop services
application/common/logic/ShopCommonLogic.php - Payment API
application/user/logic/PayApiLogic.php
APIs and plugins
- API endpoints
application/api/controller - Plugin support
application/plugins
ThinkPHP runtime
- Application dispatch
core/library/think/App.php - Request handling
core/library/think/Request.php - Class loading
core/library/think/Loader.php - Response handling
core/library/think/Response.php - Database access
core/library/think/Db.php - Query builder
core/library/think/db/Query.php - ORM models
core/library/think/Model.php - Caching
core/library/think/Cache.php - Configuration
core/library/think/Config.php - Exception handling
core/library/think/Exception.php - Logging
core/library/think/Log.php - Controller redirects
core/library/traits/controller/Jump.php
Other components
- Site visitor
- Administrator
- PHP entry
index.php
Connections 23
- PHP entry → Application dispatch: starts runtime
index.php - Application dispatch → Request handling: uses request
core/library/think/App.php - Application dispatch → Class loading: loads classes
core/library/think/App.php - Application dispatch → Response handling: creates response
core/library/think/App.php - Application dispatch → Logging: records events
core/library/think/App.php - Application dispatch → Exception handling: handles errors
core/library/think/App.php - Database access → Query builder: creates queries
core/library/think/Db.php - Query builder → Caching: reads cache
core/library/think/db/Query.php - Query builder → Configuration: reads settings
core/library/think/db/Query.php - ORM models → Query builder: builds queries
core/library/think/Model.php - Site visitor → Public site: visits
README.md - Administrator → Admin interface: manages site
README.md - Admin interface → File manager: offers file tools
- File manager → File operations: delegates operations
application/admin/controller/Filemanager.php - Public site → Content rendering: renders pages
- Content rendering → Content models: uses content
- Static generation → Publishing services: uses publishing logic
application/home/controller/Buildhtml.php - Member portal → Commerce models: supports commerce
README.md - Order handling → Commerce models: uses shop handling
application/common/model/OrderPreHandle.php - Order handling → Shop services: uses shop logic
application/common/model/OrderPreHandle.php - Commerce models → Payment API: uses payment logic
application/common/model/ShopPublicHandle.php - API endpoints → Member portal: serves mobile APIs
README.md - Plugin support → Public site: extends capabilities
README.md