PHP
About
PHP is a popular general-purpose scripting language that is especially suited to web development.
Installation
Change enable
from False
to True
in the php
section (cf module installation).
You can also take a look at the VSCode-Anywhere php module configuration.
For more details read the official documentation.
Requirements
No requirements.
VSCode
VSCode extensions
bmewburn.vscode-intelephense-client
This extension provides PHP IntelliSense for Visual Studio Code.
felixfbecker.php-debug
This extension is a PHP debugger adapter for Visual Studio Code.
junstyle.php-cs-fixer
This extension provides PHP CS Fixer command.
This extension permits to format the PHP code.
ikappas.phpcs
This extension is a linter plugin for Visual Studio Code that provides an interface to phpcs.
MehediDracula.php-namespace-resolver
PHP Namespace Resolver can import and expand your class. You can also sort your imported classes by line length or in alphabetical order.
brapifra.phpserver
This extension allows starting / stopping a PHP server in your current workspace (or subfolder).
ecodes.vscode-phpmd
This extension analyzes your PHP source code on save with PHP mess detector.
recca0120.vscode-phpunit
This extension allows to run PHP tests.
VSCode settings
Global settings
Windows settings
Assuming you have installed in the default directory C:\VSCode-Anywhere
.
Linux settings
Assuming you have installed in the directory /home/myuser/VSCode-Anywhere
.
VSCode keybindings
No keybindings.
Software
Windows software
scoop
Linux software
nix
MacOS software
brew
Documentation
VSCode-Anywhere
Environment
Windows environment
Assuming you have installed in the default directory C:\VSCode-Anywhere
.
Linux environment
Assuming you have installed in the directory /home/myuser/VSCode-Anywhere
.
Specific settings
extensions
Allow to manage PHP extensions in php.ini file.
This is a simple list of extensions to enable in PHP.
Windows
composer
Allow installing packages with composer.
pkgs
: name of the packages to installenabled
:True
toenable
,False
to skip (default toFalse
)version
: the version of the composer package
opts
opts
is not mandatory but allows to pass additional arguments.
Extra args can be arguments described in the Saltstack composer states or can be global Saltstack arguments.
Global opts
packages settings:
composer:pkgs:opts:global
: allow passing arguments to all composer packages when installing, updating, or uninstalling a packagepm:pkgs:opts:install
: allow passing arguments to all composer packages when installing a package (cf states.composer.installed)composer:pkgs:opts:update
: allow passing arguments to all composer packages when updating a package (cf states.composer.update)composer:pkgs:opts:uninstall
: not yet implemented
Specific opts
packages settings:
composer:pkgs:<mypkg>:opts:global
: allow passing arguments to<mypkg>
composer package when installing, updating, or uninstalling the packagecomposer:pkgs:<mypkg>:opts:install
: allow to pass arguments to<mypkg>
composer packages when installing the package (cf states.composer.installed)composer:pkgs:<mypkg>:opts:update
: allow to pass arguments to<mypkg>
composer packages when updating the package (cf states.composer.update)composer:pkgs:<mypkg>:opts:uninstall
: not yet implemented
global:
Windows:
Assuming you have installed in the default directory C:\VSCode-Anywhere
.
Linux:
Assuming you have installed in the directory /home/myuser/VSCode-Anywhere
.
pecl
PECL allows to install php extensions.
pkgs
: name of the extension to installenabled
:True
toenable
,False
to skip (default toFalse
)version
: the version of the pecl extension
opts
opts
is not mandatory but allows to pass additional arguments.
Extra args can be arguments described in the Saltstack pecl states or can be global Saltstack arguments.
Global opts
packages settings:
pecl:pkgs:opts:global
: allow passing arguments to all pecl packages when installing, updating, or uninstalling a packagepm:pkgs:opts:install
: allow passing arguments to all pecl packages when installing a package (cf states.pecl.installed)pecl:pkgs:opts:update
: not yet implementedpecl:pkgs:opts:uninstall
: not yet implemented
Specific opts
packages settings:
pecl:pkgs:<mypkg>:opts:global
: allow passing arguments to<mypkg>
pecl package when installing, updating, or uninstalling the packagepecl:pkgs:<mypkg>:opts:install
: allow passing arguments to<mypkg>
pecl packages when installing the package (cf states.pecl.installed)pecl:pkgs:<mypkg>:opts:update
: not yet implementedpecl:pkgs:<mypkg>:opts:uninstall
: not yet implemented
Replace <mypkg>
by the name of the package to install.
global:
Linux:
Last updated