PHPackages                             knplabs/knp-console-autocomplete-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. knplabs/knp-console-autocomplete-bundle

AbandonedArchivedSymfony-bundle

knplabs/knp-console-autocomplete-bundle
=======================================

This Symfony2 bundle provides a simple way of autocompleting your commands in your shell.

3834.9k3[2 issues](https://github.com/KnpLabs/KnpConsoleAutocompleteBundle/issues)PHP

Since Jun 4Pushed 11y ago29 watchersCompare

[ Source](https://github.com/KnpLabs/KnpConsoleAutocompleteBundle)[ Packagist](https://packagist.org/packages/knplabs/knp-console-autocomplete-bundle)[ RSS](/packages/knplabs-knp-console-autocomplete-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

THIS PROJECT IS NO LONGER MAINTAINED by KnpLabs
-----------------------------------------------

[](#this-project-is-no-longer-maintained-by-knplabs)

Contact us if you want to be the official maintainer of this Bundle

ConsoleAutocompleteBundle
=========================

[](#consoleautocompletebundle)

This bundle provides a simple way of autocompleting your commands in your shell.

Installation
------------

[](#installation)

Installation is a quick (I promise!) 4 step process:

1. Download KnpConsoleAutocompleteBundle
2. Configure the Autoloader
3. Enable the Bundle
4. Add profile shortcut

### Step 1: Download KnpConsoleAutocompleteBundle

[](#step-1-download-knpconsoleautocompletebundle)

Ultimately, the KnpConsoleAutocompleteBundle files should be downloaded to the `vendor/bundles/Knp/Bundle/ConsoleAutocompleteBundle` directory.

This can be done in several ways, depending on your preference. The first method is the standard Symfony2 method.

**Using the vendors script**

Add the following lines in your `deps` file:

```
[KnpConsoleAutocompleteBundle]
    git=https://github.com/KnpLabs/KnpConsoleAutocompleteBundle.git
    target=/bundles/Knp/Bundle/ConsoleAutocompleteBundle

```

Now, run the vendors script to download the bundle:

```
$ php bin/vendors install
```

**Using submodules**

If you prefer instead to use git submodules, then run the following:

```
$ git submodule add git://github.com/KnpLabs/KnpConsoleAutocompleteBundle.git vendor/bundles/Knp/Bundle/ConsoleAutocompleteBundle
$ git submodule update --init
```

### Step 2: Configure the Autoloader

[](#step-2-configure-the-autoloader)

Add the `Knp` namespace to your autoloader:

```
