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

ActiveLibrary

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

Run patches migration style in your Laravel applications.

v4.0.0(5mo ago)5173.3k↓25%7[1 PRs](https://github.com/rappasoft/laravel-patches/pulls)MITPHPPHP ^8.2CI passing

Since Mar 8Pushed 5mo 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 1mo ago

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

53

—

FairBetter than 97% of packages

Maintenance71

Regular maintenance activity

Popularity42

Moderate usage in the ecosystem

Community14

Small or concentrated contributor base

Maturity69

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

163d 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

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[rappasoft/laravel-authentication-log

Log user authentication details and send new device notifications.

9671.6M11](/packages/rappasoft-laravel-authentication-log)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[guava/calendar

Adds support for vkurko/calendar to Filament PHP.

298241.0k3](/packages/guava-calendar)[wnx/laravel-sends

Keep track of outgoing emails in your Laravel application.

200427.3k](/packages/wnx-laravel-sends)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)

PHPackages © 2026

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