vscode-composerThis Visual Studio Code plugin provides an interface to Composer dependency manager for PHP.
It also provides schema validation for InstallationYou must install Visual Studio Code and Composer on your system before you can use this plugin. Visual Studio Code InstallationIf Visual Studio Code is not installed, please follow the instructions here. Composer InstallationIf Composer is not installed, please follow the instructions here. Plugin Installation
ConfigurationYou can configure the following options by making changes to your user or workspace preferences. composer.enabled[ Scope: Global | Optional | Default: Use this setting to enable or disable this plugin. composer.executablePath[ Scope: Global | Required ] Use this setting to specify the absolute path to the composer executable on your system. Example user settings.json on Mac/Linux:
Example user settings.json on Windows:
composer.ignorePlatformReqs[ Scope: Global | Optional | Default: Use this setting to ignore all platform requirements (php, hhvm, lib-* and ext-*) and force the installation even if the local machine does not fulfill these. composer.runInTerminal[ Scope: Global | Optional | Default: Use this setting to defines whether the command is run in a terminal window or whether the output form the command is shown in the Output window. The default is to show the output in the terminal. composer.runQuiet[ Scope: Global | Optional | Default: Use this setting to run composer commands with the composer.workingPath[ Scope: Workspace | Optional | Default: Use this setting to specify the absolute or workspace relative path to your composer.json. If not specified the workspace root path is used as default. Example user settings.json on Mac/Linux:
Example user settings.json on Windows:
UsageAll composer commands are available through the Command Pallet using Supported CommandsComposer: AboutDisplay short information about composer. Composer: ArchiveCreate an archive of this composer package. Composer: Clear CacheClears composer's internal package cache. Composer: DependsDisplays detailed information about where a package is referenced. Composer: DiagnoseDiagnoses the system to identify common errors. Composer: Dump AutoloaderDumps the autoloader. Composer: FundDiscover how to help fund the maintenance of your dependencies. Composer: InitThe init command creates a basic composer.json file in the current directory. Composer: InstallInstalls the project dependencies from the composer.lock file if present, or falls back on the composer.json. Composer: LicensesShows information about licenses of dependencies. Composer: OutdatedShows a list of installed packages that have updates available, including their current and latest versions. Composer: ProhibitsDisplays detailed information about why a package cannot be installed. Composer: RemoveRemoves a package from the require or require-dev. Composer: RequireAdds required packages to your composer.json and installs them. Composer: Run ScriptRun the scripts defined in composer.json. Composer: Self UpdateUpdates composer.phar to the latest version. Composer: ShowShow information about packages. Composer: StatusShow a list of locally modified packages. Composer: SuggestsShow a sorted list of suggested packages. Composer: UpdateUpdates your dependencies to the latest version according to composer.json, and updates the composer.lock file. Composer: ValidateValidates a composer.json and composer.lock Composer: VersionShows the composer version. Composer: WhyDisplays detailed information about where a package is referenced. Composer: Why NotDisplays detailed information about why a package cannot be installed. Contributing and LicensingThe project is hosted on GitHub where you can report issues, fork the project and submit pull requests. The project is available under MIT license, which allows modification and redistribution for both commercial and non-commercial purposes. |