Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>SartajPhp IntellisenseNew to Visual Studio Code? Get it now.
SartajPhp Intellisense

SartajPhp Intellisense

Sartaj Singh

|
131 installs
| (2) | Free
Intellisense help for sartajphp projects.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SartajPHP + PHP IntelliSense

This extension provides SartajPHP support for SartajPHP Framework, php development + IntelliSense for Visual Studio Code. For Discussion Join the chat

Installation

Add 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 php.executablePath setting. Install SartajPhp Framework with composer and set start.php path to framework.

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 php.suggest.basic to false to avoid duplicate suggestions. Add res/Score/SphpDoc and res/Slib folder intelephense.environment in VS Code Settings for Autocomplete Help.

How To Use

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 , 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 Commands

Run:- 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

  • SartajPHP Auto Complete Intellisense - Done
  • PHP Auto Complete Intellisense - Removed use other extension
  • Run DeskApp in SphpServer - Done
  • Run Server App - Done
  • Run Console App - Done
  • Add SphpServer (Install Sphpdesk From sartajphp website or NPM package) Support - Done
  • Generate Phar file - Done
  • Run Phar file (Need Sphpdesk NPM package installed on machine with global flag) - Done
  • Run WebApp in browser - Done
  • Run App Events under cursor - Nop
  • TempFile Design Support - Done
  • TempFile Autocomplete - Done
  • Master Designer Support - Done
  • New Project Generator Done

Code Completion Front

Completion Help front file demo

Signature Help

Signature help demo

Code Completion Help SartajPhp App

Completion SartajPhp App demo

Visual Designer

SartajPhp Visual Designer demo

Code Blocks Help

SartajPhp Code Blocks demo

Credits

SartajPHP Intellisense SartajPHP Website

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft