This repository is a curated collection of PHP interview questions and answers, gathered from various high-quality sources. It aims to be the ultimate resource for developers preparing for PHP-related interviews.
Check out the new Modular Interview Questions Documentation!
This project consolidates different repositories into one place, making it easier to search and study various interview questions. It includes answers for both core PHP and popular frameworks like Laravel and Symfony, as well as related technologies such as MySQL, Redis, Docker, and more.
The content in this repository is sourced from the following GitHub projects:
The content that was used to learn Design Patterns, Refactoring principles:
The repository is organized into subdirectories under src/, each representing a source repository:
src/interview_questions_and_answers/: Detailed questions and answers covering a wide range of topics from core PHP to architecture.src/PHP-LARAVEL-Interview-questions/: PHP and Laravel specific questions by Sabbir Hossain.src/php-interview-questions/: A collection of questions from Devinterview.io.src/zsoro-php-interview-questions/: PHP interview questions by zsoro.To run the frontend locally from the root:
npm run install:docsnpm run devAlternatively, from the docs directory:
cd docsnpm installnpm start or npm run devTo lint and format the codebase:
From the root: npm run lint or npm run format
From the docs directory: npm run lint or npm run format
Alternatively, you can build and run the frontend using Docker:
docker compose up --build
The documentation will be available at http://localhost:8888 (served via Nginx) or http://localhost:3333 (served via Node).
To run the frontend in development mode with hot-reloading:
docker compose run --service-ports node npm run dev
The documentation will be available at http://localhost:3333.