🚀 PHP Framework Interview Questions


🔥 Laravel Interview Questions

🟢 Basic

  1. What is Laravel?
  2. What is MVC architecture?
  3. What is routing in Laravel?
  4. What is Blade template?
  5. What is middleware?
  6. What is Eloquent ORM?
  7. Difference between GET and POST routes?

🟡 Intermediate

  1. What is migration in Laravel?
  2. What are seeders?
  3. What is CSRF protection?
  4. Explain authentication in Laravel.
  5. What is a service container?
  6. What is dependency injection?
  7. What is a facade in Laravel?
  8. Difference between hasOne and hasMany?

🔴 Advanced

  1. Explain Laravel request lifecycle.
  2. What is queue and job in Laravel?
  3. What is event & listener?
  4. How caching works in Laravel?
  5. What is API resource?
  6. How to optimize Laravel performance?
  7. What is repository pattern?
  8. Explain Laravel security best practices.

⚡ CodeIgniter Interview Questions

🟢 Basic

  1. What is CodeIgniter?
  2. What is MVC in CodeIgniter?
  3. What are controllers?
  4. How to connect database?
  5. What is helper?

🟡 Intermediate

  1. What is session handling?
  2. What is form validation?
  3. What is routing in CodeIgniter?
  4. What is Active Record?

🔴 Advanced

  1. How to improve performance?
  2. Difference between CodeIgniter 3 vs 4?
  3. How to build REST API in CodeIgniter?
  4. Security features in CodeIgniter?

🧠 Symfony Interview Questions

🟢 Basic

  1. What is Symfony?
  2. What are bundles?
  3. What is routing?

🟡 Intermediate

  1. What is dependency injection in Symfony?
  2. What is service container?
  3. What is Doctrine ORM?

🔴 Advanced

  1. Explain Symfony architecture.
  2. What are reusable components?
  3. How Symfony handles large applications?
  4. Difference between Laravel and Symfony?

💥 HR + Practical Questions

  • Explain your last project (Laravel/CI)
  • How do you handle errors?
  • How do you secure a PHP application?
  • How to design REST API?
  • What is your deployment process?

🎯 Pro Tips (Important for Selection)

  • Always explain with real project example
  • Know CRUD + Auth + API
  • Be ready to write basic code
  • Focus more on Laravel 🔥