|
| 1 | +Metadata-Version: 2.1 |
| 2 | +Name: Bold-Composer-Version-Manager |
| 3 | +Version: 1.0.6 |
| 4 | +Summary: UNKNOWN |
| 5 | +Home-page: https://github.com/composer-version-manager/cvm |
| 6 | +License: MIT |
| 7 | +Description: # Composer Version Manager |
| 8 | + |
| 9 | + [Composer 2](https://getcomposer.org/upgrade/UPGRADE-2.0.md) is here. It's time for a one stop shop for switching between major (and minor |
| 10 | + 👶) composer versions. Erase "using the right composer version" from your workflow. |
| 11 | + |
| 12 | + > But wait, what about `composer self-update --1` and `--2`? |
| 13 | + |
| 14 | + Well I'm glad you've asked! |
| 15 | + |
| 16 | + There are some added benefits this CLI and shell hook will bring to you: |
| 17 | + |
| 18 | + 1. Cached `composer.phar` for faster version toggling. |
| 19 | + 1. Per-directory smart composer environments. It's as simple as `cd my-project` and the right composer version will be used. |
| 20 | + |
| 21 | + ## Installation |
| 22 | + |
| 23 | + Choose one of the options below to install cvm. |
| 24 | + |
| 25 | + ### Homebrew (MacOS) |
| 26 | + |
| 27 | + ```bash |
| 28 | + brew update |
| 29 | + brew install composer-version-manager/cvm/cvm |
| 30 | + ``` |
| 31 | + |
| 32 | + **Note:** Watch for symlink errors. If you already have an existing `Python3` installation you may be required to run the following command: |
| 33 | + |
| 34 | + ```bash |
| 35 | + brew link --overwrite cvm |
| 36 | + ``` |
| 37 | + |
| 38 | + ### Chocolatey (Windows) |
| 39 | + |
| 40 | + *TODO* |
| 41 | + |
| 42 | + ### Download binary and update PATH |
| 43 | + |
| 44 | + *TODO* |
| 45 | + |
| 46 | + ## Hook onto your shell |
| 47 | + |
| 48 | + Hooking onto your shell enables cvm [Smart usage](#smart-usage) for per-directory automated composer verrsioning. |
| 49 | + |
| 50 | + Find the instructions for your shell below. If your shell is not listed please feel free to [submit a feature request](https://github.com/composer-version-manager/cvm/issues/new) issue and we will try and make it happen. |
| 51 | + |
| 52 | + ### **BASH** |
| 53 | + |
| 54 | + Add the following line to the end of your `~/.bashrc` |
| 55 | + |
| 56 | + ```bash |
| 57 | + eval "$(cvm hook bash)" |
| 58 | + ``` |
| 59 | + |
| 60 | + ### **ZSH** |
| 61 | + |
| 62 | + Add the following line to the end of your `~/.zshrc` |
| 63 | + |
| 64 | + ```bash |
| 65 | + eval "$(cvm hook zsh)" |
| 66 | + ``` |
| 67 | + |
| 68 | + ## Smart usage |
| 69 | + |
| 70 | + Create a `.cvm_config` in any directory specifying the composer version you would like to use. Navigating to that directory or any nested directory will automatically enable that composer version in your current workspace. |
| 71 | + |
| 72 | + ```bash |
| 73 | + cd my-project |
| 74 | + echo '2.0.11' > .cvm_config |
| 75 | + ``` |
| 76 | + |
| 77 | + This file can be committed to your source control. |
| 78 | + |
| 79 | + ## Global composer version |
| 80 | + |
| 81 | + You can configure a global composer version. Which will be the default when no parent directory has a `.cvm_config`. |
| 82 | + |
| 83 | + ``` |
| 84 | + cvm list # List available tags |
| 85 | + cvm use 2.0.11 # Globally use a specific composer version |
| 86 | + ``` |
| 87 | + |
| 88 | + ## Authors |
| 89 | + |
| 90 | + ### Morgan Wowk |
| 91 | + |
| 92 | + Morgan is a Software Developer from the wintery lands of Canada 🇨🇦🍁. You can primarily find him on [LinkedIn](https://www.linkedin.com/in/morganwowk/), writing open source or building apps to help [tens of thousands of ecommerce stores](https://boldcommerce.com/). |
| 93 | + |
| 94 | + ### Bhavek Budhia |
| 95 | + |
| 96 | + Likewise, Bhavek resides in the frosty country of Canada ☃️. An avid developer 👨💻 with fortified experience in Python that has helped us develop a clean and extendable codebase. |
| 97 | + |
| 98 | +Platform: UNKNOWN |
| 99 | +Requires-Python: >=3 |
| 100 | +Description-Content-Type: text/markdown |
0 commit comments