Download the PHP package martinsr/constraint-updater without Composer

On this page you can find all versions of the php package martinsr/constraint-updater. 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 constraint-updater

Composer constraint updater

Tests Code style Static analysis codecov


Helps You automatically resolve composer conflicts

E.g. Need to upgrade your framework to the newest version? Just run

Want to upgrade minor versions and also update your compose.json file to the up-to-date versions? Run

Installation

Use composer to automatically add it Your project

How to use

How it works

major-update

It will replace all your composer.json package versions with * except for packages You have added with --constraint.

Versions you add for the packages will be taken literally.

Examples:

constraint=laravel/framework:^10.0 will set the version to ^10.0 constraint=laravel/framework:10.0 will set it to 10.0.

Would suggest to always add the ^ since composer will still keep the major version the same, while updating to the newest minor version other packages support.

This will make composer install the most up-to-date versions possible, taken the constraints and there won't be any conflicts as long as there is a supported version.

After composer update has been run, it will fix your composer.json file from versions that were installed and specified in Your composer.lock

minor-update

This will run composer update and after that fix the composer.json with the actual versions that were installed.

Examples:

Run

Will run composer update command, and rebuild composer.json file to have up-to-date dependencies with the lock file

How to contribute

  1. Select a GitHub issue or create one
  2. Pull the repository locally
  3. For development use PHP 8.1
  4. Run composer install
  5. To check if everything is set up, run tests with composer test
  6. Make your changes, add tests and fix code quality
  7. Submit a pull request!🎉

Code quality

To run complete code quality use:

To run rector use:

To run php-stan use:

To convert unsafe functions use:

To fix code styling use:

Testing

To run tests use


All versions of constraint-updater with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
composer-plugin-api Version ^2.3
thecodingmachine/safe Version ^2.5
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 martinsr/constraint-updater contains the following files

Loading the files please wait ....