PHP

About

PHParrow-up-right 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).

circle-info

For more details read the official documentationarrow-up-right.

Requirements

No requirements.

VSCode

VSCode extensions

bmewburn.vscode-intelephense-client

This extensionarrow-up-right provides PHP IntelliSense for Visual Studio Code.

felixfbecker.php-debug

This extensionarrow-up-right is a PHP debugger adapter for Visual Studio Code.

junstyle.php-cs-fixer

This extensionarrow-up-right provides PHP CS Fixerarrow-up-right command.

This extension permits to formatarrow-up-right the PHP code.

ikappas.phpcs

This extensionarrow-up-right is a linter plugin for Visual Studio Code that provides an interface to phpcsarrow-up-right.

MehediDracula.php-namespace-resolver

PHP Namespace Resolverarrow-up-right can import and expand your class. You can also sort your imported classes by line length or in alphabetical order.

brapifra.phpserver

This extensionarrow-up-right allows starting / stopping a PHP server in your current workspace (or subfolder).

ecodes.vscode-phpmd

This extensionarrow-up-right analyzes your PHP source code on save with PHP mess detector.

recca0120.vscode-phpunit

This extensionarrow-up-right allows to run PHP tests.

VSCode settings

Global settings

Windows settings

circle-info

Assuming you have installed in the default directory C:\VSCode-Anywhere.

Linux settings

circle-info

Assuming you have installed in the directory /home/myuser/VSCode-Anywhere.

VSCode keybindings

No keybindingsarrow-up-right.

Software

Windows software

scoop

Linux software

nix

MacOS software

brew

Documentation

VSCode-Anywhere

Environment

Windows environment

circle-info

Assuming you have installed in the default directory C:\VSCode-Anywhere.

Linux environment

circle-info

Assuming you have installed in the directory /home/myuser/VSCode-Anywhere.

Specific settings

extensions

Allow to manage PHP extensionsarrow-up-right in php.ini arrow-up-rightfile.

This is a simple list of extensions to enable in PHP.

  • Windows

composer

Allow installing packages with composerarrow-up-right.

  • 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 statesarrow-up-right or can be global Saltstack argumentsarrow-up-right.

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.installedarrow-up-right)

  • composer:pkgs:opts:update: allow passing arguments to all composer packages when updating a package (cf states.composer.updatearrow-up-right)

  • 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.installedarrow-up-right)

  • composer:pkgs:<mypkg>:opts:update: allow to pass arguments to <mypkg> composer packages when updating the package (cf states.composer.updatearrow-up-right)

  • composer:pkgs:<mypkg>:opts:uninstall: not yet implemented

  • global:

  • Windows:

circle-info

Assuming you have installed in the default directory C:\VSCode-Anywhere.

  • Linux:

circle-info

Assuming you have installed in the directory /home/myuser/VSCode-Anywhere.

pecl

PECLarrow-up-right 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 statesarrow-up-right or can be global Saltstack argumentsarrow-up-right.

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.installedarrow-up-right)

  • 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.installedarrow-up-right)

  • pecl:pkgs:<mypkg>:opts:update: not yet implemented

  • pecl:pkgs:<mypkg>:opts:uninstall: not yet implemented

circle-info

Replace <mypkg> by the name of the package to install.

  • global:

  • Linux:

Last updated