No project description provided
Project description
Composer Version Manager
Composer 2 is here. It's time for a one stop shop for switching between major (and minor 👶) composer versions. Erase "using the right composer version" from your workflow.
But wait, what about
composer self-update --1
and--2
?
Well I'm glad you've asked!
There are some added benefits this CLI and shell hook will bring to you:
- Cached
composer.phar
for faster version toggling. - Per-directory smart composer environments. It's as simple as
cd my-project
and the right composer version will be used.
Installation
Choose one of the options below to install cvm.
Homebrew (MacOS)
brew update
brew install composer-version-manager/cvm/cvm
Note: Watch for symlink errors. If you already have an existing Python3
installation you may be required to run the following command:
brew link --overwrite cvm
Chocolatey (Windows)
TODO
Download binary and update PATH
TODO
Hook onto your shell
Hooking onto your shell enables cvm Smart usage for per-directory automated composer verrsioning.
Find the instructions for your shell below. If your shell is not listed please feel free to submit a feature request issue and we will try and make it happen.
BASH
Add the following line to the end of your ~/.bashrc
eval "$(cvm hook bash)"
ZSH
Add the following line to the end of your ~/.zshrc
eval "$(cvm hook zsh)"
Smart usage
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.
cd my-project
echo '2.0.11' > .cvm_config
This file can be committed to your source control.
Global composer version
You can configure a global composer version. Which will be the default when no parent directory has a .cvm_config
.
cvm list # List available tags
cvm use 2.0.11 # Globally use a specific composer version
Authors
Morgan Wowk
Morgan is a Software Developer from the wintery lands of Canada 🇨🇦🍁. You can primarily find him on LinkedIn, writing open source or building apps to help tens of thousands of ecommerce stores.
Bhavek Budhia
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for composer version manager-1.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9d62da6f1496f5c03f57e5394a275a5a8efba6432484ab2b0a947d58962f3c7 |
|
MD5 | 19a112678d7e2ddf9a804e883dd24ff7 |
|
BLAKE2b-256 | a6ae97a83d07ef8598ace68b5ae6ceb4fec05219dbebf1de234b6b24c9ffebda |
Hashes for composer_version_manager-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d53d29be07bbb06c496f8c86d05f5622bec1e2179e7b49cf204ffcf2ab56213 |
|
MD5 | 2a815dbaaed4087137ccffdb265cd332 |
|
BLAKE2b-256 | 3fbe38bb1ad756a15f559ee91802aa69fdfa48a71b0761c616bce6ca6e5d1e7e |