This is a temporary guide, while we are working to write a more comprehensive guide for PHP projects in Cursor.

Setting up PHP in Cursor

Configure your PHP development environment in Cursor with these recommendations:

Extensions

Install these essential extensions:
  • PHP Intelephense
  • PHP Debug
  • PHP IntelliSense
  • PHP Namespace Resolver
  • PHP DocBlocker

Development Environment

  • Install PHP
  • Install Composer (PHP package manager)
  • Configure PHP executable path
  • Set up Xdebug for debugging
Enable these Cursor features:
  • Code completion
  • Error detection
  • Code formatting
  • Symbol search
  • Debugging support

Framework Support

Cursor works well with:
  • Laravel
  • Symfony
  • WordPress
  • CodeIgniter
  • Drupal
  • Custom PHP projects