How imsolx/prsportteched works
PrSport is a web application for managing sports tournaments, from administration and athlete registration through match results and public schedules, standings, and reports. The visible runtime path is a browser-facing PHP page or API request into the application service, which uses authentication, database access, and optionally Gemini for AI features. The service file is very large and only partially excerpted; domain capabilities are grouped rather than mapped to unverified internal calls. The README is empty, so product scope comes from the sampled UI and source.
Main entry points: AppService.php Application service · Database.php Database access · Auth.php Authentication and roles · bootstrap.php Runtime bootstrap
Components 15
Web entry points
- Tournament web page
public/index.php - Action API
public/api.php
Tournament operations
- Application service
app/AppService.php - Sports and tournaments
app/AppService.php - Athletes and teams
app/AppService.php - Matches and results
app/AppService.php - Reports and AI
app/AppService.php - News and organizations
app/AppService.php
Access and infrastructure
- Authentication and roles
app/Auth.php - Runtime bootstrap
app/bootstrap.php - Database access
app/Database.php - SQL database
- Gemini service
- Gemini client
app/GeminiClient.php
Other components
- Visitor or staff
Connections 12
- Visitor or staff → Tournament web page: views
- Tournament web page → Runtime bootstrap: loads runtime
public/index.php - Action API → Runtime bootstrap: loads runtime
public/api.php - Action API → Application service: dispatches action
public/api.php - Runtime bootstrap → Database access: boots database
app/bootstrap.php - Application service → Authentication and roles: checks permissions
app/AppService.php - Application service → Database access: queries data
app/AppService.php - Application service → Gemini client: creates client
app/AppService.php - Authentication and roles → Database access: reads users
app/Auth.php - Authentication and roles → Application service: records audit
app/Auth.php - Database access → SQL database: connects
app/Database.php - Gemini client → Gemini service: sends requests
app/GeminiClient.php