How mainalito/cropanalysis works
CropAnalysis is a Yii2 web application for managing crop and farm records and recording laboratory test submissions and findings. The main evidenced workflow is a user creating a submission, selecting its farm, testing method, and analysis type, then entering parameter-linked laboratory findings. The wider CRUD and account-management capabilities are visible in the repository structure, but many controllers were not sampled; their internal routing is therefore not asserted here.
Main entry points: Users.php User records · TestSubmissions.php Test submissions · Parameters.php Analysis parameters · LaboratoryFindingsController.php Findings controller
Components 19
Web and identity
- Web entry
web/index.php - Web configuration
config/web.php - User identity
models/User.php - User records
models/Users.php
Crop administration
- Farms
models/Farms.php - Crop categories
models/CropsCategory.php - Crops
models/Crops.php - Crop requirements
models/CropRequirements.php
Laboratory workflow
- Test submissions
models/TestSubmissions.php - Findings controller
controllers/LaboratoryFindingsController.php - Laboratory findings
models/LaboratoryFindings.php - Analysis parameters
models/Parameters.php
Reference administration
- Analysis types
models/NatureOfAnalysis.php - Testing methods
models/TestingMethods.php - Notification statuses
models/NotificationStatuses.php - Notifications
models/Notifications.php - Templates
models/Templates.php - Settings
models/Settings.php
Other components
- Browser user
Connections 26
- Browser user → Web entry: requests pages
web/index.php - Web entry → Web configuration: loads app
web/index.php - Web configuration → User identity: configures identity
config/web.php - Test submissions → Farms: references farm
models/TestSubmissions.php - Test submissions → Testing methods: references method
models/TestSubmissions.php - Test submissions → Analysis types: references analysis
models/TestSubmissions.php - Findings controller → Laboratory findings: creates findings
controllers/LaboratoryFindingsController.php - Findings controller → Analysis parameters: loads parameters
controllers/LaboratoryFindingsController.php - Findings controller → Test submissions: loads submission
controllers/LaboratoryFindingsController.php - Laboratory findings → Analysis parameters: references parameter
models/LaboratoryFindings.php - Laboratory findings → Test submissions: references submission
models/LaboratoryFindings.php - Analysis parameters → Testing methods: references method
models/Parameters.php - Analysis parameters → Analysis types: references analysis
models/Parameters.php - Crop categories → Crops: referenced by crop
models/Crops.php - Crops → Crop requirements: has requirements
models/Crops.php - Notification statuses → Notifications: references notifications
models/NotificationStatuses.php - User records → Crops: relates to crops
models/Users.php - User records → Crop categories: relates to categories
models/Users.php - User records → Crop requirements: relates to requirements
models/Users.php - User records → Farms: relates to farms
models/Users.php - User records → Analysis types: relates to analysis
models/Users.php - User records → Analysis parameters: relates to parameters
models/Users.php - User records → Notification statuses: relates to statuses
models/Users.php - User records → Notifications: relates to notifications
models/Users.php - User records → Templates: relates to templates
models/Users.php - User records → Testing methods: relates to methods
models/Users.php