PHPackages                             osio/magento-autopatch - 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. [Security](/categories/security)
4. /
5. osio/magento-autopatch

ActiveMagento2-module[Security](/categories/security)

osio/magento-autopatch
======================

The Patch AutoUpdater module for Magento 2 automates the process of checking and applying patches

0.2.2(1y ago)7383MITPHPPHP ^7.4 || ^8.1

Since Oct 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/aliuosio/MagentoAutoPatch)[ Packagist](https://packagist.org/packages/osio/magento-autopatch)[ GitHub Sponsors](https://github.com/aliuosio)[ RSS](/packages/osio-magento-autopatch/feed)WikiDiscussions main Synced today

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

Magento Auto Patch
==================

[](#magento-auto-patch)

The **MagentoAutoPatch** module for Magento 2 automates the process of checking for and applying **minor patches (example: 2.4.6 - 2.4.6-p2)**. It integrates directly with Magento’s patch management system, reducing the need for manual intervention, ensuring your store remains secure and up-to-date.

Features
--------

[](#features)

- **Automated Patch Lookup**: Automatically checks for the latest patches and notifies you per E-Mail
- **Automated Patch Install**: Automatically applies the latest patches.
- **For Adobe Commerce and Magento Open Source**
- **Notifies you** before and after the update per E-Mail
- **Custom CLI Command**: Use `bin/magento patch:update` to manually check and apply patches.
- **Logging**: log errors `auto-patch.log`. This get sent on failure with the after patch notification
- **Restricted Usage** Access Control List for Backend Users depending on the User Group

### Support

[](#support)

**If something goes wrong or you don't want to apply a patch yourself, feel free to send me an [E-Mail](mailto:auto-patcher@proton.me)**

### Installation

[](#installation)

```
composer require osio/magento-autopatch
bin/magento setup:upgrade

```

### Enable the Module (automates check for new patch and install)

[](#enable-the-module-automates-check-for-new-patch-and-install)

```
stores -> configuration -> Osio -> Auto Patcher -> enable

```

[![Alt text](backend-config.png)](backend-config.png)

### Patch the System (manually check for new patch and install)

[](#patch-the-system-manually-check-for-new-patch-and-install)

```
php -d memory_limit=-1 bin/magento patch:update

```

### Overview automated commands wrapped in this module

[](#overview-automated-commands-wrapped-in-this-module)

- composer require --no-update --dry-run
- composer require --no-update
- composer update --dry-run
- composer update
- bin/magento setup:upgrade
- bin/magento cache:flush
- bin/magento deploy:mode:set production

> bin/magento deploy:mode:set production runs only if magento was in production mode before

> the cronjob checking for a new patch is scheduled everyday at 11 AM Server Time To change this i advice i stalling a cron job manager like

### Minor Requirements

[](#minor-requirements)

Before using the module, ensure your system meets the following requirements:

- **PHP**: Version 7.4 or higher.
- **Composer**: Version 2.1.6 or higher.
- **Magento**: Version 2.4.0 or higher.

### Disclaimer

[](#disclaimer)

This module, **Osio\_MagentoAutoPatch**, is designed to assist with applying Magento patches automatically. **It is intended for use on test or staging servers only.** Before applying any patches or updates to a live production environment, you should thoroughly test them in a non-production environment to ensure compatibility and stability.

I, the author, **Osiozekhai Aliu**, **take no responsibility** for any issues, downtime, or broken functionality that may arise from using this module on production servers. It is strongly recommended that all patches are tested in a controlled environment before being applied to a production server. By using this module, you acknowledge that you are solely responsible for any outcomes resulting from its use.

#### Todos

[](#todos)

- add command implementation: Feedback loop for processes
- add tested on magento versions to README
- refactor process class usage
- add deploy modes handling
- add error handling in extra module log
- add separate log file
- Add backend Dialog and command implementation: Enable switch
- fix Error setting Production Mode when not in production mode
- add comments under fields in system.xml
- add disclaimer to README
- change composer usage
- add minor requirements
- Add backend Dialog and command implementation: notification per mail of available patch
- Add backend Dialog and command implementation: Patch automatically or not (comment cron has to bee set up to use)
- Add backend Dialog and command implementation: notification per mail of after auto-patch
- Add ACL
- add auto-patch.log as Attachment to after patch mail

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

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

Every ~2 days

Total

6

Last Release

605d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2536788?v=4)[Osiozekhai Aliu](/maintainers/aliuosio)[@aliuosio](https://github.com/aliuosio)

---

Top Contributors

[![aliuosio](https://avatars.githubusercontent.com/u/2536788?v=4)](https://github.com/aliuosio "aliuosio (192 commits)")

---

Tags

magentopatchsecurity

### Embed Badge

![Health badge](/badges/osio-magento-autopatch/health.svg)

```
[![Health](https://phpackages.com/badges/osio-magento-autopatch/health.svg)](https://phpackages.com/packages/osio-magento-autopatch)
```

###  Alternatives

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.7M143](/packages/mews-purifier)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24820.0k38](/packages/paragonie-ecc)

PHPackages © 2026

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