PHPackages                             roygoldman/composer-reinstall - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. roygoldman/composer-reinstall

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

roygoldman/composer-reinstall
=============================

Reinstall command for composer.

1.0.1(7y ago)11.1k[1 issues](https://github.com/roygoldman/composer-reinstalll/issues)MITPHP

Since May 6Pushed 7y ago1 watchersCompare

[ Source](https://github.com/roygoldman/composer-reinstalll)[ Packagist](https://packagist.org/packages/roygoldman/composer-reinstall)[ RSS](/packages/roygoldman-composer-reinstall/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Composer Reinstall
==================

[](#composer-reinstall)

This package provides a basic reinstall command for composer.

About
-----

[](#about)

When using the [Composer Package Manager](https://getcomposer.org/), you may find the need to reinstall a given package, either after making changes, or because the package's installation was otherwise damaged. Composer [doesn't provide](https://github.com/composer/composer/issues/3112) this command itself, as such, there isn't a way to handle this process. The package provides a reinstall command for composer.

### How it works

[](#how-it-works)

The reinstall command leverages composers installation mechinism, in order to ensure that the package gets installed correctly. In order to force composer to reinstall a package, you need to remove the package from the system, and then run `composer install`, to download any missing dependencies. With the new command, the package(s) are removed from the filesystem and then the installer is used to redownload the packages.

Installation
------------

[](#installation)

Either add this package to the local or global composer install. To add the package to your project run the following command.

```
composer require roygoldman/composer-reinstall

```

Usage
-----

[](#usage)

Once the package is installed, you should run the following command to reinstall a given package or set of packages.

```
composer reinstall vendor/package [vendor/package2 ...]

```

### Options

[](#options)

The following options are available for the `reinstall` command. These options effect how composer handles package installation.

```
      --apcu-autoloader          Use APCu to cache found/not-found classes.
  -a, --classmap-authoritative   Autoload classes from the classmap only. Implicitly enables `--optimize-autoloader`.
      --dry-run                  Outputs the operations but will not execute anything (implicitly enables --verbose).
      --no-autoloader            Skips autoloader generation.
      --no-dev                   Disables installation of require-dev packages.
      --no-progress              Do not output download progress.
      --no-scripts               Skips the execution of all scripts defined in composer.json file.
      --no-suggest               Do not show package suggestions.
      --prefer-source            Forces installation from package sources when possible, including VCS information.
      --prefer-dist              Forces installation from package dist even for dev versions.
  -o, --optimize-autoloader      Optimize autoloader during autoloader dump.
  -h, --help                     Display this help message
  -q, --quiet                    Do not output any message
  -V, --version                  Display this application version
      --ansi                     Force ANSI output
      --no-ansi                  Disable ANSI output
  -n, --no-interaction           Do not ask any interactive question
      --profile                  Display timing and memory usage information
      --no-plugins               Whether to disable plugins.
  -d, --working-dir=WORKING-DIR  If specified, use the given directory as working directory.
  -v|vv|vvv, --verbose           Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity60

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2559d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d0b02b1400c4c24d0caf4adc94bfbf6baf5b3453fb339bec94a9971738a5535?d=identicon)[roygoldman](/maintainers/roygoldman)

### Embed Badge

![Health badge](/badges/roygoldman-composer-reinstall/health.svg)

```
[![Health](https://phpackages.com/badges/roygoldman-composer-reinstall/health.svg)](https://phpackages.com/packages/roygoldman-composer-reinstall)
```

###  Alternatives

[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M14](/packages/vaimo-composer-patches)[mglaman/composer-drupal-lenient

1317.4M15](/packages/mglaman-composer-drupal-lenient)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5341.9M441](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2122.6M172](/packages/drupal-core-project-message)[olvlvl/composer-attribute-collector

A convenient and near zero-cost way to retrieve targets of PHP 8 attributes

184108.8k8](/packages/olvlvl-composer-attribute-collector)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

41716.4k2](/packages/lullabot-drainpipe)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
