• skip to content

PHP Primer for the AI Era

A PHP Guide for Humans

User Tools

  • Log In

Site Tools

  • Media Manager
  • Sitemap
Trace:

start

Backlinks

This is a list of pages that seem to link back to the current page.

  • 4. How AI Slips Out of Modern PHP — A Meta‑Architectural Guide
  • 3. New in PHP 8.3 / 8.4 — The Evolving Language
  • 1. Fibers — Cooperative Concurrency With Predictable Flow
  • 2. Weak Maps — Memory‑Safe Object Tracking
  • To Delete - 5- Objects — When Data Deserves a Name
  • To Delete - 6- Value Objects — Small, Immutable Pieces of Meaning
  • 2. Arrays & Collections — PHP’s Most Misunderstood Feature
  • 4. Attributes — Adding Meaning Without Adding Weight
  • 10. Constructor Property Promotion — Letting Objects Declare Themselves
  • 7. Enums — Giving Meaningful Shape to Known Values
  • 11. First‑class Callables — Passing Behavior With Clarity
  • 15. Intersection Types — Requiring Multiple Shapes at Once
  • 5. 'Match' — Declarative Branching With Shape and Intent
  • 13. Named Arguments — Making Calls Self‑Documenting
  • 6. Nullsafe — Navigating Uncertainty Without Noise
  • 3. Objects & Data Transfer Objects (DTOs) — Representing Data in Modern PHP
  • 9. Readonly Classes — Declaring Immutable Objects With Intention
  • 8. Readonly Properties — Making Intentional Immutability Visible
  • 12. Short Closures (fn) — Small Functions With Clear Intent
  • 16. Spread Operator in Arrays — Composing Structure With Ease
  • 1. Types & Signatures — The Shape of Modern PHP
  • 14. Union Types — Expressing Multiple Valid Shapes With Clarity
  • 1. About This Wiki
  • Proposed initial structure for the php primer project
  • License
  • 2. Why This Primer Exists
  • 6. Classes & Autoloading — How Modern PHP Organizes Code
  • 7. Error Handling — Exceptions, Types, and Failure Modes
  • 2. Execution Flow — How PHP Processes a File
  • 5. Functions & Closures — How PHP Captures Context
  • 1. Understanding how PHP "thinks": Overview
  • 8. Putting It All Together — How PHP Actually Thinks
  • 3. Request Lifecycle — What Happens During a Request
  • 4. Scope & Lifetime — Where Variables Live
  • 6. Authorization & Access Control — Keeping Capabilities in Their Lane
  • 8. Database Safety — Parameterization, Boundaries, and Least Privilege
  • 3. Escaping and Output Encoding — Keeping Untrusted Data in Its Place
  • 2. Input Validation & Data Shape — The First Security Boundary
  • 7. Handling Secrets — Keys, Tokens, and Environment Boundaries
  • 4. Password Handling — Modern, Safe, and Simple
  • 1. Safe Defaults in Modern PHP — A Foundation for Secure Code
  • 5. Secure Session Practices — Predictable, Boundaried, and Safe
  • 9. Security Fundamentals — A Calm Summary
  • Welcome to your new DokuWiki
  • 4. Working With AI Effectively — A Practical Guide
  • 1. How AI Slips Out of Modern PHP — A Meta‑Architectural Guide
  • 2. Common Patterns AI Uses
  • 6. Guiding AI Toward Better Architecture — Patterns, Prompts, and Mental Models
  • 3. AI and PHP: Understanding Hallucinations and False Assumptions
  • 8. How to Ask AI for Better Refactoring
  • 5. How to Review AI‑Generated Code — A Calm, Structured Approach
  • 7. AI‑Generated Code: When to Trust It, When to Rewrite It
  • 1. Modern PHP by Example — A Gentle 101 for the AI Era
  • 23. The Closing Chapter of the PHP 101 Arc
  • 17. A Simple API Call — Modern HTTP in PHP
  • 3. Arrays — Simple, Flexible, Often Misused
  • 4. Associative Arrays — When Keys Carry Meaning
  • 11. Collections — Groups of Things That Belong Together
  • 18. A Simple Controller — Giving Behavior a Home
  • 10. Entities — When Identity Matters
  • 16. A Simple Database Query — Safe by Default
  • 8. Entities & Value Objects — Two Roles, One Model
  • 22. A Simple Front Controller — The Quiet Coordinator
  • 20. A Simple Error Handler — Keeping Failures Calm
  • 14. Factories — When Object Creation Deserves a Home
  • 5. Functions — Small Units of Behavior
  • 6. Objects — When Data Deserves a Name
  • 12. Repositories — Where Entities Live
  • 19. A Simple Response — Returning Meaning, Not Strings
  • 15. A Simple Router — The Shape of a Request
  • 13. Services — When Behavior Doesn’t Belong to an Entity
  • 7. Two Common Ways We Use Classes in Modern PHP
  • 9. Value Objects — Small, Immutable Pieces of Meaning
  • 2. Variables & Types — The Shape of Data
  • 21. A Simple View — When Presentation Deserves a Home
start.txt · Last modified: 2026/04/16 17:30 by editor

Page Tools

  • Show page
  • Backlinks
  • Back to top
Topics ▼Latest•Oldest•A–Z•My Other Wiki
  • Advanced Concepts
  • Essentials
  • Introduction
  • Mental Model
  • Security Fundamentals
  • Working With Ai
  • Z Appendix 101
My Other Wiki
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki
Theme: Navigator | Tony de Araujo (New York | Lisbon)