← All projects
Capstoneintermediate6h

PHP Blog CRUD Backend

Design (on paper/in guided steps, since this platform can't execute PHP) a small server-rendered blog backend in PHP, applying classes, arrays, and basic web-security practices.

Tracks: PHP Web Development

Objectives

  • Design a Post class (title, body, author, created-at) and a PostRepository for CRUD operations
  • Handle form submission via $_POST to create a new post, validating input before saving
  • Use prepared statements (conceptually) for any database query, never string-concatenated SQL
  • Escape all output with htmlspecialchars() to prevent XSS when rendering posts back to HTML

Before you start

Milestones

0%

References