Download the PHP package rubenrua/symfony-clean-tags-composer-plugin without Composer

On this page you can find all versions of the php package rubenrua/symfony-clean-tags-composer-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 symfony-clean-tags-composer-plugin

Symfony Clean Tags Composer Plugin

Motivation

It was recently identified that Composer consumes high CPU + memory on packages that have a lot of historical tags. See composer/composer#7577

This means the composer+packagist infrastructure has a scalability issue: as time passes, the list of tags per packages grows, and the "Composer experience" degrades. This is significant for symfony/* today, and will become also a pain for any other packages over time.

symfony/flex solves this issue with a patch from @nicolas-grekas using a new extra parameter extra.symfony.require: symfony/flex#378 and symfony/flex#409

This project extracts this patch into a separete composer plugin for legacy projects (PHP5 and Symony 2/3)

Internal big project Sylius/Sylius-Standard laravel/laravel
extra.symfony.require "2.8.*" "^3.4|^4.1" "~4.0"
Before Memory: 337.9MB (peak: 1582.09MB), time: 31.84s Memory: 384.84MB (peak: 1670.44MB), time: 28.11s Memory: 265.09MB (peak: 417.44MB), time: 6.57s
After Memory: 183.05MB (peak: 286.56MB), time: 11.04s Memory: 218.76MB (peak: 251.73MB), time: 5.02s Memory: 210.17MB (peak: 236.37MB), time: 4.38s

Installation

Step 1: Profile application without the plugin

Open a command console, enter your project directory and execute the following command to profile the current memory and CPU time usage.

Write down it to compare with the final step.

Step 2: Download the Bundle

Execute the following command to installs the composer plugin:

or globally with:

Step 3: Configure the new extra parameter

Configure extra.symfony.require with the same symfony version constraints used in the application. For instance, if you are using symfony 2.8, execute the following command to modify the config composer section:

Also the SYMFONY_REQUIRE environment variable can be used instead of extra.symfony.require. See symfony/symfony travis configuration for a example.

Step 4: Profile application with the plugin

Finally profile the current memory and CPU time usage. Execute again the following command:

Please, feel free to comment the issue #3 with your improvement.

Notes


All versions of symfony-clean-tags-composer-plugin with dependencies

PHP Build Version
Package Version
Requires composer-plugin-api Version ^1.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 rubenrua/symfony-clean-tags-composer-plugin contains the following files

Loading the files please wait ....