Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
23
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
# Import schema (Linux/macOS/WSL) mysql -u root -p php_lms < database/schema.sql # Import demo data mysql -u root -p php_lms < database/seed.sql # Set upload permissions chmod 755 public/uploads/
# PHP built-in server (testing only) php -S localhost:8000 -t public # Or place in XAMPP htdocs and access via: # http://localhost/php-lms/public/
# Build and run with Docker Compose docker-compose up -d # Access at http://localhost:8080
public/index.php - main router with session-based authenticationsrc/controllers/src/models/src/views/Simple query-parameter based routing via
public/index.php:
?page=admin§ion=courses&action=create&id=1$_SESSION['role'] === 'admin'archived column instead of hard deletestopics table with parent_topic_idprogress table tracks student completion statusactivities table for audit trailpublic/uploads/password_hash() and PASSWORD_DEFAULTpublic/css/style.cssUser: Authentication, role management, soft delete with archive/restoreCourse: Course management with semester organizationTopic: Hierarchical content structure (topics → subtopics)Lecture: Content delivery with file attachments and submission requirementsEnrollment: Student-course relationshipsSubmission: Student assignment submissions with gradingrequire_once for model dependenciesinclude __DIR__ . '/../views/...'.env fileconfig/db.php$conn variable used throughout modelsroot user, php_lms databasepublic/uploads/ directorydatabase/migrations/database/seed.sql