How urian121/sistema-gestion-escolar-php-mysql-desde-cero works
Purpose and Entry Points
A PHP/MySQL school-management application for administering students, teachers, subjects, grades, and teacher-subject assignments. The browser entry point is index.php; feature pages are organized under home/. Database schema is supplied in settings/bd/bd_sistema_gestion_escolar.sql.
Request and Page Composition
Pages use shared PHP layout fragments for document head, navigation, sidebar, loading UI, and footer. This establishes a server-rendered page shell around each module page.
• components/head.php
• components/header.php
• components/sidebar.php
• components/components.php
Database and Configuration Boundary
Database connectivity and application-level connection settings are isolated under settings/. Controllers should be the boundary between page handlers and MySQL persistence, with the SQL schema defining core academic entities and relationships.
• settings/config.php
• settings/settingBD.php
• settings/bd/bd_sistema_gestion_escolar.sql
Domain Controllers
The controller layer separates operations by school domain: students, teachers, grades, subjects, plus shared/global behavior. These controllers are the primary backend control-flow layer invoked by module pages.
• controllers/ControllerEstudiantes.php
• controllers/ControllerProfesores.php
• controllers/ControllerGrados.php
• controllers/ControllerMaterias.php
• controllers/ControllerGlobal.php
Academic Administration Modules
Feature pages provide the user-facing administration flows. Student, grade, and subject modules expose their own index/listing views, while teacher management includes creation, detail, and assignment workflows.
• home/estudiantes/index.php
• home/estudiantes/add.php
• home/grados/index.php
• home/materias/index.php
• home/profesores/index.php
• home/profesores/add_profe.php
• home/profesores/detalles.php
Teacher–Subject Assignment Flow
Teacher assignment is a distinct multi-step flow: the assignment page presents the interaction, a server endpoint retrieves a teacher’s current subjects, and a receiver endpoint persists submitted assignment changes. Client-side JavaScript supports this interaction.
• home/profesores/asignacion.php
• home/profesores/get_materias_profesor.php
• home/profesores/recibe_asignacion.php
• assets/js/asignacion_curso_materias_profe.js
Front-End Runtime and Assets
The UI is server-rendered PHP enhanced with bundled browser libraries and custom scripts/styles. Bootstrap-derived vendor assets, jQuery/vendor bundles, icon fonts, dashboard behavior, and local avatars/images are served directly from the repository; no separate frontend build runtime is evident.
• assets/vendors/js/vendor.bundle.base.js
• assets/js/dashboard.js
• assets/css/style.css
• assets/avatar_estudiantes
• assets/avatar_profesores
Main entry points: head.php Shared page shell · settingBD.php Database settings · ControllerProfesores.php Teacher controller · asignacion_curso_materias_profe.js Assignment client logic
Components 20
Server-rendered UI
- Application entry
index.php - Shared page shell · Head, navigation, sidebar, loading UI, and footer.
components/head.php - Student administration
home/estudiantes/index.php - Student creation
home/estudiantes/add.php - Grade administration
home/grados/index.php - Subject administration
home/materias/index.php - Teacher management · Listing, creation, and detail workflows.
home/profesores/index.php - Teacher assignment
home/profesores/asignacion.php - Assignment client logic
assets/js/asignacion_curso_materias_profe.js - UI assets · Vendor bundle, dashboard behavior, styles, icons, and avatars.
assets/vendors/js/vendor.bundle.base.js
Domain controllers
- Student controller
controllers/ControllerEstudiantes.php - Teacher controller
controllers/ControllerProfesores.php - Grade controller
controllers/ControllerGrados.php - Subject controller
controllers/ControllerMaterias.php - Global controller
controllers/ControllerGlobal.php - Assigned-subject lookup · Returns a teacher's current subjects.
home/profesores/get_materias_profesor.php - Assignment receiver · Persists teacher-subject assignment changes.
home/profesores/recibe_asignacion.php
Persistence
- Database settings
settings/settingBD.php - Academic database · Defines students, teachers, grades, subjects, and assignments.
settings/bd/bd_sistema_gestion_escolar.sql
Other components
- Browser
Connections 24
- Browser → Application entry: requests
- Application entry → Shared page shell: renders with
- Shared page shell → Student administration: wraps
- Shared page shell → Grade administration: wraps
- Shared page shell → Subject administration: wraps
- Shared page shell → Teacher management: wraps
- Shared page shell → Teacher assignment: wraps
- Browser → UI assets: loads
- Teacher assignment → Assignment client logic: uses
- Student administration → Student controller: invokes
- Student creation → Student controller: invokes
- Grade administration → Grade controller: invokes
- Subject administration → Subject controller: invokes
- Teacher management → Teacher controller: invokes
- Assignment client logic → Assigned-subject lookup: fetches assignments
- Assignment client logic → Assignment receiver: submits changes
- Assigned-subject lookup → Teacher controller: uses
- Assignment receiver → Teacher controller: uses
- Student controller → Database settings: connects through
- Teacher controller → Database settings: connects through
- Grade controller → Database settings: connects through
- Subject controller → Database settings: connects through
- Database settings → Academic database: accesses
- Global controller → Database settings: uses