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.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: DiagnoseDiagnoses the system to identify common errors. Composer: Dump AutoloaderDumps the autoloader. Composer: InstallInstalls the project dependencies from the composer.lock file if present, or falls back on the composer.json. 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: 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. 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. |