How mrdipeshbastakoti/campus-lost-and-found works
Campus Lost-and-Found is a PHP/MySQL web application for Dong-Eui University students. The main workflow is to register or sign in, post or search lost/found reports, inspect an item, and—on found-item reports—submit private evidence for the finder to review, reserve the item, and record its return. Owners can also resolve recovered lost reports. The graph follows documented capabilities and sampled page/service references; some unsampled page-to-service details are supported only by the README or source index.
Main entry points: ReportService.php Report service · ClaimService.php Claim service · claims-bootstrap.php Claim bootstrap · Database.php Database access
Components 24
Web workflows
- Home page
index.php - Account pages
register.php - Search page
search.php - Report form
report.php - Item details
item.php - My reports
my-reports.php
Accounts and sessions
- Authentication
src/AuthService.php - Session and CSRF
src/Session.php - Request bootstrap
includes/bootstrap.php
Reports and search
- Report bootstrap
includes/reports-bootstrap.php - Report service
src/ReportService.php - Report search
src/ReportSearch.php - Photo delivery
photo.php
Claims and returns
- Claim bootstrap
includes/claims-bootstrap.php - Submit claim
claim.php - Claimant claims
my-claims.php - Finder management
manage-found.php - Review claims
review-claims.php - Claim service
src/ClaimService.php
Persistence and photos
- Database access
src/Database.php - Photo storage
src/PhotoStorage.php - MySQL database
- Photo files
Other components
- Students
Connections 38
- Students → Home page: browse
README.md - Students → Account pages: register or sign in
README.md - Students → Search page: search items
README.md - Students → Report form: post report
README.md - Students → Item details: view details
README.md - Students → My reports: manage reports
README.md - Students → Submit claim: submit evidence
README.md - Students → Claimant claims: view claims
README.md - Students → Finder management: manage found items
README.md - Students → Review claims: review claims
README.md - Account pages → Request bootstrap: loads
register.php - Account pages → Authentication: register or authenticate
register.php - Request bootstrap → Session and CSRF: starts
includes/bootstrap.php - Request bootstrap → Authentication: loads
includes/bootstrap.php - Authentication → Database access: queries users
src/AuthService.php - Search page → Report search: searches reports
search.php - Report search → Database access: queries reports
src/ReportSearch.php - Report form → Report bootstrap: loads
report.php - Report bootstrap → Report service: loads
includes/reports-bootstrap.php - My reports → Report service: lists and resolves
my-reports.php - Item details → Report service: loads details
item.php - Report form → Report service: creates report
README.md - Report service → Database access: stores report
src/ReportService.php - Report service → Photo storage: saves or removes photo
src/ReportService.php - Photo delivery → Report service: gets report photo reference
photo.php - Photo delivery → Photo storage: resolves photo path
photo.php - Submit claim → Claim bootstrap: loads
claim.php - Claimant claims → Claim bootstrap: loads
my-claims.php - Finder management → Claim bootstrap: loads
manage-found.php - Review claims → Claim bootstrap: loads
review-claims.php - Claim bootstrap → Claim service: loads
includes/claims-bootstrap.php - Submit claim → Claim service: submits claim
claim.php - Claimant claims → Claim service: lists claims
my-claims.php - Finder management → Claim service: lists found reports
manage-found.php - Review claims → Claim service: decides and records return
review-claims.php - Claim service → Database access: reads and updates claims
src/ClaimService.php - Database access → MySQL database: connects to
src/Database.php - Photo storage → Photo files: reads and writes
src/PhotoStorage.php