Composer treats all globally installed packages as a single project with shared libraries. It cannot install multiple versions of the same library to meet the requirements of different packages. However, the cgr command can globally install composer packages with conflicting requirements. You install it as a composer package.