Skip to content

Commit 8cc393b

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 168dbfa + f6ecda0 commit 8cc393b

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

README.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,35 @@ LARAVEL PATCHER
22
--
33
*A (migration like) patcher for a smoldering production update.* <br>
44

5-
[![Total Downloads](https://img.shields.io/packagist/dt/jalameta/jps-patcher.svg?style=flat-square)](https://packagist.org/packages/jalameta/jps-patcher)
6-
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/jalameta/laravel-patcher/tests?label=tests)
5+
[![Total Downloads](https://poser.pugx.org/dentro/laravel-patcher/downloads)](https://packagist.org/packages/dentro/yalr)
6+
![GitHub Workflow Status](https://github.com/digital-entropy/laravel-patcher/workflows/tests/badge.svg)
77

8-
Already tested on:
9-
* Laravel: 6.* | 7.\* | 8.\*
8+
#### Requirements:
9+
* PHP : 8.\*
10+
* Laravel: 9.\*
1011

1112
##### Background :
12-
Our team has been made a stupid thing that affect database in our project.
13+
Once upon a time, our team do a stupid thing that affect our production database.
1314
It was happens many times, and we are usually go tinkering or direct edit on a
14-
database to fix those problems. The problem is we need to record those change,
15-
so we made this package. Besides, we sometime need to doing
16-
bulk insert user for our application, so ***patch*** will be the best solution.
15+
database to fix those problems.
16+
Then, our team leader [Rifki Alhuraibi](https://github.com/veelasky/) comes up with
17+
the idea about the package that handle history change of our patch activity (like the
18+
one in database migration), so we made this package.
19+
Also, we commonly need to bulk insert data to our application, this package also help
20+
us in those activity.
1721

1822
### INSTALLATION
1923
do either of this methods below.
2024
* via shell
2125
```shell script
22-
composer require jalameta/jps-patcher
26+
composer require dentro/laravel-patcher
2327
```
24-
* adding `"jalameta/jps-patcher": "^2.0"` to `composer.json`
28+
* adding `"dentro/laravel-patcher": "^1.0"` to `composer.json`
2529
```json
2630
{
2731
"require": {
28-
"jalameta/jps-patcher": "^2.0"
32+
...
33+
"dentro/laravel-patcher": "^1.0"
2934
}
3035
}
3136
```
@@ -51,9 +56,6 @@ for creating new patch you just need to run these following command
5156
```shell script
5257
php artisan make:patch what_do_you_want_to_patch
5358
```
54-
> wait, do you feels familiar huh?, we do too.
55-
The truth is, this package is extending laravel migration.<br>
56-
>
5759
after run those command, you will see new file in `patches` folder.
5860
Those file will be like:
5961
```php
@@ -76,7 +78,7 @@ class WhatDoYouWantToPatch extends Patch
7678
}
7779
```
7880
Method `patch` on these file will be filled with your logic.
79-
in ```Jalameta\Patcher\Patch``` there is some useful properties
81+
in ```Dentro\Patcher\Patch``` there is some useful properties
8082
that you can use for supporting your patch such as:
8183
1. `$container: \Illuminate\Container\Container`
8284
2. `$command: \Illuminate\Console\Command`
@@ -87,7 +89,7 @@ that you can use for supporting your patch such as:
8789
> $this->command->warn('i patch something danger!');
8890
> $this->command->confirm('do you wish to continue?');
8991
> ```
90-
> you can learn more about `\Illuminate\Console\Command` [here](https://laravel.com/api/8.x/Illuminate/Console/Command.html).
92+
> you can learn more about `\Illuminate\Console\Command` [here](https://laravel.com/api/9.x/Illuminate/Console/Command.html).
9193
9294
3. `$logger: \Illuminate\Log\Logger`
9395
@@ -109,7 +111,6 @@ php artisan patcher:status
109111
```
110112
Example:
111113
```shell script
112-
my_project on  master [$!] via ⬢ v14.14.0 via 🐘 v7.4.11 on 🐳 v19.03.13
113114
➜ php artisan patcher:status
114115
+------+---------------------------------------+-------+
115116
| Ran? | Patch | Batch |
@@ -125,7 +126,6 @@ php artisan patcher:run
125126
```
126127
Example:
127128
```shell script
128-
my_project on  master [$!] via ⬢ v14.14.0 via 🐘 v7.4.11 on 🐳 v19.03.13
129129
➜ php artisan patcher:status
130130
Patches table created successfully.
131131
Patching: 2020_09_29_190531_fix_double_sections

0 commit comments

Comments
 (0)