PHPackages                             rappasoft/laravel-patches - 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. rappasoft/laravel-patches

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rappasoft/laravel-patches
=========================

Run patches migration style in your Laravel applications.

v4.0.0(6mo ago)5176.0k↓18.5%8MITPHPPHP ^8.2CI failing

Since Mar 8Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/rappasoft/laravel-patches)[ Packagist](https://packagist.org/packages/rappasoft/laravel-patches)[ Docs](https://github.com/rappasoft/laravel-patches)[ GitHub Sponsors](https://github.com/rappasoft)[ RSS](/packages/rappasoft-laravel-patches/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (8)Versions (7)Used By (0)

[![Package Logo](https://camo.githubusercontent.com/f919915041fd8a931a4599583e407c75a06926b3d8e121a3e3d7de1d4a2110e5/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c253230506174636865732e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d7261707061736f66742532466c61726176656c2d70617463686573267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d52756e2b706174636865732b6d6967726174696f6e2b7374796c652b696e2b796f75722b4c61726176656c2b6170706c69636174696f6e732e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d70757a7a6c65)](https://camo.githubusercontent.com/f919915041fd8a931a4599583e407c75a06926b3d8e121a3e3d7de1d4a2110e5/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c253230506174636865732e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d7261707061736f66742532466c61726176656c2d70617463686573267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d52756e2b706174636865732b6d6967726174696f6e2b7374796c652b696e2b796f75722b4c61726176656c2b6170706c69636174696f6e732e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d70757a7a6c65)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9ad68768c6ed58f1a5fb2658d8642458060729f061992621d6e4ba0d328bbd90/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7261707061736f66742f6c61726176656c2d706174636865732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rappasoft/laravel-patches)[![Styling](https://github.com/rappasoft/laravel-patches/actions/workflows/php-cs-fixer.yml/badge.svg)](https://github.com/rappasoft/laravel-patches/actions/workflows/php-cs-fixer.yml)[![Tests](https://github.com/rappasoft/laravel-patches/actions/workflows/run-tests.yml/badge.svg)](https://github.com/rappasoft/laravel-patches/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/edd58c1c88c7454c875990695d803862733e77fc92412b6d24ba7b87df682087/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7261707061736f66742f6c61726176656c2d706174636865732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rappasoft/laravel-patches)

### Enjoying this package? [Buy me a beer 🍺](https://www.buymeacoffee.com/rappasoft)

[](#enjoying-this-package-buy-me-a-beer-)

This package generates patch files in the same fashion Laravel generates migrations. Each file is timestamped with an up and a down method and is associated with a batch. You may run or rollback patches with the commands below.

This is a very simple package. It runs whatever is in your up and down methods on each patch in the order the patches are defined. It currently does not handle any errors or database transactions, please make sure you account for everything and have a backup plan when running patches in production.

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 11.x - 12.x

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

[](#installation)

You can install the package via composer:

```
composer require rappasoft/laravel-patches
```

Publish and run the migrations:

```
php artisan vendor:publish --provider="Rappasoft\LaravelPatches\LaravelPatchesServiceProvider" --tag="laravel-patches-migrations"
php artisan migrate
```

Documentation and Usage Instructions
------------------------------------

[](#documentation-and-usage-instructions)

See the [documentation](https://rappasoft.com/docs/laravel-patches) for detailed installation and usage instructions.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Anthony Rappa](https://github.com/rappasoft)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance65

Regular maintenance activity

Popularity43

Moderate usage in the ecosystem

Community14

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 93.4% 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 ~433 days

Total

5

Last Release

209d ago

Major Versions

v1.0.0 → v2.0.02022-02-19

v2.0.1 → v3.0.02023-04-04

v3.0.0 → v4.0.02025-12-06

PHP version history (3 changes)v1.0.0PHP ^7.4|^8.0

v2.0.0PHP ^8.0

v4.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/7391f7cc3ee64ecd12d948708b2c3d901d2baa20f34a16523b9d7f2e167abb5b?d=identicon)[rappa819](/maintainers/rappa819)

---

Top Contributors

[![rappasoft](https://avatars.githubusercontent.com/u/6026504?v=4)](https://github.com/rappasoft "rappasoft (57 commits)")[![krnsptr](https://avatars.githubusercontent.com/u/16422181?v=4)](https://github.com/krnsptr "krnsptr (2 commits)")[![romualdj](https://avatars.githubusercontent.com/u/109513783?v=4)](https://github.com/romualdj "romualdj (2 commits)")

---

Tags

rappasoftlaravel-patches

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/rappasoft-laravel-patches/health.svg)

```
[![Health](https://phpackages.com/badges/rappasoft-laravel-patches/health.svg)](https://phpackages.com/packages/rappasoft-laravel-patches)
```

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[stephenjude/laravel-wallet

A simple wallet implementation for Laravel

26611.9k](/packages/stephenjude-laravel-wallet)[tapp/filament-form-builder

User facing form builder using Filament components

132.4k3](/packages/tapp-filament-form-builder)

PHPackages © 2026

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