SartajPHP + PHP IntelliSenseThis extension provides SartajPHP support for SartajPHP Framework, php development + IntelliSense for Visual Studio Code. For Discussion Join the chat InstallationAdd File Association for app, use vs code menu file->preferences->settings and search. "files.associations": { ".app": "php", ".front": "php", "*.sphp": "json" } you also need to setup php and sphpserver executeables path. set sphpserver path in php.sphpExecutablePath : "up folder/..../node_modules/sphpdesk/sphpserver/sphpserver-win.exe" or on linux it is sphpserver-linux file. setting to run SphpServer App. Install SphpServer with sphpdesk npm package npm install -g sphpdesk https://www.npmjs.com/package/sphpdesk You need at least PHP 7.4 installed for the extension to work. You can either add it to your PATH or set the Note: PHP 8.0 does work, PHP 8.1 support is work in progress. I recommend to disable VS Code's built-in PHP IntelliSense by setting Key Binding and CommandsRun:- F7 , It detects settings from app.sphp if not available then run as console app Stop:- Ctrl+Alt+s Stop Running Project or use CTRL + C if running in terminal Create Project:- First open empty folder and run Command SartajPHP:create with ctrl+shift+p Create Phar Pacakge:- run Command SartajPHP:dist with ctrl+shift+p Todo
CompletionSignature HelpWorkspace symbol searchFind all ReferencesGo to DefinitionHoverFind all symbolsColumn-accurate error reportingCredits |