PHP
Last updated
Was this helpful?
Last updated
Was this helpful?
PHP is a popular general-purpose scripting language that is especially suited to web development.
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.
No requirements.
This extension provides PHP IntelliSense for Visual Studio Code.
This extension is a PHP debugger adapter for Visual Studio Code.
This extension provides PHP CS Fixer command.
This extension permits to format the PHP code.
This extension is a linter plugin for Visual Studio Code that provides an interface to phpcs.
PHP Namespace Resolver can import and expand your class. You can also sort your imported classes by line length or in alphabetical order.
This extension allows starting / stopping a PHP server in your current workspace (or subfolder).
This extension analyzes your PHP source code on save with PHP mess detector.
This extension allows to run PHP tests.
Assuming you have installed in the default directory C:\VSCode-Anywhere
.
Assuming you have installed in the directory /home/myuser/VSCode-Anywhere
.
No keybindings.
Assuming you have installed in the default directory C:\VSCode-Anywhere
.
Assuming you have installed in the directory /home/myuser/VSCode-Anywhere
.
Allow to manage PHP extensions in php.ini file.
This is a simple list of extensions to enable in PHP.
Windows
Allow installing packages with composer.
pkgs
: name of the packages to install
enabled
: True
to enable
, False
to skip (default to False
)
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 package
pm: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 package
composer: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 allows to install php extensions.
pkgs
: name of the extension to install
enabled
: True
to enable
, False
to skip (default to False
)
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 package
pm:pkgs:opts:install
: allow passing arguments to all pecl packages when installing a package (cf states.pecl.installed)
pecl:pkgs:opts:update
: not yet implemented
pecl: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 package
pecl: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 implemented
pecl:pkgs:<mypkg>:opts:uninstall
: not yet implemented
Replace <mypkg>
by the name of the package to install.
global:
Linux: