SartajPHP + PHP IntelliSense![]() This 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": "html", "*.sphp": "json" } You may also need to install SphpDesk runtime from Download SphpDesk for some extra features like design view and run app. if you don't have install SphpDesk on standard path or use nodejs package sphpdesk then setup php and sphpserver executeables path. set sphpserver path in php.sphpExecutablePath : "C:/sphpdesk/sphpserver/sphpserver-win.exe" or on linux it is sphpserver-linux file. setting to run SphpServer App. Install SphpServer(For run SartajPhp App in nodejs) with sphpdesk npm package npm install -g sphpdesk https://www.npmjs.com/package/sphpdesk Without Sphpdesk(Design View not work):-
You need at least PHP 5.6 installed for the extension to work. You can either add it to your PATH or set the Note: Php Autocomplete engine droped So use PHP Intelephense or any other. I recommend to disable VS Code's built-in PHP IntelliSense by setting How To UseCreate 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 , You may be need to setting up php.ini file if phar file couldn't create cause of php settings. Run Phar file open with Sphpdesk app. If not installed then install from Download SphpDesk Create Android Project:- Create Android project with Android Studio, Open you Android Project in VS Code and run Command SartajPHP:createmobile with ctrl+shift+p. Now set framework path in SartajPhp Project with start.php file and run with shorcut key F7. I twill compile your project and generate necessary files into android project. Now run android project and test. Learn also about app.sphp settings to run app with sphpdesk, check SartajPhp Framework readme. 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 Todo
Code Completion FrontSignature HelpCode Completion Help SartajPhp AppVisual DesignerCode Blocks HelpCredits |