johan-code / patch-runner
PHP executable patching system
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/johan-code/patch-runner
This package is not auto-updated.
Last update: 2025-10-24 00:47:55 UTC
README
Installation
Install the package via Composer:
composer require johan-code/patch-runner
Add the package's service provider to your config/app.php file:
'providers' => [ // Other service providers... \JohanCode\PatchRunner\PatchRunnerServiceProvider::class, ],
Publish the package configuration file (optional):
php artisan vendor:publish --tag=patch-runner-config
Run migrations:
php artisan migrate
Console Commands
The package provides the following console commands:
- php artisan make:patchGenerates a new patch file with a "run" method.
- php artisan patchRuns all pending patches that haven't been executed yet.
- php artisan patch:statusDisplays the status of patches (executed or not).
Config File
After publishing the package configuration file, you can modify the behavior of the patch runner by editing the config/patch-runner.php file.
Usage
Here's an example of how to use the package:
- 
Generate a new patch file: php artisan make:patch MyPatch
- 
Implement the "run" method in the generated patch file ("MyPatch.php"). 
- 
Run pending patches: php artisan patch
- 
Check the status of patches: php artisan patch:status
License
This package is open-source software licensed under the MIT License. You can find the license text in the LICENSE file.