Download the PHP package wiistriker/composer-override-reqs-plugin without Composer

On this page you can find all versions of the php package wiistriker/composer-override-reqs-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package composer-override-reqs-plugin

Composer Override Reqs Plugin

Latest Unstable Version License

English version


Русская версия

Для чего этот плагин?

Иногда при работе с Composer возникает проблема: некоторые пакеты имеют слишком жёсткие ограничения по версиям зависимостей.
Например, пакет dama/doctrine-test-bundle:6.7.5 требует:

Это означает, что пакет можно установить только вместе с Symfony 4.4, 5.3 или 6.0.
Однако на практике часто бывает так, что пакет вполне работает и с промежуточными версиями, например Symfony 5.0–5.2.

Как можно обойти ограничение?

Существуют стандартные варианты, но у них есть недостатки:

Если по каким-то причинам эти методы вам (как и мне), не подошли, то можно попробовать данный плагин. Минус у данного плагина в том, что он использует Reflection, поэтому не гарантируется работа при выходе новых версий composer.


Установка и настройка

Установите плагин:

Добавьте в composer.json секцию extra.requirements-override.override:

После этого запустите:

Теперь dama/doctrine-test-bundle установится и на Symfony 5.0, так как зависимости были переопределены.


English version

What is this plugin for?

Sometimes Composer packages come with overly strict dependency constraints.
For example, dama/doctrine-test-bundle:6.7.5 requires:

This means the bundle can only be installed with Symfony 4.4, 5.3, or 6.0.
But in reality, it would also work just fine with Symfony 5.0–5.2.

How can we bypass this?

Typical workarounds exist, but each has drawbacks:

If, for some reason, these methods (just like for me) didn’t work for you, you can try this plugin instead.
The downside of this plugin is that it relies on Reflection, so compatibility with future Composer releases is not guaranteed.


Installation & Usage

Install the plugin:

Then add the extra.requirements-override.override section in your composer.json:

Finally, run:

Now dama/doctrine-test-bundle will install even with Symfony 5.0, since the dependency constraints were overridden.


All versions of composer-override-reqs-plugin with dependencies

PHP Build Version
Package Version
Requires composer-plugin-api Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wiistriker/composer-override-reqs-plugin contains the following files

Loading the files please wait ...