PHPackages                             jalameta/jps-patcher - 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. jalameta/jps-patcher

Abandoned → [dentro/laravel-patcher](/?search=dentro%2Flaravel-patcher)Library[Utility &amp; Helpers](/categories/utility)

jalameta/jps-patcher
====================

Laravel patch scripts.

v2.0.0(5y ago)09.8k3MITPHP

Since Aug 10Pushed 5y ago2 watchersCompare

[ Source](https://github.com/jalameta/laravel-patcher)[ Packagist](https://packagist.org/packages/jalameta/jps-patcher)[ RSS](/packages/jalameta-jps-patcher/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

LARAVEL PATCHER
---------------

[](#laravel-patcher)

*A (migration like) patcher for a smoldering production update.*

[![Total Downloads](https://camo.githubusercontent.com/a2a0b0eb41c9569d5d61107ddf775a54ccb19cadcccf133e0802fc2d5613f18e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a616c616d6574612f6a70732d706174636865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jalameta/jps-patcher)[![GitHub Workflow Status](https://camo.githubusercontent.com/a6c8941bb4febba3295c803c74317cfeef6f6bd09b85d80e45de7bba5a0880d8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6a616c616d6574612f6c61726176656c2d706174636865722f74657374733f6c6162656c3d7465737473)](https://camo.githubusercontent.com/a6c8941bb4febba3295c803c74317cfeef6f6bd09b85d80e45de7bba5a0880d8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6a616c616d6574612f6c61726176656c2d706174636865722f74657374733f6c6162656c3d7465737473)

Already tested on:

- Laravel: 6.\* | 7.\* | 8.\*

##### Background :

[](#background-)

Our team has been made a stupid thing that affect database in our project. It was happens many times, and we are usually go tinkering or direct edit on a database to fix those problems. The problem is we need to record those change, so we made this package. Besides, we sometime need to doing bulk insert user for our application, so ***patch*** will be the best solution.

### INSTALLATION

[](#installation)

do either of this methods below.

- via shell

```
composer require jalameta/jps-patcher
```

- adding `"jalameta/jps-patcher": "^2.0"` to `composer.json`

```
{
  "require": {
    "jalameta/jps-patcher": "^2.0"
  }
}
```

### POST INSTALLATION

[](#post-installation)

> this process is optional, you can skip it though.

1. applying into your project.

    - Laravel &gt;= 5.8

        - Automatically loaded :)
    - Laravel &lt;= 5.8

        - Add the `\Jalameta\Patcher\PatcherServiceProvider` into `providers`array in `config/app.php`
2. patches table creation.

    ```
     php artisan patcher:install
    ```

### USAGE

[](#usage)

#### CREATE NEW PATCH

[](#create-new-patch)

for creating new patch you just need to run these following command

```
php artisan make:patch what_do_you_want_to_patch
```

> wait, do you feels familiar huh?, we do too. The truth is, this package is extending laravel migration.

after run those command, you will see new file in `patches` folder. Those file will be like:

```
