Skip to main content

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:

  1. Cached composer.phar for faster version toggling.
  2. 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.

Metadata

Release files for composer-version-manager 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for composer-version-manager 1.0.7
File Size Uploaded Provenance Actions
composer version manager-1.0.7.tar.gz 9.2 kB Without provenance Details for composer version manager-1.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for composer-version-manager 1.0.7
File Interpreter ABI Platform Actions
composer_version_manager-1.0.7-py3-none-any.whl Python 3 none any Details for composer_version_manager-1.0.7-py3-none-any.whl

Total release size: 27.6 kB

Release files / composer version manager-1.0.7.tar.gz

Download URL composer version manager-1.0.7.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f9d62da6f1496f5c03f57e5394a275a5a8efba6432484ab2b0a947d58962f3c7
BLAKE2b-256 checksum
How to use checksums
a6ae97a83d07ef8598ace68b5ae6ceb4fec05219dbebf1de234b6b24c9ffebda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.8

Release files / composer_version_manager-1.0.7-py3-none-any.whl

Download URL composer_version_manager-1.0.7-py3-none-any.whl
Size 18.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d53d29be07bbb06c496f8c86d05f5622bec1e2179e7b49cf204ffcf2ab56213
BLAKE2b-256 checksum
How to use checksums
3fbe38bb1ad756a15f559ee91802aa69fdfa48a71b0761c616bce6ca6e5d1e7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.8

Security for composer-version-manager 1.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.7 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page