Giter Club home page Giter Club logo

vscode-composer's Introduction

vscode-composer

Current Version Install Count Open Issues

This Visual Studio Code plugin provides an interface to Composer dependency manager for PHP. It also provides schema validation for composer.json configuration files.

Installation

You must install Visual Studio Code and Composer on your system before you can use this plugin.

Visual Studio Code Installation

If Visual Studio Code is not installed, please follow the instructions here.

Composer Installation

If Composer is not installed, please follow the instructions here.

Plugin Installation

  1. Open Visual Studio Code.
  2. Press Ctrl+P on Windows or Cmd+P on Mac to open the Quick Open dialog.
  3. Type ext install composer to find the extension.
  4. Press Enter or click the cloud icon to install it.
  5. Restart Visual Studio Code when prompted.
  6. Go to Visual Studio Code user settings and configure the composer.executablePath setting.

Configuration

You can configure the following options by making changes to your user or workspace preferences.

composer.enabled

[ Scope: Global | Optional | Default: true ]

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:

{
    "composer.executablePath": "/usr/local/bin/composer"
}

Example user settings.json on Windows:

{
    "composer.executablePath": "C:\\ProgramData\\ComposerSetup\\bin\\composer.bat"
}

Important: You will be unable to use this plugin unless you configure this setting before first use.

composer.ignorePlatformReqs

[ Scope: Global | Optional | Default: false ]

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: true ]

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: false ]

Use this setting to run composer commands with the --quiet option.

composer.workingPath

[ Scope: Workspace | Optional | Default: null ]

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:

{
    "composer.workingPath": "/projects/project-root/project-sub-folder"
}

Example user settings.json on Windows:

{
    "composer.workingPath": "C:\\Projects\\ProjectRoot\\ProjectSubFolder"
}

Usage

All composer commands are available through the Command Pallet using F1.

Supported Commands

Composer: About

Display short information about composer.

Composer: Archive

Create an archive of this composer package.

Composer: Clear Cache

Clears composer's internal package cache.

Composer: Depends

Displays detailed information about where a package is referenced.

Composer: Diagnose

Diagnoses the system to identify common errors.

Composer: Dump Autoloader

Dumps the autoloader.

Composer: Fund

Discover how to help fund the maintenance of your dependencies.

Composer: Init

The init command creates a basic composer.json file in the current directory.

Composer: Install

Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json.

Composer: Licenses

Shows information about licenses of dependencies.

Composer: Outdated

Shows a list of installed packages that have updates available, including their current and latest versions.

Composer: Prohibits

Displays detailed information about why a package cannot be installed.

Composer: Remove

Removes a package from the require or require-dev.

Composer: Require

Adds required packages to your composer.json and installs them.

Composer: Run Script

Run the scripts defined in composer.json.

Composer: Self Update

Updates composer.phar to the latest version.

Composer: Show

Show information about packages.

Composer: Status

Show a list of locally modified packages.

Composer: Suggests

Show a sorted list of suggested packages.

Composer: Update

Updates your dependencies to the latest version according to composer.json, and updates the composer.lock file.

Composer: Validate

Validates a composer.json and composer.lock

Composer: Version

Shows the composer version.

Composer: Why

Displays detailed information about where a package is referenced.

Composer: Why Not

Displays detailed information about why a package cannot be installed.

Contributing and Licensing

The 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.