PHPackages                             integer-net/magento2-regenerate-coupon-uses - 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. [CLI &amp; Console](/categories/cli)
4. /
5. integer-net/magento2-regenerate-coupon-uses

ActiveMagento2-module[CLI &amp; Console](/categories/cli)

integer-net/magento2-regenerate-coupon-uses
===========================================

Regenerate coupon uses via command line so coupons cannot be used twice.

1.0.0(2y ago)02.5kMITPHPPHP ~8.1

Since Aug 25Pushed 2y ago9 watchersCompare

[ Source](https://github.com/integer-net/magento2-regenerate-coupon-uses)[ Packagist](https://packagist.org/packages/integer-net/magento2-regenerate-coupon-uses)[ RSS](/packages/integer-net-magento2-regenerate-coupon-uses/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

IntegerNet\_RegenerateCouponUses Magento Module
===============================================

[](#integernet_regeneratecouponuses-magento-module)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1db75f28354c66504897c71176c4c31de667673030779cdee0765395fc01f59d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e74656765722d6e65742f6d6167656e746f322d726567656e65726174652d636f75706f6e2d757365732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/integer-net/magento2-regenerate-coupon-uses)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Supported Magento Versions](https://camo.githubusercontent.com/2113b3a30955562f026a2b7dda3a09fee30d0c49aacbfce67193c5dc7b434617/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d322e342d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/2113b3a30955562f026a2b7dda3a09fee30d0c49aacbfce67193c5dc7b434617/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d322e342d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666c61742d737175617265)

---

Regenerate coupon uses via command line so coupons cannot be used twice.

This can be used if the Message Queue consumer `sales.rule.update.coupon.usage` wasn't running successfully and coupon usages haven't been recorded. Make sure that the consumer runs again after this command has been executed.

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

[](#installation)

1. Install it into your Magento 2 project with composer:

    ```
    composer require integer-net/magento2-regenerate-coupon-uses

    ```
2. Enable module

    ```
    bin/magento setup:upgrade

    ```

Usage
-----

[](#usage)

Execute on the command line:

```
bin/magento coupon:usage:regenerate

```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Andreas von Studnitz](https://github.com/avstudnitz)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

991d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/78e73cb79c6200c1d74eb632e79da9d227041735160b9795a1146537ba58f386?d=identicon)[integer-net](/maintainers/integer-net)

---

Top Contributors

[![avstudnitz](https://avatars.githubusercontent.com/u/662059?v=4)](https://github.com/avstudnitz "avstudnitz (9 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/integer-net-magento2-regenerate-coupon-uses/health.svg)

```
[![Health](https://phpackages.com/badges/integer-net-magento2-regenerate-coupon-uses/health.svg)](https://phpackages.com/packages/integer-net-magento2-regenerate-coupon-uses)
```

###  Alternatives

[yireo/magento2-theme-commands

CLI commands to manipulate themes

1334.2k1](/packages/yireo-magento2-theme-commands)[macopedia/magento2-categoryimporter

Category Importer for Magento 2

344.6k](/packages/macopedia-magento2-categoryimporter)

PHPackages © 2026

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