Skip to content

PHP and Laravel interview reference

A gap-driven reference for an experienced developer who wants to attach precise names and mental models to existing practice, correct inaccurate intuitions, and prepare for regular and senior PHP/Laravel interviews.

This is not a linear course or beginner tutorial. Start from a question, misconception, or weak area and follow the relevant topic. Pages prioritize mechanisms, distinctions, trade-offs, failure modes, and interview prompts over exhaustive API coverage.

  1. Read how to use this repository.
  2. Use the knowledge-gap audit to select topics.
  3. Choose a focused route from study routes.
  4. Rehearse with the interview question bank.
  5. Check the version guide before relying on version-sensitive details.
  6. For repository expansion work, follow the content authoring standard and expansion roadmap.

Pages marked Outline define scope for later expansion. Existing concise pages are retained as usable summaries and will be split or deepened section by section.

When expanding a page, prefer this sequence:

  1. Precise definition
  2. Mechanism
  3. Common confusion
  4. Production consequence or failure mode
  5. Alternatives and trade-offs
  6. Version or legacy context where relevant
  7. Precision, diagnosis, and decision interview prompts

Basics may be linked rather than retaught. A page should explain enough to correct a mental model, not duplicate official documentation.

Claims that can age should link to primary documentation. Timeless concepts can be summarized without citation clutter. See the version and compatibility guide and primary-source map.

The repository includes an Astro Starlight site generated from these Markdown files. The root content directories remain the canonical source; npm run sync:content creates ignored, Starlight-ready copies under src/content/docs.

Terminal window
npm install
npm run dev

Run npm run check to validate the Astro project and npm run build to generate the static site in dist/ and verify its local links. Any static host can serve that directory. Set SITE_URL to the deployed origin to generate a sitemap and canonical metadata.

Search indexing is disabled by default for semi-public deployments. Set INDEX_SITE=true during the production build to allow indexing, for example SITE_URL=https://reference.example.com INDEX_SITE=true npm run build.