PHPackages                             elnurvl/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. [Database &amp; ORM](/categories/database)
4. /
5. elnurvl/laravel-patches

ActiveLibrary[Database &amp; ORM](/categories/database)

elnurvl/laravel-patches
=======================

Run patches migration style in your Laravel applications.

3.2.1(1y ago)0683↓26.7%MITPHPPHP ^8.1

Since Mar 8Pushed 1y agoCompare

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

READMEChangelogDependencies (6)Versions (9)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.

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

[](#installation)

You can install the package via composer:

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

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

35

—

LowBetter than 77% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 78% 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 ~214 days

Recently: every ~233 days

Total

7

Last Release

658d ago

Major Versions

v1.0.0 → v2.0.02022-02-19

v2.0.1 → v3.0.02023-04-04

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

v2.0.0PHP ^8.0

3.1.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/43381efbe556c708dfd4fe9c89cfdd4053905fb3909033da33c4aa63aeb7698c?d=identicon)[elnurvl](/maintainers/elnurvl)

---

Top Contributors

[![rappasoft](https://avatars.githubusercontent.com/u/6026504?v=4)](https://github.com/rappasoft "rappasoft (39 commits)")[![elnurvl](https://avatars.githubusercontent.com/u/7970970?v=4)](https://github.com/elnurvl "elnurvl (7 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

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[wnx/laravel-backup-restore

A package to restore database backups made with spatie/laravel-backup.

213421.4k2](/packages/wnx-laravel-backup-restore)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[lacodix/laravel-model-filter

A Laravel package to filter, search and sort models with ease while fetching from database.

17558.6k](/packages/lacodix-laravel-model-filter)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

44855.7k](/packages/harris21-laravel-fuse)[vormkracht10/laravel-mails

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

24857.5k](/packages/vormkracht10-laravel-mails)

PHPackages © 2026

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